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

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

Issue 2835063003: mash: Use ChromeLauncherControllerImpl, remove Mus subclass stub. (Closed)
Patch Set: Add comment and separate mash-only members. Created 3 years, 7 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 <string>
9
10 #include "base/macros.h"
11 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
12
13 class ChromeLauncherControllerMus : public ChromeLauncherController {
14 public:
15 ChromeLauncherControllerMus();
16 ~ChromeLauncherControllerMus() override;
17
18 // ChromeLauncherController:
19 ash::ShelfID CreateAppLauncherItem(
20 std::unique_ptr<ash::ShelfItemDelegate> item_delegate,
21 ash::ShelfItemStatus status) override;
22 const ash::ShelfItem* GetItem(ash::ShelfID id) const override;
23 void SetItemType(ash::ShelfID id, ash::ShelfItemType type) override;
24 void SetItemStatus(ash::ShelfID id, ash::ShelfItemStatus status) override;
25 void CloseLauncherItem(ash::ShelfID id) override;
26 bool IsPinned(ash::ShelfID id) override;
27 void SetV1AppStatus(const std::string& app_id,
28 ash::ShelfItemStatus status) override;
29 void Launch(ash::ShelfID id, int event_flags) override;
30 void Close(ash::ShelfID id) override;
31 bool IsOpen(ash::ShelfID id) override;
32 bool IsPlatformApp(ash::ShelfID id) override;
33 void ActivateApp(const std::string& app_id,
34 ash::ShelfLaunchSource source,
35 int event_flags) override;
36 void SetLauncherItemImage(ash::ShelfID shelf_id,
37 const gfx::ImageSkia& image) override;
38 void UpdateAppState(content::WebContents* contents,
39 AppState app_state) override;
40 ash::ShelfID GetShelfIDForWebContents(
41 content::WebContents* contents) override;
42 void SetRefocusURLPatternForTest(ash::ShelfID id, const GURL& url) override;
43 ash::ShelfAction ActivateWindowOrMinimizeIfActive(
44 ui::BaseWindow* window,
45 bool allow_minimize) override;
46 void ActiveUserChanged(const std::string& user_email) override;
47 void AdditionalUserAddedToSession(Profile* profile) override;
48 ash::MenuItemList GetAppMenuItemsForTesting(
49 const ash::ShelfItem& item) override;
50 std::vector<content::WebContents*> GetV1ApplicationsFromAppId(
51 const std::string& app_id) override;
52 void ActivateShellApp(const std::string& app_id, int window_index) override;
53 bool IsWebContentHandledByApplication(content::WebContents* web_contents,
54 const std::string& app_id) override;
55 bool ContentCanBeHandledByGmailApp(
56 content::WebContents* web_contents) override;
57 gfx::Image GetAppListIcon(content::WebContents* web_contents) const override;
58 base::string16 GetAppListTitle(
59 content::WebContents* web_contents) const override;
60 BrowserShortcutLauncherItemController*
61 GetBrowserShortcutLauncherItemController() override;
62 bool ShelfBoundsChangesProbablyWithUser(
63 ash::WmShelf* shelf,
64 const AccountId& account_id) const override;
65 void OnUserProfileReadyToSwitch(Profile* profile) override;
66 ArcAppDeferredLauncherController* GetArcDeferredLauncher() override;
67 const std::string& GetLaunchIDForShelfID(ash::ShelfID id) override;
68
69 // AppIconLoaderDelegate:
70 void OnAppImageUpdated(const std::string& app_id,
71 const gfx::ImageSkia& image) override;
72
73 protected:
74 // ChromeLauncherController:
75 void OnInit() override;
76
77 private:
78 // Pin the items set in the current profile's preferences.
79 void PinAppsFromPrefs();
80
81 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerMus);
82 };
83
84 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698