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_ |