OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 // Called when the user profile is fully loaded and ready to switch to. | 248 // Called when the user profile is fully loaded and ready to switch to. |
249 virtual void OnUserProfileReadyToSwitch(Profile* profile) = 0; | 249 virtual void OnUserProfileReadyToSwitch(Profile* profile) = 0; |
250 | 250 |
251 // Controller to launch Arc apps in deferred mode. | 251 // Controller to launch Arc apps in deferred mode. |
252 virtual ArcAppDeferredLauncherController* GetArcDeferredLauncher() = 0; | 252 virtual ArcAppDeferredLauncherController* GetArcDeferredLauncher() = 0; |
253 | 253 |
254 // Get the launch ID for a given shelf ID. | 254 // Get the launch ID for a given shelf ID. |
255 virtual const std::string& GetLaunchIDForShelfID(ash::ShelfID id) = 0; | 255 virtual const std::string& GetLaunchIDForShelfID(ash::ShelfID id) = 0; |
256 | 256 |
| 257 // Get the title for a given shelf ID. |
| 258 virtual const std::string& GetTitleForShelfID(ash::ShelfID id) = 0; |
| 259 |
257 AppIconLoader* GetAppIconLoaderForApp(const std::string& app_id); | 260 AppIconLoader* GetAppIconLoaderForApp(const std::string& app_id); |
258 | 261 |
259 // Sets the shelf auto-hide and/or alignment behavior from prefs. | 262 // Sets the shelf auto-hide and/or alignment behavior from prefs. |
260 void SetShelfAutoHideBehaviorFromPrefs(); | 263 void SetShelfAutoHideBehaviorFromPrefs(); |
261 void SetShelfAlignmentFromPrefs(); | 264 void SetShelfAlignmentFromPrefs(); |
262 void SetShelfBehaviorsFromPrefs(); | 265 void SetShelfBehaviorsFromPrefs(); |
263 | 266 |
264 // Sets LauncherControllerHelper or AppIconLoader for test, taking ownership. | 267 // Sets LauncherControllerHelper or AppIconLoader for test, taking ownership. |
265 void SetLauncherControllerHelperForTest( | 268 void SetLauncherControllerHelperForTest( |
266 std::unique_ptr<LauncherControllerHelper> helper); | 269 std::unique_ptr<LauncherControllerHelper> helper); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 // An observer that manages the shelf title and icon for settings windows. | 318 // An observer that manages the shelf title and icon for settings windows. |
316 SettingsWindowObserver settings_window_observer_; | 319 SettingsWindowObserver settings_window_observer_; |
317 | 320 |
318 // Used to load the images for app items. | 321 // Used to load the images for app items. |
319 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; | 322 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; |
320 | 323 |
321 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 324 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
322 }; | 325 }; |
323 | 326 |
324 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 327 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |