Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_ | |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h" | |
| 10 | |
|
khmel
2016/03/30 00:58:46
namespace ash {
class Shelf;
class ShelfItem;
}
lgcheng
2016/03/30 02:06:25
Use
| |
| 11 class ChromeLauncherController; | |
| 12 | |
| 13 // Class for context menu which is shown for Arc app in the shelf. | |
| 14 class ArcLauncherContextMenu : public LauncherContextMenu { | |
| 15 public: | |
| 16 ArcLauncherContextMenu(ChromeLauncherController* controller, | |
| 17 const ash::ShelfItem* item, | |
| 18 ash::Shelf* shelf); | |
| 19 ~ArcLauncherContextMenu() override; | |
| 20 // LauncherContextMenu overrides: | |
| 21 void Init() override; | |
| 22 // ui::SimpleMenuModel::Delegate overrides: | |
| 23 bool IsCommandIdEnabled(int command_id) const override; | |
| 24 | |
| 25 private: | |
| 26 DISALLOW_COPY_AND_ASSIGN(ArcLauncherContextMenu); | |
| 27 }; | |
| 28 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_ | |
| OLD | NEW |