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 23 matching lines...) Expand all Loading... |
34 class ArcAppDeferredLauncherController; | 34 class ArcAppDeferredLauncherController; |
35 class BrowserShortcutLauncherItemController; | 35 class BrowserShortcutLauncherItemController; |
36 class BrowserStatusMonitor; | 36 class BrowserStatusMonitor; |
37 class ChromeLauncherControllerUserSwitchObserver; | 37 class ChromeLauncherControllerUserSwitchObserver; |
38 class ChromeLauncherPrefsObserver; | 38 class ChromeLauncherPrefsObserver; |
39 class GURL; | 39 class GURL; |
40 class Profile; | 40 class Profile; |
41 class LauncherControllerHelper; | 41 class LauncherControllerHelper; |
42 | 42 |
43 namespace ash { | 43 namespace ash { |
| 44 class Shelf; |
44 struct ShelfItem; | 45 struct ShelfItem; |
45 class ShelfModel; | 46 class ShelfModel; |
46 class WmShelf; | |
47 } // namespace ash | 47 } // namespace ash |
48 | 48 |
49 namespace content { | 49 namespace content { |
50 class WebContents; | 50 class WebContents; |
51 } | 51 } |
52 | 52 |
53 namespace gfx { | 53 namespace gfx { |
54 class Image; | 54 class Image; |
55 } | 55 } |
56 | 56 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 base::string16 GetAppListTitle(content::WebContents* web_contents) const; | 204 base::string16 GetAppListTitle(content::WebContents* web_contents) const; |
205 | 205 |
206 // Returns the ash::ShelfItemDelegate of BrowserShortcut. | 206 // Returns the ash::ShelfItemDelegate of BrowserShortcut. |
207 BrowserShortcutLauncherItemController* | 207 BrowserShortcutLauncherItemController* |
208 GetBrowserShortcutLauncherItemController(); | 208 GetBrowserShortcutLauncherItemController(); |
209 | 209 |
210 // Check if the shelf visibility (location, visibility) will change with a new | 210 // Check if the shelf visibility (location, visibility) will change with a new |
211 // user profile or not. However, since the full visibility calculation of the | 211 // user profile or not. However, since the full visibility calculation of the |
212 // shelf cannot be performed here, this is only a probability used for | 212 // shelf cannot be performed here, this is only a probability used for |
213 // animation predictions. | 213 // animation predictions. |
214 bool ShelfBoundsChangesProbablyWithUser(ash::WmShelf* shelf, | 214 bool ShelfBoundsChangesProbablyWithUser(ash::Shelf* shelf, |
215 const AccountId& account_id) const; | 215 const AccountId& account_id) const; |
216 | 216 |
217 // Called when the user profile is fully loaded and ready to switch to. | 217 // Called when the user profile is fully loaded and ready to switch to. |
218 void OnUserProfileReadyToSwitch(Profile* profile); | 218 void OnUserProfileReadyToSwitch(Profile* profile); |
219 | 219 |
220 // Controller to launch ARC apps in deferred mode. | 220 // Controller to launch ARC apps in deferred mode. |
221 ArcAppDeferredLauncherController* GetArcDeferredLauncher(); | 221 ArcAppDeferredLauncherController* GetArcDeferredLauncher(); |
222 | 222 |
223 AppIconLoader* GetAppIconLoaderForApp(const std::string& app_id); | 223 AppIconLoader* GetAppIconLoaderForApp(const std::string& app_id); |
224 | 224 |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 using RunningAppListIds = std::vector<std::string>; | 441 using RunningAppListIds = std::vector<std::string>; |
442 using RunningAppListIdMap = std::map<std::string, RunningAppListIds>; | 442 using RunningAppListIdMap = std::map<std::string, RunningAppListIds>; |
443 RunningAppListIdMap last_used_running_application_order_; | 443 RunningAppListIdMap last_used_running_application_order_; |
444 | 444 |
445 base::WeakPtrFactory<ChromeLauncherController> weak_ptr_factory_; | 445 base::WeakPtrFactory<ChromeLauncherController> weak_ptr_factory_; |
446 | 446 |
447 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 447 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
448 }; | 448 }; |
449 | 449 |
450 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 450 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |