Add per-day app launcher usage histogram
[chromium-blink-merge.git] / ash / shell / context_menu.h
blob34d20428ae2761783f2dbea24149005ae1f3b004
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.
5 #ifndef ASH_SHELL_CONTEXT_MENU_H_
6 #define ASH_SHELL_CONTEXT_MENU_H_
8 #include "ash/launcher/launcher_alignment_menu.h"
9 #include "ash/shelf/shelf_types.h"
10 #include "base/basictypes.h"
11 #include "ui/base/models/simple_menu_model.h"
13 namespace aura {
14 class RootWindow;
17 namespace ash {
18 namespace shell {
20 // Context menu for the ash_shell.
21 class ContextMenu : public ui::SimpleMenuModel,
22 public ui::SimpleMenuModel::Delegate {
23 public:
24 explicit ContextMenu(aura::RootWindow* root);
25 virtual ~ContextMenu();
27 // ui::SimpleMenuModel::Delegate overrides:
28 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
29 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
30 virtual bool GetAcceleratorForCommandId(
31 int command_id,
32 ui::Accelerator* accelerator) OVERRIDE;
33 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
35 private:
36 enum MenuItem {
37 MENU_AUTO_HIDE,
38 MENU_ALIGNMENT_MENU,
41 aura::RootWindow* root_window_;
43 LauncherAlignmentMenu alignment_menu_;
45 DISALLOW_COPY_AND_ASSIGN(ContextMenu);
48 } // namespace shell
49 } // namespace ash
51 #endif // ASH_SHELL_CONTEXT_MENU_H_