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(const ash::ShelfID& id); | 262 const std::string& GetAppIDForShelfID(const 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 using RunningAppListIds = std::vector<std::string>; | 450 using RunningAppListIds = std::vector<std::string>; |
453 using RunningAppListIdMap = std::map<std::string, RunningAppListIds>; | 451 using RunningAppListIdMap = std::map<std::string, RunningAppListIds>; |
454 RunningAppListIdMap last_used_running_application_order_; | 452 RunningAppListIdMap last_used_running_application_order_; |
455 | 453 |
456 base::WeakPtrFactory<ChromeLauncherController> weak_ptr_factory_; | 454 base::WeakPtrFactory<ChromeLauncherController> weak_ptr_factory_; |
457 | 455 |
458 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 456 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
459 }; | 457 }; |
460 | 458 |
461 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 459 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |