| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 virtual void Close(ash::ShelfID id) = 0; | 130 virtual void Close(ash::ShelfID id) = 0; |
| 131 | 131 |
| 132 // Returns true if the specified item is open. | 132 // Returns true if the specified item is open. |
| 133 virtual bool IsOpen(ash::ShelfID id) = 0; | 133 virtual bool IsOpen(ash::ShelfID id) = 0; |
| 134 | 134 |
| 135 // Returns true if the specified item is for a platform app. | 135 // Returns true if the specified item is for a platform app. |
| 136 virtual bool IsPlatformApp(ash::ShelfID id) = 0; | 136 virtual bool IsPlatformApp(ash::ShelfID id) = 0; |
| 137 | 137 |
| 138 // Opens a new instance of the application identified by the AppLauncherId. | 138 // Opens a new instance of the application identified by the AppLauncherId. |
| 139 // Used by the app-list, and by pinned-app shelf items. | 139 // Used by the app-list, and by pinned-app shelf items. |
| 140 void LaunchApp(ash::launcher::AppLauncherId id, | 140 void LaunchApp(ash::AppLauncherId id, |
| 141 ash::LaunchSource source, | 141 ash::LaunchSource source, |
| 142 int event_flags); | 142 int event_flags); |
| 143 | 143 |
| 144 // If |app_id| is running, reactivates the app's most recently active window, | 144 // If |app_id| is running, reactivates the app's most recently active window, |
| 145 // otherwise launches and activates the app. | 145 // otherwise launches and activates the app. |
| 146 // Used by the app-list, and by pinned-app shelf items. | 146 // Used by the app-list, and by pinned-app shelf items. |
| 147 virtual void ActivateApp(const std::string& app_id, | 147 virtual void ActivateApp(const std::string& app_id, |
| 148 ash::LaunchSource source, | 148 ash::LaunchSource source, |
| 149 int event_flags) = 0; | 149 int event_flags) = 0; |
| 150 | 150 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 // An observer that manages the shelf title and icon for settings windows. | 309 // An observer that manages the shelf title and icon for settings windows. |
| 310 SettingsWindowObserver settings_window_observer_; | 310 SettingsWindowObserver settings_window_observer_; |
| 311 | 311 |
| 312 // Used to load the images for app items. | 312 // Used to load the images for app items. |
| 313 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; | 313 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; |
| 314 | 314 |
| 315 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 315 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
| 316 }; | 316 }; |
| 317 | 317 |
| 318 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 318 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| OLD | NEW |