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

Unified Diff: android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java

Issue 16255010: Hookup android_webview scroll offset delegation to Java side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile break Created 7 years, 6 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/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java
index 89905d14cf1459fbc031c2b4c493b6109b71c3b3..f3a3e88d3d0e68029922ffd9643a5ae42ba63842 100644
--- a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java
+++ b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java
@@ -56,16 +56,19 @@ public class AwTestContainerView extends FrameLayout {
@Override
public void onConfigurationChanged(Configuration newConfig) {
+ super.onConfigurationChanged(newConfig);
mAwContents.onConfigurationChanged(newConfig);
}
@Override
public void onAttachedToWindow() {
+ super.onAttachedToWindow();
mAwContents.onAttachedToWindow();
}
@Override
public void onDetachedFromWindow() {
+ super.onDetachedFromWindow();
mAwContents.onDetachedFromWindow();
}
@@ -97,27 +100,40 @@ public class AwTestContainerView extends FrameLayout {
@Override
public void onSizeChanged(int w, int h, int ow, int oh) {
+ super.onSizeChanged(w, h, ow, oh);
mAwContents.onSizeChanged(w, h, ow, oh);
}
@Override
+ public void onScrollChanged(int l, int t, int oldl, int oldt) {
+ super.onScrollChanged(l, t, oldl, oldt);
+ if (mAwContents != null) {
+ mAwContents.onContainerViewScrollChanged(l, t, oldl, oldt);
+ }
+ }
+
+ @Override
public void onVisibilityChanged(View changedView, int visibility) {
+ super.onVisibilityChanged(changedView, visibility);
mAwContents.onVisibilityChanged(changedView, visibility);
}
@Override
public void onWindowVisibilityChanged(int visibility) {
+ super.onWindowVisibilityChanged(visibility);
mAwContents.onWindowVisibilityChanged(visibility);
}
@Override
public boolean onTouchEvent(MotionEvent ev) {
+ super.onTouchEvent(ev);
return mAwContents.onTouchEvent(ev);
}
@Override
public void onDraw(Canvas canvas) {
mAwContents.onDraw(canvas);
+ super.onDraw(canvas);
}
// TODO: AwContents could define a generic class that holds an implementation similar to
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | content/public/android/java/src/org/chromium/content/browser/ContentView.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698