OLD | NEW |
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 BrowserShortcutLauncherItemController* | 73 BrowserShortcutLauncherItemController* |
74 GetBrowserShortcutLauncherItemController() override; | 74 GetBrowserShortcutLauncherItemController() override; |
75 LauncherItemController* GetLauncherItemController( | 75 LauncherItemController* GetLauncherItemController( |
76 const ash::ShelfID id) override; | 76 const ash::ShelfID id) override; |
77 bool ShelfBoundsChangesProbablyWithUser( | 77 bool ShelfBoundsChangesProbablyWithUser( |
78 ash::WmShelf* shelf, | 78 ash::WmShelf* shelf, |
79 const AccountId& account_id) const override; | 79 const AccountId& account_id) const override; |
80 void OnUserProfileReadyToSwitch(Profile* profile) override; | 80 void OnUserProfileReadyToSwitch(Profile* profile) override; |
81 ArcAppDeferredLauncherController* GetArcDeferredLauncher() override; | 81 ArcAppDeferredLauncherController* GetArcDeferredLauncher() override; |
82 const std::string& GetLaunchIDForShelfID(ash::ShelfID id) override; | 82 const std::string& GetLaunchIDForShelfID(ash::ShelfID id) override; |
| 83 const std::string& GetTitleForShelfID(ash::ShelfID id) override; |
83 | 84 |
84 // AppIconLoaderDelegate: | 85 // AppIconLoaderDelegate: |
85 void OnAppImageUpdated(const std::string& app_id, | 86 void OnAppImageUpdated(const std::string& app_id, |
86 const gfx::ImageSkia& image) override; | 87 const gfx::ImageSkia& image) override; |
87 | 88 |
88 private: | 89 private: |
89 // Pin the items set in the current profile's preferences. | 90 // Pin the items set in the current profile's preferences. |
90 void PinAppsFromPrefs(); | 91 void PinAppsFromPrefs(); |
91 | 92 |
92 std::map<std::string, std::unique_ptr<ChromeShelfItemDelegate>> | 93 std::map<std::string, std::unique_ptr<ChromeShelfItemDelegate>> |
93 app_id_to_item_delegate_; | 94 app_id_to_item_delegate_; |
94 | 95 |
95 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerMus); | 96 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerMus); |
96 }; | 97 }; |
97 | 98 |
98 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_MUS_H_ | 99 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_MUS_H_ |
OLD | NEW |