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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 virtual bool ShelfBoundsChangesProbablyWithUser( | 244 virtual bool ShelfBoundsChangesProbablyWithUser( |
245 ash::WmShelf* shelf, | 245 ash::WmShelf* shelf, |
246 const AccountId& account_id) const = 0; | 246 const AccountId& account_id) const = 0; |
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. |
| 255 virtual const std::string& GetLaunchIDForShelfID(ash::ShelfID id) = 0; |
| 256 |
254 AppIconLoader* GetAppIconLoaderForApp(const std::string& app_id); | 257 AppIconLoader* GetAppIconLoaderForApp(const std::string& app_id); |
255 | 258 |
256 // Sets the shelf auto-hide and/or alignment behavior from prefs. | 259 // Sets the shelf auto-hide and/or alignment behavior from prefs. |
257 void SetShelfAutoHideBehaviorFromPrefs(); | 260 void SetShelfAutoHideBehaviorFromPrefs(); |
258 void SetShelfAlignmentFromPrefs(); | 261 void SetShelfAlignmentFromPrefs(); |
259 void SetShelfBehaviorsFromPrefs(); | 262 void SetShelfBehaviorsFromPrefs(); |
260 | 263 |
261 // Sets LauncherControllerHelper or AppIconLoader for test, taking ownership. | 264 // Sets LauncherControllerHelper or AppIconLoader for test, taking ownership. |
262 void SetLauncherControllerHelperForTest( | 265 void SetLauncherControllerHelperForTest( |
263 std::unique_ptr<LauncherControllerHelper> helper); | 266 std::unique_ptr<LauncherControllerHelper> helper); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 // An observer that manages the shelf title and icon for settings windows. | 315 // An observer that manages the shelf title and icon for settings windows. |
313 SettingsWindowObserver settings_window_observer_; | 316 SettingsWindowObserver settings_window_observer_; |
314 | 317 |
315 // Used to load the images for app items. | 318 // Used to load the images for app items. |
316 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; | 319 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; |
317 | 320 |
318 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 321 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
319 }; | 322 }; |
320 | 323 |
321 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 324 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |