Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.h

Issue 10868003: chromeos: Fix pixelated icons in app list and launcher (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win compile Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // Interface used to load app icons. This is in it's own class so that it can 86 // Interface used to load app icons. This is in it's own class so that it can
87 // be mocked. 87 // be mocked.
88 class AppIconLoader { 88 class AppIconLoader {
89 public: 89 public:
90 virtual ~AppIconLoader() {} 90 virtual ~AppIconLoader() {}
91 91
92 // Fetches the image for the specified id. When done (which may be 92 // Fetches the image for the specified id. When done (which may be
93 // synchronous), this should invoke SetAppImage() on the LauncherUpdater. 93 // synchronous), this should invoke SetAppImage() on the LauncherUpdater.
94 virtual void FetchImage(const std::string& id) = 0; 94 virtual void FetchImage(const std::string& id) = 0;
95
96 // Clears the image for the specified id.
97 virtual void ClearImage(const std::string& id) = 0;
95 }; 98 };
96 99
97 ChromeLauncherController(Profile* profile, ash::LauncherModel* model); 100 ChromeLauncherController(Profile* profile, ash::LauncherModel* model);
98 virtual ~ChromeLauncherController(); 101 virtual ~ChromeLauncherController();
99 102
100 // Initializes this ChromeLauncherController. 103 // Initializes this ChromeLauncherController.
101 void Init(); 104 void Init();
102 105
103 // Returns the single ChromeLauncherController instnace. 106 // Returns the single ChromeLauncherController instnace.
104 static ChromeLauncherController* instance() { return instance_; } 107 static ChromeLauncherController* instance() { return instance_; }
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 353
351 PrefChangeRegistrar pref_change_registrar_; 354 PrefChangeRegistrar pref_change_registrar_;
352 355
353 ProfileSyncService* observed_sync_service_; 356 ProfileSyncService* observed_sync_service_;
354 base::OneShotTimer<ChromeLauncherController> loading_timer_; 357 base::OneShotTimer<ChromeLauncherController> loading_timer_;
355 358
356 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 359 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
357 }; 360 };
358 361
359 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 362 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698