Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: chrome/browser/ui/ash/launcher/arc_launcher_context_menu.h

Issue 2052013002: Adding ChromeLauncherController interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome_launcher_smaller_api
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 class ChromeLauncherController; 11 class ChromeLauncherController;
12 12
13 namespace ash { 13 namespace ash {
14 struct ShelfItem; 14 struct ShelfItem;
15 class WmShelf; 15 class WmShelf;
16 } 16 }
17 17
18 // Class for context menu which is shown for Arc app in the shelf. 18 // Class for context menu which is shown for Arc app in the shelf.
19 class ArcLauncherContextMenu : public LauncherContextMenu { 19 class ArcLauncherContextMenu : public LauncherContextMenu {
20 public: 20 public:
21 ArcLauncherContextMenu(ChromeLauncherController* controller, 21 ArcLauncherContextMenu(ChromeLauncherControllerImpl* controller,
22 const ash::ShelfItem* item, 22 const ash::ShelfItem* item,
23 ash::WmShelf* wm_shelf); 23 ash::WmShelf* wm_shelf);
24 ~ArcLauncherContextMenu() override; 24 ~ArcLauncherContextMenu() override;
25 25
26 // ui::SimpleMenuModel::Delegate overrides: 26 // ui::SimpleMenuModel::Delegate overrides:
27 bool IsCommandIdEnabled(int command_id) const override; 27 bool IsCommandIdEnabled(int command_id) const override;
28 28
29 private: 29 private:
30 void Init(); 30 void Init();
31 31
32 DISALLOW_COPY_AND_ASSIGN(ArcLauncherContextMenu); 32 DISALLOW_COPY_AND_ASSIGN(ArcLauncherContextMenu);
33 }; 33 };
34 34
35 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_ 35 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698