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

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: Action box menu Created 8 years, 5 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698