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

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: 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..8175e299d700f395507dc37baf6fbbba3c8b3e93
--- /dev/null
+++ b/chrome/browser/ui/views/action_box_menu_item_view.h
@@ -0,0 +1,38 @@
+// 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"
+
+// ActionBoxMenuItemView -------------------------------------------------------
+
+class ActionBoxMenuItemView : public views::MenuItemView {
+ public:
+
+ explicit ActionBoxMenuItemView(views::MenuDelegate* delegate);
+
+ // Paints the menu item.
+ virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
+
+ // Sizes any child views.
+ virtual void Layout() OVERRIDE;
+
+ protected:
+ ActionBoxMenuItemView(views::MenuItemView* parent, int command, Type type);
+
+ // MenuRunner owns MenuItemView and should be the only one deleting it.
+ virtual ~ActionBoxMenuItemView();
+
+ virtual MenuItemView* AllocateMenuItemView(MenuItemView* parent, int item_id,
+ Type type);
+
+ 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