1 // Copyright 2014 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
8 #if !defined(EWK_BRINGUP) // FIXME: m67 bringup
9 // FIXME: appfw/app_service.h is no more in Tizen 2.3, figure out what to
11 #include <appcore-agent/service_app.h>
20 #include "base/callback.h"
21 #include "base/containers/id_map.h"
22 #include "base/synchronization/waitable_event.h"
23 #include "browser/input_picker/input_picker.h"
24 #include "browser/selectpicker/popup_picker.h"
25 #include "content/browser/date_time_chooser_efl.h"
26 #include "content/browser/renderer_host/event_with_latency_info.h"
27 #include "content/browser/selection/selection_controller_efl.h"
28 #include "content/public/browser/context_menu_params.h"
29 #include "content/public/browser/navigation_controller.h"
30 #include "content/public/browser/quota_permission_context.h"
31 #include "content/public/browser/web_contents_delegate.h"
32 #include "content/public/browser/web_contents_efl_delegate.h"
33 #include "content/public/common/input_event_ack_state.h"
34 #include "content_browser_client_efl.h"
35 #include "context_menu_controller_efl.h"
36 #include "eweb_context.h"
37 #include "eweb_view_callbacks.h"
38 #include "file_chooser_controller_efl.h"
39 #include "permission_popup_manager.h"
40 #include "popup_controller_efl.h"
41 #include "private/ewk_auth_challenge_private.h"
42 #include "private/ewk_back_forward_list_private.h"
43 #include "private/ewk_history_private.h"
44 #include "private/ewk_hit_test_private.h"
45 #include "private/ewk_settings_private.h"
46 #include "private/ewk_web_application_icon_data_private.h"
47 #include "public/ewk_hit_test_internal.h"
48 #include "public/ewk_touch_internal.h"
49 #include "public/ewk_view_product.h"
50 #include "scroll_detector.h"
51 #include "third_party/blink/public/common/context_menu_data/menu_item_info.h"
52 #include "third_party/blink/public/mojom/choosers/file_chooser.mojom.h"
53 #include "ui/aura/window_tree_host.h"
54 #include "ui/gfx/geometry/point.h"
55 #include "ui/gfx/geometry/size.h"
56 #include "web_contents_delegate_efl.h"
61 class WindowParentingClient;
66 class RenderFrameHost;
68 class RenderWidgetHostViewAura;
69 class WebContentsDelegateEfl;
70 class WebContentsViewAura;
71 class ContextMenuControllerEfl;
72 class PopupControllerEfl;
74 class GinNativeBridgeDispatcherHost;
78 class _Ewk_Policy_Decision;
81 class WebViewEvasEventHandler;
82 class _Ewk_Quota_Permission_Request;
84 template <typename CallbackPtr, typename CallbackParameter>
85 class WebViewCallback {
87 WebViewCallback() { Set(nullptr, nullptr); }
89 void Set(CallbackPtr cb, void* data) {
94 bool IsCallbackSet() const { return callback_; }
96 Eina_Bool Run(Evas_Object* webview,
97 CallbackParameter param,
98 Eina_Bool* callback_result) {
99 CHECK(callback_result);
100 if (IsCallbackSet()) {
101 *callback_result = callback_(webview, param, user_data_);
107 void Run(Evas_Object* webview, CallbackParameter param) {
109 callback_(webview, param, user_data_);
113 CallbackPtr callback_;
117 template <typename CallbackPtr, typename... CallbackParameter>
118 class WebViewExceededQuotaCallback {
120 WebViewExceededQuotaCallback() { Set(nullptr, nullptr); }
122 void Set(CallbackPtr cb, void* data) {
127 bool IsCallbackSet() const { return callback_; }
129 /* LCOV_EXCL_START */
130 void Run(Evas_Object* webview, CallbackParameter... param) {
132 callback_(webview, param..., user_data_);
137 CallbackPtr callback_;
141 class WebApplicationIconUrlGetCallback {
143 WebApplicationIconUrlGetCallback(Ewk_Web_App_Icon_URL_Get_Callback func,
145 : func_(func), user_data_(user_data) {}
146 void Run(const std::string& url) {
148 (func_)(url.c_str(), user_data_);
153 Ewk_Web_App_Icon_URL_Get_Callback func_;
157 class WebApplicationIconUrlsGetCallback {
159 WebApplicationIconUrlsGetCallback(Ewk_Web_App_Icon_URLs_Get_Callback func,
161 : func_(func), user_data_(user_data) {}
162 void Run(const std::map<std::string, std::string>& urls) {
164 Eina_List* list = NULL;
165 for (std::map<std::string, std::string>::const_iterator it = urls.begin();
166 it != urls.end(); ++it) {
167 _Ewk_Web_App_Icon_Data* data =
168 ewkWebAppIconDataCreate(it->first, it->second);
169 list = eina_list_append(list, data);
171 (func_)(list, user_data_);
176 Ewk_Web_App_Icon_URLs_Get_Callback func_;
180 class WebApplicationCapableGetCallback {
182 WebApplicationCapableGetCallback(Ewk_Web_App_Capable_Get_Callback func,
184 : func_(func), user_data_(user_data) {}
185 void Run(bool capable) {
187 (func_)(capable ? EINA_TRUE : EINA_FALSE, user_data_);
192 Ewk_Web_App_Capable_Get_Callback func_;
196 class WebViewAsyncRequestHitTestDataCallback;
197 class JavaScriptDialogManagerEfl;
198 class PermissionPopupManager;
202 static EWebView* FromEvasObject(Evas_Object* eo);
204 EWebView(Ewk_Context*, Evas_Object* smart_object);
207 // initialize data members and activate event handlers.
208 // call this once after created and before use
211 bool CreateNewWindow(
212 content::WebContentsEflDelegate::WebContentsCreateCallback);
213 static Evas_Object* GetHostWindowDelegate(const content::WebContents*);
215 content::WebContentsViewAura* wcva() const;
216 content::RenderWidgetHostViewAura* rwhva() const;
217 Ewk_Context* context() const { return context_.get(); }
218 Evas_Object* evas_object() const { return evas_object_; }
219 Evas_Object* native_view() const { return native_view_; }
220 Evas_Object* GetElmWindow() const;
221 Evas* GetEvas() const { return evas_object_evas_get(evas_object_); }
222 PermissionPopupManager* GetPermissionPopupManager() const {
223 return permission_popup_manager_.get();
226 content::WebContents& web_contents() const { return *web_contents_.get(); }
228 template <EWebViewCallbacks::CallbackType callbackType>
229 EWebViewCallbacks::CallBack<callbackType> SmartCallback() const {
230 return EWebViewCallbacks::CallBack<callbackType>(evas_object_);
233 void set_magnifier(bool status);
236 void SetURL(const GURL& url, bool from_api = false);
237 const GURL& GetURL() const;
238 const GURL& GetOriginalURL() const;
240 void ReloadBypassingCache();
241 Eina_Bool CanGoBack();
242 Eina_Bool CanGoForward();
243 Eina_Bool HasFocus() const;
244 void SetFocus(Eina_Bool focus);
246 Eina_Bool GoForward();
250 void SetSessionTimeout(uint64_t timeout);
251 double GetTextZoomFactor() const;
252 void SetTextZoomFactor(double text_zoom_factor);
253 double GetPageZoomFactor() const;
254 void SetPageZoomFactor(double page_zoom_factor);
255 void ExecuteEditCommand(const char* command, const char* value);
256 void SetOrientation(int orientation);
257 int GetOrientation();
258 bool TouchEventsEnabled() const;
259 void SetTouchEventsEnabled(bool enabled);
260 bool MouseEventsEnabled() const;
261 void SetMouseEventsEnabled(bool enabled);
262 void HandleTouchEvents(Ewk_Touch_Event_Type type,
263 const Eina_List* points,
264 const Evas_Modifier* modifiers);
267 bool ExecuteJavaScript(const char* script,
268 Ewk_View_Script_Execute_Callback callback,
270 bool SetUserAgent(const char* userAgent);
271 bool SetUserAgentAppName(const char* application_name);
272 bool SetPrivateBrowsing(bool incognito);
273 bool GetPrivateBrowsing() const;
274 const char* GetUserAgent() const;
275 const char* GetUserAgentAppName() const;
276 const char* CacheSelectedText();
277 Ewk_Settings* GetSettings() { return settings_.get(); }
278 _Ewk_Frame* GetMainFrame();
279 void UpdateWebKitPreferences();
280 void LoadHTMLString(const char* html,
281 const char* base_uri,
282 const char* unreachable_uri);
283 void LoadPlainTextString(const char* plain_text);
284 void LoadData(const char* data,
286 const char* mime_type,
287 const char* encoding,
288 const char* base_uri,
289 const char* unreachable_uri = NULL);
291 void InvokeLoadError(const GURL& url, int error_code, bool is_cancellation);
293 void SetViewAuthCallback(Ewk_View_Authentication_Callback callback,
295 void InvokeAuthCallback(LoginDelegateEfl* login_delegate,
297 const std::string& realm);
298 void Find(const char* text, Ewk_Find_Options);
299 void InvokeAuthCallbackOnUI(_Ewk_Auth_Challenge* auth_challenge);
300 void SetContentSecurityPolicy(const char* policy, Ewk_CSP_Header_Type type);
301 void ShowPopupMenu(const std::vector<blink::MenuItemInfo>& items,
304 Eina_Bool HidePopupMenu();
305 void UpdateFormNavigation(int formElementCount,
306 int currentNodeIndex,
309 void FormNavigate(bool direction);
310 bool IsSelectPickerShown() const;
311 void CloseSelectPicker();
312 bool FormIsNavigating() const { return formIsNavigating_; }
313 void SetFormIsNavigating(bool formIsNavigating);
314 Eina_Bool PopupMenuUpdate(Eina_List* items, int selectedIndex);
315 Eina_Bool DidSelectPopupMenuItem(int selectedIndex);
316 Eina_Bool DidMultipleSelectPopupMenuItem(std::vector<int>& selectedIndices);
317 Eina_Bool PopupMenuClose();
318 void HandleLongPressGesture(const content::ContextMenuParams&);
319 void ShowContextMenu(const content::ContextMenuParams&);
320 void CancelContextMenu(int request_id);
321 void SetScale(double scale_factor);
322 bool GetScrollPosition(int* x, int* y) const;
323 void SetScroll(int x, int y);
324 void UrlRequestSet(const char* url,
325 content::NavigationController::LoadURLType loadtype,
329 content::SelectionControllerEfl* GetSelectionController() const;
330 content::PopupControllerEfl* GetPopupController() const {
331 return popup_controller_.get();
333 ScrollDetector* GetScrollDetector() const { return scroll_detector_.get(); }
334 void MoveCaret(const gfx::Point& point);
335 void QuerySelectionStyle();
336 void OnQuerySelectionStyleReply(const SelectionStylePrams& params);
337 void SelectLinkText(const gfx::Point& touch_point);
338 bool GetSelectionRange(Eina_Rectangle* left_rect, Eina_Rectangle* right_rect);
339 Eina_Bool ClearSelection();
341 // Callback OnCopyFromBackingStore will be called once we get the snapshot
343 void OnCopyFromBackingStore(bool success, const SkBitmap& bitmap);
348 void RenderViewReady();
351 * Creates a snapshot of given rectangle from EWebView
353 * @param rect rectangle of EWebView which will be taken into snapshot
354 * @param scale_factor scale factor
355 * @return created snapshot or NULL if error occured.
356 * @note ownership of snapshot is passed to caller
358 Evas_Object* GetSnapshot(Eina_Rectangle rect, float scale_factor);
360 bool GetSnapshotAsync(Eina_Rectangle rect,
361 Ewk_Web_App_Screenshot_Captured_Callback callback,
364 void InvokePolicyResponseCallback(_Ewk_Policy_Decision* policy_decision,
366 void InvokePolicyNavigationCallback(const NavigationPolicyParams& params,
368 void UseSettingsFont();
370 _Ewk_Hit_Test* RequestHitTestDataAt(int x, int y, Ewk_Hit_Test_Mode mode);
371 Eina_Bool AsyncRequestHitTestDataAt(int x,
373 Ewk_Hit_Test_Mode mode,
374 Ewk_View_Hit_Test_Request_Callback,
376 _Ewk_Hit_Test* RequestHitTestDataAtBlinkCoords(int x,
378 Ewk_Hit_Test_Mode mode);
379 Eina_Bool AsyncRequestHitTestDataAtBlinkCords(
382 Ewk_Hit_Test_Mode mode,
383 Ewk_View_Hit_Test_Request_Callback,
385 void DispatchAsyncHitTestData(const Hit_Test_Params& params,
387 void UpdateHitTestData(const Hit_Test_Params& params);
389 int current_find_request_id() const { return current_find_request_id_; }
390 bool PlainTextGet(Ewk_View_Plain_Text_Get_Callback callback, void* user_data);
391 void InvokePlainTextGetCallback(const std::string& content_text,
392 int plain_text_get_callback_id);
393 int SetEwkViewPlainTextGetCallback(Ewk_View_Plain_Text_Get_Callback callback,
395 void SetViewGeolocationPermissionCallback(
396 Ewk_View_Geolocation_Permission_Callback callback,
398 bool InvokeViewGeolocationPermissionCallback(
399 _Ewk_Geolocation_Permission_Request*
400 geolocation_permission_request_context,
402 void SetViewUserMediaPermissionCallback(
403 Ewk_View_User_Media_Permission_Callback callback,
405 bool InvokeViewUserMediaPermissionCallback(
406 _Ewk_User_Media_Permission_Request* user_media_permission_request_context,
408 void SetViewUnfocusAllowCallback(Ewk_View_Unfocus_Allow_Callback callback,
410 bool InvokeViewUnfocusAllowCallback(Ewk_Unfocus_Direction direction,
412 void DidChangeContentsSize(int width, int height);
413 const Eina_Rectangle GetContentsSize() const;
414 void GetScrollSize(int* w, int* h);
416 void SetProgressValue(double progress);
417 double GetProgressValue();
418 const char* GetTitle();
419 bool SaveAsPdf(int width, int height, const std::string& file_name);
420 void BackForwardListClear();
421 _Ewk_Back_Forward_List* GetBackForwardList() const;
422 void InvokeBackForwardListChangedCallback();
423 _Ewk_History* GetBackForwardHistory() const;
424 bool WebAppCapableGet(Ewk_Web_App_Capable_Get_Callback callback,
426 bool WebAppIconUrlGet(Ewk_Web_App_Icon_URL_Get_Callback callback,
428 bool WebAppIconUrlsGet(Ewk_Web_App_Icon_URLs_Get_Callback callback,
430 void InvokeWebAppCapableGetCallback(bool capable, int callbackId);
431 void InvokeWebAppIconUrlGetCallback(const std::string& iconUrl,
433 void InvokeWebAppIconUrlsGetCallback(
434 const std::map<std::string, std::string>& iconUrls,
436 void SetNotificationPermissionCallback(
437 Ewk_View_Notification_Permission_Callback callback,
439 bool IsNotificationPermissionCallbackSet() const;
440 bool InvokeNotificationPermissionCallback(
441 Ewk_Notification_Permission_Request* request);
443 bool GetMHTMLData(Ewk_View_MHTML_Data_Get_Callback callback, void* user_data);
444 void OnMHTMLContentGet(const std::string& mhtml_content, int callback_id);
446 void ExitFullscreen();
448 void DidChangePageScaleFactor(double scale_factor);
449 void SetScaledContentsSize();
450 void SetJavaScriptAlertCallback(Ewk_View_JavaScript_Alert_Callback callback,
452 void JavaScriptAlertReply();
453 void SetJavaScriptConfirmCallback(
454 Ewk_View_JavaScript_Confirm_Callback callback,
456 void JavaScriptConfirmReply(bool result);
457 void SetJavaScriptPromptCallback(Ewk_View_JavaScript_Prompt_Callback callback,
459 void JavaScriptPromptReply(const char* result);
460 void set_renderer_crashed();
461 void GetPageScaleRange(double* min_scale, double* max_scale);
462 void SetDrawsTransparentBackground(bool enabled);
463 void GetSessionData(const char** data, unsigned* length) const;
464 bool RestoreFromSessionData(const char* data, unsigned length);
465 void ShowFileChooser(content::RenderFrameHost* render_frame_host,
466 const blink::mojom::FileChooserParams&);
467 void SetBrowserFont();
468 bool IsDragging() const;
470 void RequestColorPicker(int r, int g, int b, int a);
471 bool SetColorPickerColor(int r, int g, int b, int a);
472 void InputPickerShow(ui::TextInputType input_type,
474 content::DateTimeChooserEfl* date_time_chooser);
476 void ShowContentsDetectedPopup(const char*);
478 // Returns TCP port number with Inspector, or 0 if error.
479 int StartInspectorServer(int port = 0);
480 bool StopInspectorServer();
482 void LoadNotFoundErrorPage(const std::string& invalidUrl);
483 static std::string GetPlatformLocale();
484 bool GetLinkMagnifierEnabled() const;
485 void SetLinkMagnifierEnabled(bool enabled);
487 void SetOverrideEncoding(const std::string& encoding);
488 void SetQuotaPermissionRequestCallback(
489 Ewk_Quota_Permission_Request_Callback callback,
491 void InvokeQuotaPermissionRequest(
492 _Ewk_Quota_Permission_Request* request,
493 content::QuotaPermissionContext::PermissionCallback cb);
494 void QuotaRequestReply(const _Ewk_Quota_Permission_Request* request,
496 void QuotaRequestCancel(const _Ewk_Quota_Permission_Request* request);
497 #if !defined(EWK_BRINGUP) // FIXME: m67 bringup
498 void SetViewMode(blink::WebViewMode view_mode);
500 gfx::Point GetContextMenuPosition() const;
502 content::ContextMenuControllerEfl* GetContextMenuController() {
503 return context_menu_.get();
505 void ResetContextMenuController();
506 Eina_Bool AddJavaScriptMessageHandler(Evas_Object* view,
507 Ewk_View_Script_Message_Cb callback,
510 content::GinNativeBridgeDispatcherHost* GetGinNativeBridgeDispatcherHost()
512 return gin_native_bridge_dispatcher_host_.get();
514 bool SetPageVisibility(Ewk_Page_Visibility_State page_visibility_state);
516 void SetExceededIndexedDatabaseQuotaCallback(
517 Ewk_View_Exceeded_Indexed_Database_Quota_Callback callback,
519 void InvokeExceededIndexedDatabaseQuotaCallback(const GURL& origin,
520 int64_t current_quota);
521 void ExceededIndexedDatabaseQuotaReply(bool allow);
523 /// ---- Event handling
526 bool HandleMove(int x, int y);
527 bool HandleResize(int width, int height);
528 bool HandleTextSelectionDown(int x, int y);
529 bool HandleTextSelectionUp(int x, int y);
531 void HandleRendererProcessCrash();
532 void InvokeWebProcessCrashedCallback();
534 void HandleTapGestureForSelection(bool is_content_editable);
535 void HandleZoomGesture(blink::WebGestureEvent& event);
538 void RequestManifest(Ewk_View_Request_Manifest_Callback callback,
540 void DidRespondRequestManifest(_Ewk_View_Request_Manifest* manifest,
541 Ewk_View_Request_Manifest_Callback callback,
544 void SyncAcceptLanguages(const std::string& accept_languages);
546 void OnOverscrolled(const gfx::Vector2dF& accumulated_overscroll,
547 const gfx::Vector2dF& latest_overscroll_delta);
549 bool SetVisibility(bool enable);
551 content::DateTimeChooserEfl* GetDateTimeChooser() {
552 return date_time_chooser_;
556 void InitializeContent();
557 void InitializeWindowTreeHost();
558 void SendDelayedMessages(content::RenderViewHost* render_view_host);
560 void EvasToBlinkCords(int x, int y, int* view_x, int* view_y);
561 Eina_Bool AsyncRequestHitTestDataAtBlinkCords(
564 Ewk_Hit_Test_Mode mode,
565 WebViewAsyncRequestHitTestDataCallback* cb);
566 #if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
567 static void cameraResultCb(service_h request,
569 service_result_e result,
573 #if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
574 bool LaunchCamera(std::u16string mimetype);
576 #if !defined(USE_AURA)
577 content::RenderWidgetHostViewEfl* rwhv() const;
579 JavaScriptDialogManagerEfl* GetJavaScriptDialogManagerEfl();
581 void ReleasePopupMenuList();
583 void ShowContextMenuInternal(const content::ContextMenuParams&);
585 void UpdateWebkitPreferencesEfl(content::RenderViewHost*);
587 void ChangeScroll(int& x, int& y);
589 static void OnViewFocusIn(void* data, Evas*, Evas_Object*, void*);
590 static void OnViewFocusOut(void* data, Evas*, Evas_Object*, void*);
592 scoped_refptr<WebViewEvasEventHandler> evas_event_handler_;
593 scoped_refptr<Ewk_Context> context_;
594 scoped_refptr<Ewk_Context> old_context_;
595 std::unique_ptr<content::WebContents> web_contents_;
596 std::unique_ptr<content::WebContentsDelegateEfl> web_contents_delegate_;
597 std::string pending_url_request_;
598 std::unique_ptr<Ewk_Settings> settings_;
599 std::unique_ptr<_Ewk_Frame> frame_;
600 std::unique_ptr<_Ewk_Policy_Decision> window_policy_;
601 Evas_Object* evas_object_;
602 Evas_Object* native_view_;
603 bool touch_events_enabled_;
604 bool mouse_events_enabled_;
605 double text_zoom_factor_;
606 mutable std::string user_agent_;
607 mutable std::string user_agent_app_name_;
608 std::unique_ptr<_Ewk_Auth_Challenge> auth_challenge_;
609 std::string selected_text_cached_;
611 Eina_List* popupMenuItems_;
612 Popup_Picker* popupPicker_;
613 bool formIsNavigating_;
620 formNavigation formNavigation_;
621 std::unique_ptr<content::ContextMenuControllerEfl> context_menu_;
622 #if !defined(EWK_BRINGUP) // FIXME: m71 bringup
623 std::unique_ptr<content::FileChooserControllerEfl> file_chooser_;
625 std::unique_ptr<content::PopupControllerEfl> popup_controller_;
626 std::u16string previous_text_;
627 int current_find_request_id_;
628 static int find_request_id_counter_;
630 typedef WebViewCallback<Ewk_View_Plain_Text_Get_Callback, const char*>
631 EwkViewPlainTextGetCallback;
632 base::IDMap<EwkViewPlainTextGetCallback*> plain_text_get_callback_map_;
634 typedef WebViewCallback<Ewk_View_MHTML_Data_Get_Callback, const char*>
635 MHTMLCallbackDetails;
636 base::IDMap<MHTMLCallbackDetails*> mhtml_callback_map_;
638 gfx::Size contents_size_;
640 mutable std::string title_;
641 Hit_Test_Params hit_test_params_;
642 base::WaitableEvent hit_test_completion_;
643 double page_scale_factor_;
647 WebViewCallback<Ewk_View_Geolocation_Permission_Callback,
648 _Ewk_Geolocation_Permission_Request*>
649 geolocation_permission_cb_;
650 WebViewCallback<Ewk_View_User_Media_Permission_Callback,
651 _Ewk_User_Media_Permission_Request*>
652 user_media_permission_cb_;
653 WebViewCallback<Ewk_View_Unfocus_Allow_Callback, Ewk_Unfocus_Direction>
655 WebViewCallback<Ewk_View_Notification_Permission_Callback,
656 Ewk_Notification_Permission_Request*>
657 notification_permission_callback_;
658 WebViewCallback<Ewk_Quota_Permission_Request_Callback,
659 const _Ewk_Quota_Permission_Request*>
660 quota_request_callback_;
661 WebViewCallback<Ewk_View_Authentication_Callback, _Ewk_Auth_Challenge*>
664 std::unique_ptr<content::InputPicker> input_picker_;
665 base::IDMap<WebApplicationIconUrlGetCallback*>
666 web_app_icon_url_get_callback_map_;
667 base::IDMap<WebApplicationIconUrlsGetCallback*>
668 web_app_icon_urls_get_callback_map_;
669 base::IDMap<WebApplicationCapableGetCallback*>
670 web_app_capable_get_callback_map_;
671 std::unique_ptr<PermissionPopupManager> permission_popup_manager_;
672 std::unique_ptr<ScrollDetector> scroll_detector_;
674 // Manages injecting native objects.
675 std::unique_ptr<content::GinNativeBridgeDispatcherHost>
676 gin_native_bridge_dispatcher_host_;
678 WebViewExceededQuotaCallback<
679 Ewk_View_Exceeded_Indexed_Database_Quota_Callback,
680 Ewk_Security_Origin*,
682 exceeded_indexed_db_quota_callback_;
683 std::unique_ptr<Ewk_Security_Origin> exceeded_indexed_db_quota_origin_;
685 #if BUILDFLAG(IS_TIZEN)
686 blink::mojom::FileChooserParams::Mode filechooser_mode_;
688 std::map<const _Ewk_Quota_Permission_Request*,
689 content::QuotaPermissionContext::PermissionCallback>
690 quota_permission_request_map_;
692 bool is_initialized_;
694 std::unique_ptr<_Ewk_Back_Forward_List> back_forward_list_;
696 static content::WebContentsEflDelegate::WebContentsCreateCallback
697 create_new_window_web_contents_cb_;
700 gfx::Vector2d previous_scroll_position_;
702 gfx::Point context_menu_position_;
704 std::vector<IPC::Message*> delayed_messages_;
706 std::map<int64_t, WebViewAsyncRequestHitTestDataCallback*> hit_test_callback_;
708 content::AcceptLanguagesHelper::AcceptLangsChangedCallback
709 accept_langs_changed_callback_;
711 std::unique_ptr<aura::WindowTreeHost> host_;
712 std::unique_ptr<aura::client::FocusClient> focus_client_;
713 std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_;
714 content::DateTimeChooserEfl* date_time_chooser_ = nullptr;
717 const unsigned int g_default_tilt_motion_sensitivity = 3;