OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h" | 9 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h" |
10 | 10 |
11 namespace ash { | 11 namespace ash { |
12 struct ShelfItem; | 12 struct ShelfItem; |
13 class WmShelf; | 13 class WmShelf; |
14 } | 14 } |
15 | 15 |
16 // Class for context menu which is shown for Arc app in the shelf. | 16 // Class for context menu which is shown for ARC app in the shelf. |
17 class ArcLauncherContextMenu : public LauncherContextMenu { | 17 class ArcLauncherContextMenu : public LauncherContextMenu { |
18 public: | 18 public: |
19 ArcLauncherContextMenu(ChromeLauncherControllerImpl* controller, | 19 ArcLauncherContextMenu(ChromeLauncherControllerImpl* controller, |
20 const ash::ShelfItem* item, | 20 const ash::ShelfItem* item, |
21 ash::WmShelf* wm_shelf); | 21 ash::WmShelf* wm_shelf); |
22 ~ArcLauncherContextMenu() override; | 22 ~ArcLauncherContextMenu() override; |
23 | 23 |
24 // ui::SimpleMenuModel::Delegate overrides: | 24 // ui::SimpleMenuModel::Delegate overrides: |
25 bool IsCommandIdEnabled(int command_id) const override; | 25 bool IsCommandIdEnabled(int command_id) const override; |
26 | 26 |
27 private: | 27 private: |
28 void Init(); | 28 void Init(); |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(ArcLauncherContextMenu); | 30 DISALLOW_COPY_AND_ASSIGN(ArcLauncherContextMenu); |
31 }; | 31 }; |
32 | 32 |
33 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_ | 33 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_ |
OLD | NEW |