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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // user profile or not. However, since the full visibility calculation of the | 226 // user profile or not. However, since the full visibility calculation of the |
227 // shelf cannot be performed here, this is only a probability used for | 227 // shelf cannot be performed here, this is only a probability used for |
228 // animation predictions. | 228 // animation predictions. |
229 virtual bool ShelfBoundsChangesProbablyWithUser( | 229 virtual bool ShelfBoundsChangesProbablyWithUser( |
230 ash::WmShelf* shelf, | 230 ash::WmShelf* shelf, |
231 const AccountId& account_id) const = 0; | 231 const AccountId& account_id) const = 0; |
232 | 232 |
233 // Called when the user profile is fully loaded and ready to switch to. | 233 // Called when the user profile is fully loaded and ready to switch to. |
234 virtual void OnUserProfileReadyToSwitch(Profile* profile) = 0; | 234 virtual void OnUserProfileReadyToSwitch(Profile* profile) = 0; |
235 | 235 |
236 // Controller to launch Arc apps in deferred mode. | 236 // Controller to launch ARC apps in deferred mode. |
237 virtual ArcAppDeferredLauncherController* GetArcDeferredLauncher() = 0; | 237 virtual ArcAppDeferredLauncherController* GetArcDeferredLauncher() = 0; |
238 | 238 |
239 // Get the launch ID for a given shelf ID. | 239 // Get the launch ID for a given shelf ID. |
240 virtual const std::string& GetLaunchIDForShelfID(ash::ShelfID id) = 0; | 240 virtual const std::string& GetLaunchIDForShelfID(ash::ShelfID id) = 0; |
241 | 241 |
242 AppIconLoader* GetAppIconLoaderForApp(const std::string& app_id); | 242 AppIconLoader* GetAppIconLoaderForApp(const std::string& app_id); |
243 | 243 |
244 // Sets the shelf auto-hide and/or alignment behavior from prefs. | 244 // Sets the shelf auto-hide and/or alignment behavior from prefs. |
245 void SetShelfAutoHideBehaviorFromPrefs(); | 245 void SetShelfAutoHideBehaviorFromPrefs(); |
246 void SetShelfAlignmentFromPrefs(); | 246 void SetShelfAlignmentFromPrefs(); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 // An observer that manages the shelf title and icon for settings windows. | 308 // An observer that manages the shelf title and icon for settings windows. |
309 SettingsWindowObserver settings_window_observer_; | 309 SettingsWindowObserver settings_window_observer_; |
310 | 310 |
311 // Used to load the images for app items. | 311 // Used to load the images for app items. |
312 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; | 312 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; |
313 | 313 |
314 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 314 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
315 }; | 315 }; |
316 | 316 |
317 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 317 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |