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 // ActionBoxMenuItemView ------------------------------------------------------- |
| 12 |
| 13 class ActionBoxMenuItemView : public views::MenuItemView { |
| 14 public: |
| 15 |
| 16 explicit ActionBoxMenuItemView(views::MenuDelegate* delegate); |
| 17 |
| 18 // Paints the menu item. |
| 19 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 20 |
| 21 // Sizes any child views. |
| 22 virtual void Layout() OVERRIDE; |
| 23 |
| 24 protected: |
| 25 ActionBoxMenuItemView(views::MenuItemView* parent, int command, Type type); |
| 26 |
| 27 // MenuRunner owns MenuItemView and should be the only one deleting it. |
| 28 virtual ~ActionBoxMenuItemView(); |
| 29 |
| 30 virtual MenuItemView* AllocateMenuItemView(MenuItemView* parent, int item_id, |
| 31 Type type); |
| 32 |
| 33 private: |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(ActionBoxMenuItemView); |
| 36 }; |
| 37 |
| 38 #endif // CHROME_BROWSER_UI_VIEWS_ACTION_BOX_MENU_ITEM_VIEW_H_ |
OLD | NEW |