diff options
author | Torne (Richard Coles) <torne@google.com> | 2014-11-12 18:04:19 +0000 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2014-11-12 18:04:19 +0000 |
commit | 7f6067d8624f89594b8ab635871cd78fba998eaf (patch) | |
tree | f73287e65154d4666a0acff679891f1555d899ef /chromium/java/com/android/webview | |
parent | 30fd32cd0d9debc0496043d6f31957e04a449f34 (diff) | |
parent | 36b0a0d250253f649c9200b73abbeb61fbc31292 (diff) | |
download | webview-7f6067d8624f89594b8ab635871cd78fba998eaf.tar.gz |
Merge master-chromium into master at 03655fd3f6d7
Diffstat (limited to 'chromium/java/com/android/webview')
-rw-r--r-- | chromium/java/com/android/webview/chromium/WebViewChromium.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/chromium/java/com/android/webview/chromium/WebViewChromium.java b/chromium/java/com/android/webview/chromium/WebViewChromium.java index 0201aeb..8706e4a 100644 --- a/chromium/java/com/android/webview/chromium/WebViewChromium.java +++ b/chromium/java/com/android/webview/chromium/WebViewChromium.java @@ -32,6 +32,7 @@ import android.net.http.SslCertificate; import android.os.Build; import android.os.Bundle; import android.os.Looper; +import android.os.Handler; import android.os.Message; import android.print.PrintDocumentAdapter; import android.text.TextUtils; @@ -70,6 +71,7 @@ import org.chromium.android_webview.AwLayoutSizer; import org.chromium.android_webview.AwSettings; import org.chromium.android_webview.AwPrintDocumentAdapter; import org.chromium.base.ThreadUtils; +import org.chromium.content.browser.SmartClipProvider; import org.chromium.content_public.browser.LoadUrlParams; import org.chromium.net.NetworkChangeNotifier; @@ -93,7 +95,7 @@ import java.util.Queue; * and a small set of no-op deprecated APIs. */ class WebViewChromium implements WebViewProvider, - WebViewProvider.ScrollDelegate, WebViewProvider.ViewDelegate { + WebViewProvider.ScrollDelegate, WebViewProvider.ViewDelegate, SmartClipProvider { private class WebViewChromiumRunQueue { public WebViewChromiumRunQueue() { @@ -2256,4 +2258,19 @@ class WebViewChromium implements WebViewProvider, return mWebViewPrivate.super_onHoverEvent(event); } } + + // Implements SmartClipProvider + @Override + public void extractSmartClipData(int x, int y, int width, int height) { + checkThread(); + mAwContents.extractSmartClipData(x, y, width, height); + } + + // Implements SmartClipProvider + @Override + public void setSmartClipResultHandler(final Handler resultHandler) { + checkThread(); + mAwContents.setSmartClipResultHandler(resultHandler); + } + } |