| 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,
|
|
|