Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_ACTION_BOX_MENU_ITEM_VIEW_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_ACTION_BOX_MENU_ITEM_VIEW_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "ui/views/controls/menu/menu_item_view.h" | |
| 10 | |
| 11 class ActionBoxMenuModel; | |
| 12 | |
| 13 // ActionBoxMenuItemView ------------------------------------------------------- | |
|
Aaron Boodman
2012/07/02 22:41:34
Remove this line.
| |
| 14 | |
| 15 class ActionBoxMenuItemView : public views::MenuItemView { | |
| 16 public: | |
| 17 | |
|
Aaron Boodman
2012/07/02 22:41:34
Remove this line.
| |
| 18 explicit ActionBoxMenuItemView(views::MenuDelegate* delegate); | |
| 19 | |
| 20 // Paints the menu item. | |
| 21 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | |
|
Aaron Boodman
2012/07/02 22:41:34
Does this need to be public?
| |
| 22 | |
| 23 // Sizes any child views. | |
| 24 virtual void Layout() OVERRIDE; | |
|
Aaron Boodman
2012/07/02 22:41:34
Does this need to be public?
| |
| 25 | |
| 26 MenuItemView* AppendMenuItemFromModel(ActionBoxMenuModel* model, | |
| 27 int index, int id); | |
| 28 | |
| 29 protected: | |
| 30 ActionBoxMenuItemView(views::MenuItemView* parent, int command, Type type); | |
| 31 | |
| 32 // MenuRunner owns MenuItemView and should be the only one deleting it. | |
| 33 virtual ~ActionBoxMenuItemView(); | |
| 34 | |
| 35 private: | |
| 36 DISALLOW_COPY_AND_ASSIGN(ActionBoxMenuItemView); | |
| 37 }; | |
| 38 | |
| 39 #endif // CHROME_BROWSER_UI_VIEWS_ACTION_BOX_MENU_ITEM_VIEW_H_ | |
| OLD | NEW |