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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 22839006: [android_webview] Implement requestChildRectangleOnScreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 1e7f88d16b5d9c8dba1c7717085b88bfbb4c9ad1..83dfbbb81f8da84e83a08b32f33de6e8b5813f71 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -975,6 +975,15 @@ public class AwContents {
}
/**
+ * @see WebView#requestChildRectangleOnScreen(View, Rect, boolean)
+ */
+ public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) {
+ return mScrollOffsetManager.requestChildRectangleOnScreen(
+ child.getLeft() - child.getScrollX(), child.getTop() - child.getScrollY(),
+ rect, immediate);
+ }
+
+ /**
* @see View.computeScroll()
*/
public void computeScroll() {
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698