Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / public / web / WebViewClient.h
index db39829..10c1ac4 100644 (file)
@@ -53,17 +53,12 @@ class WebCompositorOutputSurface;
 class WebDateTimeChooserCompletion;
 class WebDragData;
 class WebElement;
-class WebExternalPopupMenu;
-class WebExternalPopupMenuClient;
 class WebFileChooserCompletion;
-class WebGeolocationClient;
-class WebGeolocationService;
 class WebGestureEvent;
 class WebHitTestResult;
 class WebImage;
 class WebInputElement;
 class WebKeyboardEvent;
-class WebMIDIClient;
 class WebNode;
 class WebPushClient;
 class WebRange;
@@ -104,12 +99,9 @@ public:
         return 0;
     }
 
-    // Create a new WebPopupMenu.  In the second form, the client is
-    // responsible for rendering the contents of the popup menu.
+    // Create a new WebPopupMenu.
     virtual WebWidget* createPopupMenu(WebPopupType) { return 0; }
     virtual WebWidget* createPopupMenu(const WebPopupMenuInfo&) { return 0; }
-    virtual WebExternalPopupMenu* createExternalPopupMenu(
-        const WebPopupMenuInfo&, WebExternalPopupMenuClient*) { return 0; }
 
     // Create a session storage namespace object associated with this WebView.
     virtual WebStorageNamespace* createSessionStorageNamespace() { return 0; }
@@ -129,6 +121,10 @@ public:
     // will never be called.
     virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserCompletion*) { return false; }
 
+    // This method is called in response to WebView's saveImageAt(x, y).
+    // A data url from <canvas> or <img> is passed to the method's argument.
+    virtual void saveImageFromDataURL(const WebString&) { }
+
 
     // Editing -------------------------------------------------------------
 
@@ -136,7 +132,6 @@ public:
     // operations.
     virtual void didCancelCompositionOnSelectionChange() { }
     virtual void didChangeContents() { }
-    virtual void didExecuteCommand(const WebString& commandName) { }
 
     // This method is called in response to WebView's handleInputEvent()
     // when the default action for the current keyboard event is not
@@ -167,7 +162,7 @@ public:
     // Show a notification popup for the specified form vaidation messages
     // besides the anchor rectangle. An implementation of this function should
     // not hide the popup until hideValidationMessage call.
-    virtual void showValidationMessage(const WebRect& anchorInRootView, const WebString& mainText, const WebString& supplementalText, WebTextDirection hint) { }
+    virtual void showValidationMessage(const WebRect& anchorInRootView, const WebString& mainText, WebTextDirection mainTextDir, const WebString& supplementalText, WebTextDirection supplementalTextDir) { }
 
     // Hide notifation popup for form validation messages.
     virtual void hideValidationMessage() { }
@@ -202,8 +197,6 @@ public:
     // Called when a new node gets focused.
     virtual void focusedNodeChanged(const WebNode&) { }
 
-    virtual void numberOfWheelEventHandlersChanged(unsigned) { }
-
     // Indicates two things:
     //   1) This view may have a new layout now.
     //   2) Calling layout() is a no-op.
@@ -211,9 +204,15 @@ public:
     // unless the view did not need a layout.
     virtual void didUpdateLayout() { }
 
+    // FIXME: This is a deprecated method. Remove it after the chromium change
+    // that uses the second didTapMultipleTargets() propagates.
+    //
     // Return true to swallow the input event if the embedder will start a disambiguation popup
     virtual bool didTapMultipleTargets(const WebGestureEvent&, const WebVector<WebRect>& targetRects) { return false; }
 
+    // Return true to swallow the input event if the embedder will start a disambiguation popup
+    virtual bool didTapMultipleTargets(const WebSize& pinchViewportOffset, const WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; }
+
     // Returns comma separated list of accept languages.
     virtual WebString acceptLanguages() { return WebString(); }
 
@@ -246,14 +245,6 @@ public:
     virtual void didUpdateInspectorSetting(const WebString& key, const WebString& value) { }
 
 
-    // Geolocation ---------------------------------------------------------
-
-    // Access the embedder API for (client-based) geolocation client .
-    virtual WebGeolocationClient* geolocationClient() { return 0; }
-    // Access the embedder API for (non-client-based) geolocation services.
-    virtual WebGeolocationService* geolocationService() { return 0; }
-
-
     // Speech --------------------------------------------------------------
 
     // Access the embedder API for speech recognition services.
@@ -275,15 +266,14 @@ public:
 
     // Registers a new URL handler for the given protocol.
     virtual void registerProtocolHandler(const WebString& scheme,
-        const WebURL& baseUrl,
         const WebURL& url,
         const WebString& title) { }
 
     // Unregisters a given URL handler for the given protocol.
-    virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL& baseUrl, const WebURL& url) { }
+    virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL& url) { }
 
     // Check if a given URL handler is registered for the given protocol.
-    virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& baseUrl, const WebURL& url)
+    virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& url)
     {
         return WebCustomHandlersNew;
     }
@@ -298,14 +288,11 @@ public:
     }
 
 
-    // Web MIDI -------------------------------------------------------------
-
-    virtual WebMIDIClient* webMIDIClient() { return 0; }
-
     // Push Messaging -------------------------------------------------------
 
     virtual WebPushClient* webPushClient() { return 0; }
 
+
     // Content detection ----------------------------------------------------
 
     // Retrieves detectable content (e.g., email addresses, phone numbers)