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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.android_webview; 5 package org.chromium.android_webview;
6 6
7 import android.content.pm.PackageManager; 7 import android.content.pm.PackageManager;
8 import android.content.res.Configuration; 8 import android.content.res.Configuration;
9 import android.graphics.Bitmap; 9 import android.graphics.Bitmap;
10 import android.graphics.Canvas; 10 import android.graphics.Canvas;
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 968
969 if (mOverScrollGlow != null) { 969 if (mOverScrollGlow != null) {
970 mOverScrollGlow.pullGlow(mContainerView.getScrollX(), mContainerView .getScrollY(), 970 mOverScrollGlow.pullGlow(mContainerView.getScrollX(), mContainerView .getScrollY(),
971 oldX, oldY, 971 oldX, oldY,
972 mScrollOffsetManager.computeMaximumHorizontalScrollOffset(), 972 mScrollOffsetManager.computeMaximumHorizontalScrollOffset(),
973 mScrollOffsetManager.computeMaximumVerticalScrollOffset()); 973 mScrollOffsetManager.computeMaximumVerticalScrollOffset());
974 } 974 }
975 } 975 }
976 976
977 /** 977 /**
978 * @see WebView#requestChildRectangleOnScreen(View, Rect, boolean)
979 */
980 public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) {
981 return mScrollOffsetManager.requestChildRectangleOnScreen(
982 child.getLeft() - child.getScrollX(), child.getTop() - child.get ScrollY(),
983 rect, immediate);
984 }
985
986 /**
978 * @see View.computeScroll() 987 * @see View.computeScroll()
979 */ 988 */
980 public void computeScroll() { 989 public void computeScroll() {
981 mScrollOffsetManager.computeScrollAndAbsorbGlow(mOverScrollGlow); 990 mScrollOffsetManager.computeScrollAndAbsorbGlow(mOverScrollGlow);
982 } 991 }
983 992
984 /** 993 /**
985 * @see View#computeHorizontalScrollRange() 994 * @see View#computeHorizontalScrollRange()
986 */ 995 */
987 public int computeHorizontalScrollRange() { 996 public int computeHorizontalScrollRange() {
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 private native void nativeFocusFirstNode(int nativeAwContents); 1877 private native void nativeFocusFirstNode(int nativeAwContents);
1869 private native void nativeSetBackgroundColor(int nativeAwContents, int color ); 1878 private native void nativeSetBackgroundColor(int nativeAwContents, int color );
1870 1879
1871 private native int nativeGetAwDrawGLViewContext(int nativeAwContents); 1880 private native int nativeGetAwDrawGLViewContext(int nativeAwContents);
1872 private native int nativeCapturePicture(int nativeAwContents, int width, int height); 1881 private native int nativeCapturePicture(int nativeAwContents, int width, int height);
1873 private native void nativeEnableOnNewPicture(int nativeAwContents, boolean e nabled); 1882 private native void nativeEnableOnNewPicture(int nativeAwContents, boolean e nabled);
1874 1883
1875 private native void nativeInvokeGeolocationCallback( 1884 private native void nativeInvokeGeolocationCallback(
1876 int nativeAwContents, boolean value, String requestingFrame); 1885 int nativeAwContents, boolean value, String requestingFrame);
1877 } 1886 }
OLDNEW
« 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