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

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

Issue 79573003: Upstreaming AppMenu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually add tvdpi Created 7 years, 1 month 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
new file mode 100644
index 0000000000000000000000000000000000000000..28094d75a31d7db405eae2ae09542dc0052583d8
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java
@@ -0,0 +1,39 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.chrome.browser.appmenu;
+
+import android.view.Menu;
+
+/**
+ * Interface for the App Handler to query the desired state of the App Menu.
+ */
+public interface AppMenuPropertiesDelegate {
+
+ /**
+ * @return Whether the App Menu should be shown.
+ */
+ boolean shouldShowAppMenu();
+
+ /**
+ * Allows the delegate to show and hide items before the App Menu is shown.
+ * @param mMenu Menu that will be used as the source for the App Menu pop up.
+ */
+ void prepareMenu(Menu mMenu);
+
+ /**
+ * @return Whether the App Menu should contain the icon row.
+ */
+ boolean shouldShowIconRow();
+
+ /**
+ * @return The theme resource to use for displaying the App Menu.
+ */
+ int getMenuThemeResourceId();
+
+ /**
+ * @return The height of each row in the App Menu.
+ */
+ int getItemRowHeight();
+}

Powered by Google App Engine
This is Rietveld 408576698