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