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

Unified Diff: ui/views/controls/menu/menu_model_adapter.h

Issue 12789010: [win] Change app launcher profile indicator to be a menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clang fail Created 7 years, 9 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 | « ui/resources/ui_resources.grd ('k') | ui/views/controls/menu/menu_model_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_model_adapter.h
diff --git a/ui/views/controls/menu/menu_model_adapter.h b/ui/views/controls/menu/menu_model_adapter.h
index 9c3e84e72dcd17756107cf4cf9594664eee8849b..0c960a505b0fed8b54a7cf31ef5c4e551cb74422 100644
--- a/ui/views/controls/menu/menu_model_adapter.h
+++ b/ui/views/controls/menu/menu_model_adapter.h
@@ -39,6 +39,13 @@ class VIEWS_EXPORT MenuModelAdapter : public MenuDelegate {
int triggerable_event_flags() const { return triggerable_event_flags_; }
protected:
+ // Create and add a menu item to |menu| for the item at index |index| in
+ // |model|. Subclasses override this to allow custom items to be added to the
+ // menu.
+ virtual MenuItemView* AppendMenuItem(MenuItemView* menu,
+ ui::MenuModel* model,
+ int index);
+
// views::MenuDelegate implementation.
virtual void ExecuteCommand(int id) OVERRIDE;
virtual void ExecuteCommand(int id, int mouse_event_flags) OVERRIDE;
« no previous file with comments | « ui/resources/ui_resources.grd ('k') | ui/views/controls/menu/menu_model_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698