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

Side by Side Diff: chrome/browser/ui/views/action_box_menu_item_view.h

Issue 10533086: Action box menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698