| 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
|
|
|