| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Interface used to load app icons. This is in it's own class so that it can | 91 // Interface used to load app icons. This is in it's own class so that it can |
| 92 // be mocked. | 92 // be mocked. |
| 93 class AppIconLoader { | 93 class AppIconLoader { |
| 94 public: | 94 public: |
| 95 virtual ~AppIconLoader() {} | 95 virtual ~AppIconLoader() {} |
| 96 | 96 |
| 97 // Fetches the image for the specified id. When done (which may be | 97 // Fetches the image for the specified id. When done (which may be |
| 98 // synchronous), this should invoke SetAppImage() on the LauncherUpdater. | 98 // synchronous), this should invoke SetAppImage() on the LauncherUpdater. |
| 99 virtual void FetchImage(const std::string& id) = 0; | 99 virtual void FetchImage(const std::string& id) = 0; |
| 100 |
| 101 // Clears the image for specified id. |
| 102 virtual void ClearImage(const std::string& id) = 0; |
| 100 }; | 103 }; |
| 101 | 104 |
| 102 ChromeLauncherController(Profile* profile, ash::LauncherModel* model); | 105 ChromeLauncherController(Profile* profile, ash::LauncherModel* model); |
| 103 virtual ~ChromeLauncherController(); | 106 virtual ~ChromeLauncherController(); |
| 104 | 107 |
| 105 // Initializes this ChromeLauncherController. | 108 // Initializes this ChromeLauncherController. |
| 106 void Init(); | 109 void Init(); |
| 107 | 110 |
| 108 // Returns the single ChromeLauncherController instnace. | 111 // Returns the single ChromeLauncherController instnace. |
| 109 static ChromeLauncherController* instance() { return instance_; } | 112 static ChromeLauncherController* instance() { return instance_; } |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 PrefChangeRegistrar pref_change_registrar_; | 370 PrefChangeRegistrar pref_change_registrar_; |
| 368 aura::client::ActivationClient* activation_client_; | 371 aura::client::ActivationClient* activation_client_; |
| 369 | 372 |
| 370 ProfileSyncService* observed_sync_service_; | 373 ProfileSyncService* observed_sync_service_; |
| 371 base::OneShotTimer<ChromeLauncherController> loading_timer_; | 374 base::OneShotTimer<ChromeLauncherController> loading_timer_; |
| 372 | 375 |
| 373 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 376 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
| 374 }; | 377 }; |
| 375 | 378 |
| 376 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 379 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| OLD | NEW |