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 bbd07b407a628eb04a42acfaedc8b2be335062c3..f684d8afbcc5ed722f648467db795a5737d33323 100644 |
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java |
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java |
@@ -673,6 +673,15 @@ public class AwContents { |
msg.sendToTarget(); |
} |
+ public void resetScrollAndScaleState() { |
+ ThreadUtils.runOnUiThreadBlocking(new Runnable() { |
+ @Override |
+ public void run() { |
+ nativeResetScrollAndScaleState(mNativeAwContents); |
+ } |
+ }); |
+ } |
+ |
//-------------------------------------------------------------------------------------------- |
// View and ViewGroup method implementations |
//-------------------------------------------------------------------------------------------- |
@@ -1069,6 +1078,8 @@ public class AwContents { |
private native void nativeSetWebContents(int nativeAwContents, int nativeNewWebContents); |
private native void nativeFocusFirstNode(int nativeAwContents); |
+ private native void nativeResetScrollAndScaleState(int nativeAwContents); |
+ |
private native boolean nativeDrawSW(int nativeAwContents, Canvas canvas, int clipX, int clipY, |
int clipW, int clipH); |
private native int nativeGetAwDrawGLViewContext(int nativeAwContents); |