| 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> |
| 11 | 11 |
| 12 #include "ash/common/shelf/shelf_item_delegate.h" | |
| 13 #include "ash/common/shelf/shelf_item_types.h" | 12 #include "ash/common/shelf/shelf_item_types.h" |
| 14 #include "ash/public/cpp/shelf_application_menu_item.h" | |
| 15 #include "ash/public/interfaces/shelf.mojom.h" | 13 #include "ash/public/interfaces/shelf.mojom.h" |
| 16 #include "chrome/browser/ui/app_icon_loader.h" | 14 #include "chrome/browser/ui/app_icon_loader.h" |
| 17 #include "chrome/browser/ui/app_icon_loader_delegate.h" | 15 #include "chrome/browser/ui/app_icon_loader_delegate.h" |
| 18 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | 16 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
| 19 #include "chrome/browser/ui/ash/app_launcher_id.h" | 17 #include "chrome/browser/ui/ash/app_launcher_id.h" |
| 20 #include "chrome/browser/ui/ash/launcher/settings_window_observer.h" | 18 #include "chrome/browser/ui/ash/launcher/settings_window_observer.h" |
| 21 #include "mojo/public/cpp/bindings/associated_binding.h" | 19 #include "mojo/public/cpp/bindings/associated_binding.h" |
| 22 | 20 |
| 23 class AccountId; | 21 class AccountId; |
| 24 class ArcAppDeferredLauncherController; | 22 class ArcAppDeferredLauncherController; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 ui::BaseWindow* window, | 171 ui::BaseWindow* window, |
| 174 bool allow_minimize) = 0; | 172 bool allow_minimize) = 0; |
| 175 | 173 |
| 176 // Called when the active user has changed. | 174 // Called when the active user has changed. |
| 177 virtual void ActiveUserChanged(const std::string& user_email) = 0; | 175 virtual void ActiveUserChanged(const std::string& user_email) = 0; |
| 178 | 176 |
| 179 // Called when a user got added to the session. | 177 // Called when a user got added to the session. |
| 180 virtual void AdditionalUserAddedToSession(Profile* profile) = 0; | 178 virtual void AdditionalUserAddedToSession(Profile* profile) = 0; |
| 181 | 179 |
| 182 // Get the list of all running incarnations of this item. | 180 // Get the list of all running incarnations of this item. |
| 183 virtual ash::ShelfAppMenuItemList GetAppMenuItemsForTesting( | 181 virtual std::vector<ash::mojom::MenuItemPtr> GetAppMenuItemsForTesting( |
| 184 const ash::ShelfItem& item) = 0; | 182 const ash::ShelfItem& item) = 0; |
| 185 | 183 |
| 186 // Get the list of all tabs which belong to a certain application type. | 184 // Get the list of all tabs which belong to a certain application type. |
| 187 virtual std::vector<content::WebContents*> GetV1ApplicationsFromAppId( | 185 virtual std::vector<content::WebContents*> GetV1ApplicationsFromAppId( |
| 188 const std::string& app_id) = 0; | 186 const std::string& app_id) = 0; |
| 189 | 187 |
| 190 // Activates a specified shell application by app id and window index. | 188 // Activates a specified shell application by app id and window index. |
| 191 virtual void ActivateShellApp(const std::string& app_id, | 189 virtual void ActivateShellApp(const std::string& app_id, |
| 192 int window_index) = 0; | 190 int window_index) = 0; |
| 193 | 191 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 // An observer that manages the shelf title and icon for settings windows. | 304 // An observer that manages the shelf title and icon for settings windows. |
| 307 SettingsWindowObserver settings_window_observer_; | 305 SettingsWindowObserver settings_window_observer_; |
| 308 | 306 |
| 309 // Used to load the images for app items. | 307 // Used to load the images for app items. |
| 310 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; | 308 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; |
| 311 | 309 |
| 312 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 310 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
| 313 }; | 311 }; |
| 314 | 312 |
| 315 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 313 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| OLD | NEW |