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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 2536223003: Refactor ContentViewClient (3/6) (Closed)
Patch Set: removed getDesiredMeasureSpec Created 4 years 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: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index 952f300d2e701811e9d720a2d1a3bea586a45b42..e3ba6374d5723916232a8d71de30aecdca15600a 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -888,11 +888,6 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Displa
return mContentViewClient;
}
- @CalledByNative
- private void onBackgroundColorChanged(int color) {
- getContentViewClient().onBackgroundColorChanged(color);
- }
-
/**
* @return Viewport width in physical pixels as set from onSizeChanged.
*/
@@ -914,7 +909,7 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Displa
*/
@CalledByNative
public int getViewportHeightWithOSKHiddenPix() {
- return mViewportHeightPix + getContentViewClient().getSystemWindowInsetBottom();
+ return mViewportHeightPix + mViewAndroidDelegate.getSystemWindowInsetBottom();
}
/**
@@ -1979,11 +1974,11 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Displa
if (topBarChanged) {
float topBarTranslate = topBarShownPix - browserControlsHeightDp * deviceScale;
- getContentViewClient().onTopControlsChanged(topBarTranslate, topBarShownPix);
+ mViewAndroidDelegate.onTopControlsChanged(topBarTranslate, topBarShownPix);
}
if (bottomBarChanged) {
float bottomBarTranslate = bottomControlsHeightDp * deviceScale - bottomBarShownPix;
- getContentViewClient().onBottomControlsChanged(bottomBarTranslate, bottomBarShownPix);
+ mViewAndroidDelegate.onBottomControlsChanged(bottomBarTranslate, bottomBarShownPix);
}
if (mBrowserAccessibilityManager != null) {

Powered by Google App Engine
This is Rietveld 408576698