Chromium Code Reviews| Index: chrome/browser/ui/views/action_box_menu_item_view.h |
| diff --git a/chrome/browser/ui/views/action_box_menu_item_view.h b/chrome/browser/ui/views/action_box_menu_item_view.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..953275b6bd49fbe49ccdb947f4261ce85d8a6560 |
| --- /dev/null |
| +++ b/chrome/browser/ui/views/action_box_menu_item_view.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_VIEWS_ACTION_BOX_MENU_ITEM_VIEW_H_ |
| +#define CHROME_BROWSER_UI_VIEWS_ACTION_BOX_MENU_ITEM_VIEW_H_ |
| +#pragma once |
| + |
| +#include "ui/views/controls/menu/menu_item_view.h" |
| + |
| +class ActionBoxMenuModel; |
| + |
| +// ActionBoxMenuItemView ------------------------------------------------------- |
|
Aaron Boodman
2012/07/02 22:41:34
Remove this line.
|
| + |
| +class ActionBoxMenuItemView : public views::MenuItemView { |
| + public: |
| + |
|
Aaron Boodman
2012/07/02 22:41:34
Remove this line.
|
| + explicit ActionBoxMenuItemView(views::MenuDelegate* delegate); |
| + |
| + // Paints the menu item. |
| + virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
|
Aaron Boodman
2012/07/02 22:41:34
Does this need to be public?
|
| + |
| + // Sizes any child views. |
| + virtual void Layout() OVERRIDE; |
|
Aaron Boodman
2012/07/02 22:41:34
Does this need to be public?
|
| + |
| + MenuItemView* AppendMenuItemFromModel(ActionBoxMenuModel* model, |
| + int index, int id); |
| + |
| + protected: |
| + ActionBoxMenuItemView(views::MenuItemView* parent, int command, Type type); |
| + |
| + // MenuRunner owns MenuItemView and should be the only one deleting it. |
| + virtual ~ActionBoxMenuItemView(); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(ActionBoxMenuItemView); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_VIEWS_ACTION_BOX_MENU_ITEM_VIEW_H_ |