| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 ash::ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id, | 260 ash::ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id, |
| 261 const std::string& launch_id); | 261 const std::string& launch_id); |
| 262 const std::string& GetAppIDForShelfID(ash::ShelfID id); | 262 const std::string& GetAppIDForShelfID(ash::ShelfID id); |
| 263 void PinAppWithID(const std::string& app_id); | 263 void PinAppWithID(const std::string& app_id); |
| 264 bool IsAppPinned(const std::string& app_id); | 264 bool IsAppPinned(const std::string& app_id); |
| 265 void UnpinAppWithID(const std::string& app_id); | 265 void UnpinAppWithID(const std::string& app_id); |
| 266 | 266 |
| 267 // LauncherAppUpdater::Delegate: | 267 // LauncherAppUpdater::Delegate: |
| 268 void OnAppInstalled(content::BrowserContext* browser_context, | 268 void OnAppInstalled(content::BrowserContext* browser_context, |
| 269 const std::string& app_id) override; | 269 const std::string& app_id) override; |
| 270 void OnAppUpdated(content::BrowserContext* browser_context, | |
| 271 const std::string& app_id) override; | |
| 272 void OnAppUninstalledPrepared(content::BrowserContext* browser_context, | 270 void OnAppUninstalledPrepared(content::BrowserContext* browser_context, |
| 273 const std::string& app_id) override; | 271 const std::string& app_id) override; |
| 274 | 272 |
| 275 // AppIconLoaderDelegate: | 273 // AppIconLoaderDelegate: |
| 276 void OnAppImageUpdated(const std::string& app_id, | 274 void OnAppImageUpdated(const std::string& app_id, |
| 277 const gfx::ImageSkia& image) override; | 275 const gfx::ImageSkia& image) override; |
| 278 | 276 |
| 279 protected: | 277 protected: |
| 280 // Connects or reconnects to the mojom::ShelfController interface in ash. | 278 // Connects or reconnects to the mojom::ShelfController interface in ash. |
| 281 // Returns true if connected; virtual for unit tests. | 279 // Returns true if connected; virtual for unit tests. |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 using RunningAppListIds = std::vector<std::string>; | 451 using RunningAppListIds = std::vector<std::string>; |
| 454 using RunningAppListIdMap = std::map<std::string, RunningAppListIds>; | 452 using RunningAppListIdMap = std::map<std::string, RunningAppListIds>; |
| 455 RunningAppListIdMap last_used_running_application_order_; | 453 RunningAppListIdMap last_used_running_application_order_; |
| 456 | 454 |
| 457 base::WeakPtrFactory<ChromeLauncherController> weak_ptr_factory_; | 455 base::WeakPtrFactory<ChromeLauncherController> weak_ptr_factory_; |
| 458 | 456 |
| 459 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 457 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
| 460 }; | 458 }; |
| 461 | 459 |
| 462 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 460 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| OLD | NEW |