[M120 Migration][VD] Support EWK Scroll API for TV WebBrowser
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / common / render_messages_ewk.h
index c31c345..f02f6a1 100644 (file)
@@ -9,6 +9,8 @@
 #include "common/navigation_policy_params.h"
 #include "common/print_pages_params.h"
 #include "common/web_preferences_efl.h"
+#include "content/public/common/common_param_traits.h"
+#include "content/public/common/common_param_traits_macros.h"
 #include "ipc/ipc_channel_handle.h"
 #include "ipc/ipc_message_macros.h"
 #include "ipc_message_start_ewk.h"
@@ -19,6 +21,9 @@
 #include "public/ewk_view_internal.h"
 #include "third_party/blink/public/web/web_navigation_policy.h"
 #include "third_party/blink/public/web/web_navigation_type.h"
+#if BUILDFLAG(IS_TIZEN_TV)
+#include "cc/input/scrollbar.h"
+#endif
 
 typedef std::map<std::string, std::string> StringMap;
 typedef std::map<std::string, bool> ExtensibleApiMap;
@@ -33,9 +38,7 @@ IPC_STRUCT_TRAITS_BEGIN(Ewk_Wrt_Message_Data)
 IPC_STRUCT_TRAITS_END()
 
 IPC_STRUCT_TRAITS_BEGIN(WebPreferencesEfl)
-  IPC_STRUCT_TRAITS_MEMBER(shrinks_viewport_content_to_fit)
   IPC_STRUCT_TRAITS_MEMBER(javascript_can_open_windows_automatically_ewk)
-  IPC_STRUCT_TRAITS_MEMBER(link_effect_enabled)
 IPC_STRUCT_TRAITS_END()
 
 IPC_STRUCT_TRAITS_BEGIN(Hit_Test_Params::Node_Data)
@@ -46,7 +49,9 @@ IPC_STRUCT_TRAITS_END()
 
 IPC_STRUCT_TRAITS_BEGIN(Hit_Test_Params::Image_Data)
   IPC_STRUCT_TRAITS_MEMBER(fileNameExtension)
+#if !defined(EWK_BRINGUP)  // FIXME: m120 bringup
   IPC_STRUCT_TRAITS_MEMBER(imageBitmap)
+#endif
 IPC_STRUCT_TRAITS_END()
 
 IPC_STRUCT_TRAITS_BEGIN(Hit_Test_Params)
@@ -80,7 +85,9 @@ IPC_STRUCT_TRAITS_BEGIN(NavigationPolicyParams)
   IPC_STRUCT_TRAITS_MEMBER(cookie)
   IPC_STRUCT_TRAITS_MEMBER(url)
   IPC_STRUCT_TRAITS_MEMBER(httpMethod)
+#if !defined(EWK_BRINGUP)  // FIXME: m120 bringup
   IPC_STRUCT_TRAITS_MEMBER(referrer)
+#endif
   IPC_STRUCT_TRAITS_MEMBER(policy)
   IPC_STRUCT_TRAITS_MEMBER(type)
   IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry)
@@ -147,15 +154,12 @@ IPC_MESSAGE_ROUTED4(EwkViewMsg_DoHitTestAsync,
 // Tells the renderer to clear the cache.
 IPC_MESSAGE_ROUTED0(EwkViewMsg_UseSettingsFont)
 IPC_MESSAGE_ROUTED0(EwkViewMsg_SetBrowserFont)
-IPC_MESSAGE_ROUTED0(EwkViewMsg_SuspendScheduledTask)
-IPC_MESSAGE_ROUTED0(EwkViewMsg_ResumeScheduledTasks)
 
 IPC_MESSAGE_ROUTED2(EwkViewMsg_SetScroll,
                     int, /* horizontal position */
                     int /* vertical position */)
 
-IPC_MESSAGE_ROUTED1(EwkViewMsg_PlainTextGet,
-                    int /* callback id */)
+IPC_MESSAGE_ROUTED1(EwkFrameMsg_GetPlainText, int /* callback id */)
 
 IPC_MESSAGE_ROUTED1(EwkSettingsMsg_UpdateWebKitPreferencesEfl, WebPreferencesEfl)
 
@@ -165,6 +169,12 @@ IPC_MESSAGE_ROUTED2(EwkHostMsg_HandleTapGestureWithContext,
 
 IPC_MESSAGE_ROUTED0(EwkHostMsg_PlayLinkEffect)
 
+IPC_MESSAGE_ROUTED4(EwkHostMsg_AddEdgeEffectForUIF,
+                    bool /* top */,
+                    bool /* bottom */,
+                    bool /* right */,
+                    bool /* left */)
+
 IPC_MESSAGE_ROUTED2(EwkHostMsg_PlainTextGetContents,
                     std::string, /* contentText */
                     int /* callback id */)
@@ -212,6 +222,19 @@ IPC_MESSAGE_ROUTED2(EwkHostMsg_WebAppCapableGet,
                     bool, /* capable */
                     int /* calback id */)
 
+#if defined(TIZEN_VIDEO_HOLE)
+IPC_MESSAGE_ROUTED1(EwkViewMsg_SetVideoHole, bool /* Enable */)
+#endif
+
+#if BUILDFLAG(IS_TIZEN_TV)
+IPC_MESSAGE_ROUTED0(EwkHostMsg_RunArrowScroll);
+
+IPC_ENUM_TRAITS(cc::ScrollbarOrientation)
+IPC_MESSAGE_ROUTED2(EwkHostMsg_ScrollbarThumbPartFocusChanged,
+                    cc::ScrollbarOrientation, /* orientation */
+                    bool /* focused */)
+#endif
+
 IPC_SYNC_MESSAGE_CONTROL1_1(EwkHostMsg_DecideNavigationPolicy,
                             NavigationPolicyParams,
                             bool /*handled*/)
@@ -244,3 +267,19 @@ IPC_MESSAGE_CONTROL2(EwkProcessMsg_SetExtensibleAPI,
                      bool /* enable */)
 
 IPC_MESSAGE_ROUTED0(EwkHostMsg_DidNotAllowScript)
+
+#if BUILDFLAG(IS_TIZEN_TV)
+IPC_MESSAGE_CONTROL1(HbbtvMsg_RegisterJSPluginMimeTypes,
+                     std::string /* mime types */)
+
+IPC_MESSAGE_CONTROL1(HbbtvMsg_RegisterURLSchemesAsCORSEnabled,
+                     std::string /* scheme */)
+
+IPC_MESSAGE_CONTROL1(EwkViewMsg_SetTimeOffset, double /* time offset */)
+// Sent when the renderer was prevented from displaying insecure content in
+// a secure page by a security policy.  The page may appear incomplete.
+IPC_MESSAGE_ROUTED0(EwkHostMsg_DidBlockInsecureContent)
+
+// Sent in response to FrameHostMsg_DidBlockDisplayingInsecureContent.
+IPC_MESSAGE_ROUTED1(EwkMsg_SetAllowInsecureContent, bool /* allowed */)
+#endif