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

Unified Diff: ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.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: ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.java
diff --git a/ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.java b/ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.java
index 82d09ea85aba6095b160d67ec5238c93b1586bb1..9b87ac26350ba9465148ef6b8bf73ce6a577a298 100644
--- a/ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.java
+++ b/ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.java
@@ -105,6 +105,33 @@ public abstract class ViewAndroidDelegate {
}
/**
+ * Returns the bottom system window inset in pixels. The system window inset represents
+ * the area of a full-screen window that is partially or fully obscured by the status bar,
+ * navigation bar, IME or other system windows.
+ * @return The bottom system window inset.
+ */
+ public int getSystemWindowInsetBottom() {
+ return 0;
+ }
+
+ @CalledByNative
+ public void onBackgroundColorChanged(int color) { }
+
+ /**
+ * Notifies the client of the position of the top controls.
+ * @param topControlsOffsetY The Y offset of the top controls in physical pixels.
+ * @param topContentOffsetY The Y offset of the content in physical pixels.
+ */
+ public void onTopControlsChanged(float topControlsOffsetY, float topContentOffsetY) { }
+
+ /**
+ * Notifies the client of the position of the bottom controls.
+ * @param bottomControlsOffsetY The Y offset of the bottom controls in physical pixels.
+ * @param bottomContentOffsetY The Y offset of the content in physical pixels.
+ */
+ public void onBottomControlsChanged(float bottomControlsOffsetY, float bottomContentOffsetY) { }
+
+ /**
* @return container view that the anchor views are added to. May be null.
*/
public abstract ViewGroup getContainerView();

Powered by Google App Engine
This is Rietveld 408576698