summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/status_area_view.h
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 17:50:26 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 17:50:26 +0000
commitb284843ba6a1e90c12f91eaf796726433dc2537d (patch)
tree96edc5a4528e4d685c89544bfc13712e2984964a /chrome/browser/chromeos/status_area_view.h
parente83ce1e3f2fcacb3d400287d78567d22a2a06cae (diff)
downloadchromium_src-b284843ba6a1e90c12f91eaf796726433dc2537d.zip
chromium_src-b284843ba6a1e90c12f91eaf796726433dc2537d.tar.gz
chromium_src-b284843ba6a1e90c12f91eaf796726433dc2537d.tar.bz2
Refactor the menu model to live outside views/ so it can be shared
BUG=none TEST=none Review URL: http://codereview.chromium.org/465005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33827 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/status_area_view.h')
-rw-r--r--chrome/browser/chromeos/status_area_view.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/chrome/browser/chromeos/status_area_view.h b/chrome/browser/chromeos/status_area_view.h
index 73b08f1..e305407 100644
--- a/chrome/browser/chromeos/status_area_view.h
+++ b/chrome/browser/chromeos/status_area_view.h
@@ -6,13 +6,17 @@
#define CHROME_BROWSER_CHROMEOS_STATUS_AREA_VIEW_H_
#include "app/gfx/native_widget_types.h"
+#include "app/menus/simple_menu_model.h"
#include "base/basictypes.h"
-#include "views/controls/menu/simple_menu_model.h"
#include "views/controls/menu/view_menu_delegate.h"
#include "views/view.h"
class Browser;
+namespace views {
+class Menu2;
+}
+
namespace chromeos {
class ClockMenuButton;
@@ -23,7 +27,7 @@ class StatusAreaButton;
// This class is used to wrap the small informative widgets in the upper-right
// of the window title bar. It is used on ChromeOS only.
class StatusAreaView : public views::View,
- public views::SimpleMenuModel::Delegate,
+ public menus::SimpleMenuModel::Delegate,
public views::ViewMenuDelegate {
public:
enum OpenTabsMode {
@@ -54,11 +58,11 @@ class StatusAreaView : public views::View,
private:
void CreateAppMenu();
- // views::SimpleMenuModel::Delegate implementation.
+ // menus::SimpleMenuModel::Delegate implementation.
virtual bool IsCommandIdChecked(int command_id) const;
virtual bool IsCommandIdEnabled(int command_id) const;
virtual bool GetAcceleratorForCommandId(int command_id,
- views::Accelerator* accelerator);
+ menus::Accelerator* accelerator);
virtual void ExecuteCommand(int command_id);
// views::ViewMenuDelegate implementation.
@@ -76,8 +80,8 @@ class StatusAreaView : public views::View,
PowerMenuButton* battery_view_;
StatusAreaButton* menu_view_;
- scoped_ptr<views::SimpleMenuModel> app_menu_contents_;
- scoped_ptr<views::SimpleMenuModel> options_menu_contents_;
+ scoped_ptr<menus::SimpleMenuModel> app_menu_contents_;
+ scoped_ptr<menus::SimpleMenuModel> options_menu_contents_;
scoped_ptr<views::Menu2> app_menu_menu_;
static OpenTabsMode open_tabs_mode_;