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

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

Issue 2842693005: Store physical backing size in ViewAndroid (Closed)
Patch Set: no cvc/eventf Created 3 years, 8 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
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 95ef94d1a9e1d92b56eab66af4cf7cd624b2090c..e80db710399b51517393f1f25a4afd150287701a 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -3339,7 +3339,7 @@ public class AwContents implements SmartClipProvider {
// to enter fixedLayoutSize mode is sent before the first resize
// update.
mLayoutSizer.onSizeChanged(w, h, ow, oh);
- mContentViewCore.onPhysicalBackingSizeChanged(w, h);
+ nativeOnPhysicalBackingSizeChanged(mNativeAwContents, w, h);
boliu 2017/04/29 00:18:40 merge this with nativeOnSizeChanged (move nativeOn
Jinsuk Kim 2017/04/30 00:23:49 Done.
mContentViewCore.onSizeChanged(w, h, ow, oh);
nativeOnSizeChanged(mNativeAwContents, w, h, ow, oh);
}
@@ -3471,6 +3471,7 @@ public class AwContents implements SmartClipProvider {
float touchMajor);
private native void nativeUpdateLastHitTestData(long nativeAwContents);
+ private native void nativeOnPhysicalBackingSizeChanged(long nativeAwContents, int w, int h);
private native void nativeOnSizeChanged(long nativeAwContents, int w, int h, int ow, int oh);
private native void nativeScrollTo(long nativeAwContents, int x, int y);
private native void nativeSmoothScroll(
« no previous file with comments | « no previous file | android_webview/native/aw_contents.h » ('j') | content/browser/android/content_view_core_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698