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/shelf/shelf_alignment_menu.h"
9 #include "ash/shelf/shelf_types.h"
10 #include "base/basictypes.h"
11 #include "ui/base/models/simple_menu_model.h"
20 // Context menu for the ash_shell.
21 class ContextMenu
: public ui::SimpleMenuModel
,
22 public ui::SimpleMenuModel::Delegate
{
24 explicit ContextMenu(aura::Window
* root
);
25 ~ContextMenu() override
;
27 // ui::SimpleMenuModel::Delegate overrides:
28 bool IsCommandIdChecked(int command_id
) const override
;
29 bool IsCommandIdEnabled(int command_id
) const override
;
30 bool GetAcceleratorForCommandId(int command_id
,
31 ui::Accelerator
* accelerator
) override
;
32 void ExecuteCommand(int command_id
, int event_flags
) override
;
40 aura::Window
* root_window_
;
42 ShelfAlignmentMenu alignment_menu_
;
44 DISALLOW_COPY_AND_ASSIGN(ContextMenu
);
50 #endif // ASH_SHELL_CONTEXT_MENU_H_