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

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

Issue 2696073002: Merge ShelfItemDelegate::ItemSelected & LauncherItemDelegate::Activate. (Closed)
Patch Set: nit Created 3 years, 10 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_CHROME_LAUNCHER_CONTROLLER_MUS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_MUS_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_MUS_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_MUS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 22 matching lines...) Expand all
33 void Unpin(ash::ShelfID id) override; 33 void Unpin(ash::ShelfID id) override;
34 bool IsPinned(ash::ShelfID id) override; 34 bool IsPinned(ash::ShelfID id) override;
35 void TogglePinned(ash::ShelfID id) override; 35 void TogglePinned(ash::ShelfID id) override;
36 void LockV1AppWithID(const std::string& app_id) override; 36 void LockV1AppWithID(const std::string& app_id) override;
37 void UnlockV1AppWithID(const std::string& app_id) override; 37 void UnlockV1AppWithID(const std::string& app_id) override;
38 void Launch(ash::ShelfID id, int event_flags) override; 38 void Launch(ash::ShelfID id, int event_flags) override;
39 void Close(ash::ShelfID id) override; 39 void Close(ash::ShelfID id) override;
40 bool IsOpen(ash::ShelfID id) override; 40 bool IsOpen(ash::ShelfID id) override;
41 bool IsPlatformApp(ash::ShelfID id) override; 41 bool IsPlatformApp(ash::ShelfID id) override;
42 void ActivateApp(const std::string& app_id, 42 void ActivateApp(const std::string& app_id,
43 ash::LaunchSource source, 43 ash::ShelfLaunchSource source,
44 int event_flags) override; 44 int event_flags) override;
45 void SetLauncherItemImage(ash::ShelfID shelf_id, 45 void SetLauncherItemImage(ash::ShelfID shelf_id,
46 const gfx::ImageSkia& image) override; 46 const gfx::ImageSkia& image) override;
47 void UpdateAppState(content::WebContents* contents, 47 void UpdateAppState(content::WebContents* contents,
48 AppState app_state) override; 48 AppState app_state) override;
49 ash::ShelfID GetShelfIDForWebContents( 49 ash::ShelfID GetShelfIDForWebContents(
50 content::WebContents* contents) override; 50 content::WebContents* contents) override;
51 void SetRefocusURLPatternForTest(ash::ShelfID id, const GURL& url) override; 51 void SetRefocusURLPatternForTest(ash::ShelfID id, const GURL& url) override;
52 ash::ShelfItemDelegate::PerformedAction ActivateWindowOrMinimizeIfActive( 52 ash::ShelfAction ActivateWindowOrMinimizeIfActive(
53 ui::BaseWindow* window, 53 ui::BaseWindow* window,
54 bool allow_minimize) override; 54 bool allow_minimize) override;
55 void ActiveUserChanged(const std::string& user_email) override; 55 void ActiveUserChanged(const std::string& user_email) override;
56 void AdditionalUserAddedToSession(Profile* profile) override; 56 void AdditionalUserAddedToSession(Profile* profile) override;
57 ash::ShelfAppMenuItemList GetAppMenuItems(const ash::ShelfItem& item, 57 ash::ShelfAppMenuItemList GetAppMenuItems(const ash::ShelfItem& item,
58 int event_flags) override; 58 int event_flags) override;
59 std::vector<content::WebContents*> GetV1ApplicationsFromAppId( 59 std::vector<content::WebContents*> GetV1ApplicationsFromAppId(
60 const std::string& app_id) override; 60 const std::string& app_id) override;
61 void ActivateShellApp(const std::string& app_id, int window_index) override; 61 void ActivateShellApp(const std::string& app_id, int window_index) override;
62 bool IsWebContentHandledByApplication(content::WebContents* web_contents, 62 bool IsWebContentHandledByApplication(content::WebContents* web_contents,
(...skipping 26 matching lines...) Expand all
89 // Pin the items set in the current profile's preferences. 89 // Pin the items set in the current profile's preferences.
90 void PinAppsFromPrefs(); 90 void PinAppsFromPrefs();
91 91
92 std::map<std::string, std::unique_ptr<ChromeShelfItemDelegate>> 92 std::map<std::string, std::unique_ptr<ChromeShelfItemDelegate>>
93 app_id_to_item_delegate_; 93 app_id_to_item_delegate_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerMus); 95 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerMus);
96 }; 96 };
97 97
98 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_MUS_H_ 98 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698