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

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

Issue 10699065: chromeos: Fix pixelated icons in app list and launcher (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 5 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_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Returns the launch type of app for the specified id. 145 // Returns the launch type of app for the specified id.
146 extensions::ExtensionPrefs::LaunchType GetLaunchType(ash::LauncherID id); 146 extensions::ExtensionPrefs::LaunchType GetLaunchType(ash::LauncherID id);
147 147
148 // Returns the id of the app for the specified tab. 148 // Returns the id of the app for the specified tab.
149 std::string GetAppID(TabContents* tab); 149 std::string GetAppID(TabContents* tab);
150 150
151 ash::LauncherID GetLauncherIDForAppID(const std::string& app_id); 151 ash::LauncherID GetLauncherIDForAppID(const std::string& app_id);
152 152
153 // Sets the image for an app tab. This is intended to be invoked from the 153 // Sets the image for an app tab. This is intended to be invoked from the
154 // AppIconLoader. 154 // AppIconLoader.
155 void SetAppImage(const std::string& app_id, const SkBitmap* image); 155 void SetAppImage(const std::string& app_id, const gfx::ImageSkia& image);
156 156
157 // Returns true if a pinned launcher item with given |app_id| could be found. 157 // Returns true if a pinned launcher item with given |app_id| could be found.
158 bool IsAppPinned(const std::string& app_id); 158 bool IsAppPinned(const std::string& app_id);
159 159
160 // Pins an app with |app_id| to launcher. If there is a running instance in 160 // Pins an app with |app_id| to launcher. If there is a running instance in
161 // launcher, the running instance is pinned. If there is no running instance, 161 // launcher, the running instance is pinned. If there is no running instance,
162 // a new launcher item is created and pinned. 162 // a new launcher item is created and pinned.
163 void PinAppWithID(const std::string& app_id); 163 void PinAppWithID(const std::string& app_id);
164 164
165 // Updates the launche type of the app for the specified id to |launch_type|. 165 // Updates the launche type of the app for the specified id to |launch_type|.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 content::NotificationRegistrar notification_registrar_; 330 content::NotificationRegistrar notification_registrar_;
331 331
332 PrefChangeRegistrar pref_change_registrar_; 332 PrefChangeRegistrar pref_change_registrar_;
333 aura::client::ActivationClient* activation_client_; 333 aura::client::ActivationClient* activation_client_;
334 334
335 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 335 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
336 }; 336 };
337 337
338 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 338 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698