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

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

Issue 2059963002: Mustash implementation of ChromeLauncherController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launcher_controller_mus_5
Patch Set: 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
(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_CHROME_LAUNCHER_CONTROLLER_MUS_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_MUS_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
10
11 class ChromeMashShelfController;
12
13 class ChromeLauncherControllerMus : public ChromeLauncherController {
14 public:
15 // Create ChromeLauncherControllerMus instance and set is as the
msw 2016/06/10 22:58:44 nit: "Create a" and "set it"
mfomitchev 2016/06/13 20:50:13 Done.
16 // ChromeLauncherController singleton.
17 static ChromeLauncherController* CreateInstance();
18
19 ~ChromeLauncherControllerMus() override;
20
21 // ChromeLauncherController:
22 void Init() override;
23 ash::ShelfID CreateAppLauncherItem(LauncherItemController* controller,
24 const std::string& app_id,
25 ash::ShelfItemStatus status) override;
26 void SetItemStatus(ash::ShelfID id, ash::ShelfItemStatus status) override;
27 void SetItemController(ash::ShelfID id,
28 LauncherItemController* controller) override;
29 void CloseLauncherItem(ash::ShelfID id) override;
30 void Pin(ash::ShelfID id) override;
31 void Unpin(ash::ShelfID id) override;
32 bool IsPinned(ash::ShelfID id) override;
33 void TogglePinned(ash::ShelfID id) override;
34 bool IsPinnable(ash::ShelfID id) const override;
35 void LockV1AppWithID(const std::string& app_id) override;
36 void UnlockV1AppWithID(const std::string& app_id) override;
37 void Launch(ash::ShelfID id, int event_flags) override;
38 void Close(ash::ShelfID id) override;
39 bool IsOpen(ash::ShelfID id) override;
40 bool IsPlatformApp(ash::ShelfID id) override;
41 void LaunchApp(const std::string& app_id,
42 ash::LaunchSource source,
43 int event_flags) override;
44 void ActivateApp(const std::string& app_id,
45 ash::LaunchSource source,
46 int event_flags) override;
47 extensions::LaunchType GetLaunchType(ash::ShelfID id) override;
48 void SetLauncherItemImage(ash::ShelfID shelf_id,
49 const gfx::ImageSkia& image) override;
50 bool IsWindowedAppInLauncher(const std::string& app_id) override;
51 void SetLaunchType(ash::ShelfID id,
52 extensions::LaunchType launch_type) override;
53 void PersistPinnedState() override;
54 Profile* GetProfile() override;
55 void UpdateAppState(content::WebContents* contents,
56 AppState app_state) override;
57 ash::ShelfID GetShelfIDForWebContents(
58 content::WebContents* contents) override;
59 void SetRefocusURLPatternForTest(ash::ShelfID id, const GURL& url) override;
60 const extensions::Extension* GetExtensionForAppID(
61 const std::string& app_id) const override;
62 ash::ShelfItemDelegate::PerformedAction ActivateWindowOrMinimizeIfActive(
63 ui::BaseWindow* window,
64 bool allow_minimize) override;
65 void ActiveUserChanged(const std::string& user_email) override;
66 void AdditionalUserAddedToSession(Profile* profile) override;
67 ChromeLauncherAppMenuItems GetApplicationList(const ash::ShelfItem& item,
68 int event_flags) override;
69 std::vector<content::WebContents*> GetV1ApplicationsFromAppId(
70 const std::string& app_id) override;
71 void ActivateShellApp(const std::string& app_id, int index) override;
72 bool IsWebContentHandledByApplication(content::WebContents* web_contents,
73 const std::string& app_id) override;
74 bool ContentCanBeHandledByGmailApp(
75 content::WebContents* web_contents) override;
76 gfx::Image GetAppListIcon(content::WebContents* web_contents) const override;
77 base::string16 GetAppListTitle(
78 content::WebContents* web_contents) const override;
79 BrowserShortcutLauncherItemController*
80 GetBrowserShortcutLauncherItemController() override;
81 LauncherItemController* GetLauncherItemController(
82 const ash::ShelfID id) override;
83 bool IsBrowserFromActiveUser(Browser* browser) override;
84 bool ShelfBoundsChangesProbablyWithUser(
85 ash::Shelf* shelf,
86 const std::string& user_id) const override;
87 void OnUserProfileReadyToSwitch(Profile* profile) override;
88 AppListControllerDelegate::Pinnable GetPinnable(
89 const std::string& app_id) override;
90 ArcAppDeferredLauncherController* GetArcDeferredLauncher() override;
91
92 private:
93 ChromeLauncherControllerMus();
94
95 ChromeMashShelfController* shelf_controller_;
96
97 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerMus);
98 };
99
100 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698