OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |