// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#if !defined(EWK_BRINGUP)
-
#include "public/ewk_view.h"
#include "public/ewk_cookie_manager.h"
-#include "tizen_webview/public/tw_unfocus_direction.h"
+#include "tizen_webview/public/tw_callbacks.h"
#include "tizen_webview/public/tw_cookie_accept_policy.h"
-template <bool> class StaticAssert;
-template <> class StaticAssert<true> { };
-
-#define STATIC_ASSERT(condition, message) \
- { StaticAssert<((condition) != 0)> ERROR_##message; (void)ERROR_##message; }
-
#define STATIC_ENUM_IS_EQUAL(left, right) \
- STATIC_ASSERT(static_cast<int>(left) == static_cast<int>(right), _ENUM_VALUE_MISMATCH)
-
-void do_static_check()
-{
- STATIC_ENUM_IS_EQUAL(tizen_webview::TW_UNFOCUS_DIRECTION_FORWARD, EWK_UNFOCUS_DIRECTION_FORWARD);
- STATIC_ENUM_IS_EQUAL(tizen_webview::TW_UNFOCUS_DIRECTION_BACKWARD, EWK_UNFOCUS_DIRECTION_BACKWARD);
-
- STATIC_ENUM_IS_EQUAL(EWK_COOKIE_ACCEPT_POLICY_ALWAYS, tizen_webview::TW_COOKIE_ACCEPT_POLICY_ALWAYS);
- STATIC_ENUM_IS_EQUAL(EWK_COOKIE_ACCEPT_POLICY_NEVER, tizen_webview::TW_COOKIE_ACCEPT_POLICY_NEVER);
- STATIC_ENUM_IS_EQUAL(EWK_COOKIE_ACCEPT_POLICY_NO_THIRD_PARTY, tizen_webview::TW_COOKIE_ACCEPT_POLICY_NO_THIRD_PARTY);
+ static_assert(static_cast<int>(left) == static_cast<int>(right), \
+ "Enum values mismatch")
+
+void do_static_check() {
+ STATIC_ENUM_IS_EQUAL(tizen_webview::UNFOCUS_DIRECTION_NONE,
+ EWK_UNFOCUS_DIRECTION_NONE);
+ STATIC_ENUM_IS_EQUAL(tizen_webview::UNFOCUS_DIRECTION_FORWARD,
+ EWK_UNFOCUS_DIRECTION_FORWARD);
+ STATIC_ENUM_IS_EQUAL(tizen_webview::UNFOCUS_DIRECTION_BACKWARD,
+ EWK_UNFOCUS_DIRECTION_BACKWARD);
+ STATIC_ENUM_IS_EQUAL(tizen_webview::UNFOCUS_DIRECTION_UP,
+ EWK_UNFOCUS_DIRECTION_UP);
+ STATIC_ENUM_IS_EQUAL(tizen_webview::UNFOCUS_DIRECTION_DOWN,
+ EWK_UNFOCUS_DIRECTION_DOWN);
+ STATIC_ENUM_IS_EQUAL(tizen_webview::UNFOCUS_DIRECTION_LEFT,
+ EWK_UNFOCUS_DIRECTION_LEFT);
+ STATIC_ENUM_IS_EQUAL(tizen_webview::UNFOCUS_DIRECTION_RIGHT,
+ EWK_UNFOCUS_DIRECTION_RIGHT);
+
+ STATIC_ENUM_IS_EQUAL(EWK_COOKIE_ACCEPT_POLICY_ALWAYS,
+ tizen_webview::TW_COOKIE_ACCEPT_POLICY_ALWAYS);
+ STATIC_ENUM_IS_EQUAL(EWK_COOKIE_ACCEPT_POLICY_NEVER,
+ tizen_webview::TW_COOKIE_ACCEPT_POLICY_NEVER);
+ STATIC_ENUM_IS_EQUAL(EWK_COOKIE_ACCEPT_POLICY_NO_THIRD_PARTY,
+ tizen_webview::TW_COOKIE_ACCEPT_POLICY_NO_THIRD_PARTY);
}
-#endif
-