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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java

Issue 2807123003: Fix menu sizing for data saver footer. (Closed)
Patch Set: Fix strictmode violation when showing data reduction promo 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: chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java
index e62268a64df8432b13096265bb960f39eab1b2f3..05a4d78b023438861f5dbcfb4246013fb7c8b037 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java
@@ -307,6 +307,15 @@ public class AppMenuPropertiesDelegate {
}
/**
+ * Determines whether the header should be shown based on the maximum available menu height.
+ * @param maxMenuHeight The maximum available height for the menu to draw.
+ * @return Whether the footer, as specified in {@link #getFooterResourceId()}, should be shown.
+ */
+ public boolean shouldShowFooter(int maxMenuHeight) {
+ return true;
+ }
+
+ /**
* Updates the bookmarks bridge.
*
* @param bookmarkBridge The bookmarks bridge.

Powered by Google App Engine
This is Rietveld 408576698