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

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

Issue 944173002: Expose a method to invalidate menu item content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added null check for ListView Created 5 years, 10 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenu.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuHandler.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuHandler.java b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuHandler.java
index ae42a9ba094cc789b5dad1b1ea181d21c4327223..e807dbcafbaaf4ef6cd43ea03f3500b554c377d2 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuHandler.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuHandler.java
@@ -50,6 +50,17 @@ public class AppMenuHandler {
}
/**
+ * Notifies the menu that the contents of the menu item specified by {@code menuRowId} have
+ * changed. This should be called if icons, titles, etc. are changing for a particular menu
+ * item while the menu is open.
+ * @param menuRowId The id of the menu item to change. This must be a row id and not a child
+ * id.
+ */
+ public void menuItemContentChanged(int menuRowId) {
+ if (mAppMenu != null) mAppMenu.menuItemContentChanged(menuRowId);
+ }
+
+ /**
* Show the app menu.
* @param anchorView Anchor view (usually a menu button) to be used for the popup.
* @param isByHardwareButton True if hardware button triggered it. (oppose to software
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenu.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698