Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / public / android / java / src / org / chromium / content / browser / ContentViewClient.java
index c3e4bf0..8e1f09b 100644 (file)
@@ -131,13 +131,25 @@ public class ContentViewClient {
 
     /**
      * Notification that a selection or insertion-related event has occurred.
-     * TODO(donnd): Remove this and instead expose a ContextualSearchClient, crbug.com/403001.
+     * TODO(pedrosimonetti): remove this method once downstream code has been updated to use
+     * the other signature.
      * @param eventType The selection event type, see {@link SelectionEventType}.
      */
     public void onSelectionEvent(int eventType) {
     }
 
     /**
+     * Notification that a selection or insertion-related event has occurred.
+     * TODO(donnd): Remove this and instead expose a ContextualSearchClient, crbug.com/403001.
+     * @param eventType The selection event type, see {@link SelectionEventType}.
+     * @param posXPix The x coordinate of the selection start handle.
+     * @param posYPix The y coordinate of the selection start handle.
+     */
+    public void onSelectionEvent(int eventType, float posXPix, float posYPix) {
+        onSelectionEvent(eventType);
+    }
+
+    /**
      * Called when a new content intent is requested to be started.
      */
     public void onStartContentIntent(Context context, String intentUrl) {