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

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: fix compile for touch on chromeos Created 10 years 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 | « views/controls/menu/menu_controller.cc ('k') | views/controls/menu/menu_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0a19870b306482180312b7e8336197489a0396fa 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,13 @@ 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. |index| should be offset by GetFirstItemIndex() before calling
+ // this function.
+ MenuItemView* AppendMenuItemFromModel(menus::MenuModel* model,
+ int index,
+ int id);
+
// All the AppendXXX methods funnel into this.
MenuItemView* AppendMenuItemImpl(int item_id,
const std::wstring& label,
« no previous file with comments | « views/controls/menu/menu_controller.cc ('k') | views/controls/menu/menu_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698