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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698