Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2194)

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 2667283007: Refactor Samsung SmartClip implementation. (Closed)
Patch Set: Really apply code review comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
index 22bb994a982b845057fc8f3963a109d7e7e9f5ea..904c05fb9c11bf59edd8e321cf1b3c9c86a93b85 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
@@ -6,6 +6,7 @@ package org.chromium.content_public.browser;
import android.graphics.Bitmap;
import android.graphics.Rect;
+import android.os.Handler;
import android.os.Parcelable;
import org.chromium.base.VisibleForTesting;
@@ -298,6 +299,17 @@ public interface WebContents extends Parcelable {
int getThemeColor();
/**
+ * Initiate extraction of text, HTML, and other information for clipping puposes (smart clip)
+ * from the rectangle area defined by starting positions (x and y), and width and height.
+ */
+ void requestSmartClipExtract(int x, int y, int width, int height);
+
+ /**
+ * Register a handler to handle smart clip data once extraction is done.
+ */
+ void setSmartClipResultHandler(final Handler smartClipHandler);
+
+ /**
* Requests a snapshop of accessibility tree. The result is provided asynchronously
* using the callback
* @param callback The callback to be called when the snapshot is ready. The callback

Powered by Google App Engine
This is Rietveld 408576698