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

Unified Diff: views/controls/menu/menu_item_view.h

Issue 5110011: A non-GTK version of menus for touchui. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Address comments from sky. Created 10 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: views/controls/menu/menu_item_view.h
diff --git a/views/controls/menu/menu_item_view.h b/views/controls/menu/menu_item_view.h
index 66540b78173ce61b291d94255a5c3fb04437c74a..561a37009ea28b0ab7b68d064b579eaa4c168daf 100644
--- a/views/controls/menu/menu_item_view.h
+++ b/views/controls/menu/menu_item_view.h
@@ -19,6 +19,10 @@
#include "gfx/native_theme_win.h"
#endif
+namespace menus {
+class MenuModel;
+}
+
namespace views {
class MenuButton;
@@ -175,6 +179,12 @@ class MenuItemView : public View {
AppendMenuItemImpl(item_id, label, icon, NORMAL);
}
+ // Creates a menu item for the specified entry in the model and appends it as
+ // a child.
+ MenuItemView* AppendMenuItemFromModel(menus::MenuModel* model,
+ int index,
sky 2010/11/22 19:23:01 index->model_index. Document that the index has al
sadrul 2010/11/22 19:42:38 Done.
+ int id);
+
// All the AppendXXX methods funnel into this.
MenuItemView* AppendMenuItemImpl(int item_id,
const std::wstring& label,

Powered by Google App Engine
This is Rietveld 408576698