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

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

Issue 10984034: Revert 158691 - Give platform apps control over launcher right-click context menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Returns true if the specified item is open. 160 // Returns true if the specified item is open.
161 bool IsOpen(ash::LauncherID id); 161 bool IsOpen(ash::LauncherID id);
162 162
163 // Returns the launch type of app for the specified id. 163 // Returns the launch type of app for the specified id.
164 extensions::ExtensionPrefs::LaunchType GetLaunchType(ash::LauncherID id); 164 extensions::ExtensionPrefs::LaunchType GetLaunchType(ash::LauncherID id);
165 165
166 // Returns the id of the app for the specified tab. 166 // Returns the id of the app for the specified tab.
167 std::string GetAppID(TabContents* tab); 167 std::string GetAppID(TabContents* tab);
168 168
169 ash::LauncherID GetLauncherIDForAppID(const std::string& app_id); 169 ash::LauncherID GetLauncherIDForAppID(const std::string& app_id);
170 std::string GetAppIDForLauncherID(ash::LauncherID id);
171 170
172 // Sets the image for an app tab. This is intended to be invoked from the 171 // Sets the image for an app tab. This is intended to be invoked from the
173 // AppIconLoader. 172 // AppIconLoader.
174 void SetAppImage(const std::string& app_id, const gfx::ImageSkia& image); 173 void SetAppImage(const std::string& app_id, const gfx::ImageSkia& image);
175 174
176 // Returns true if a pinned launcher item with given |app_id| could be found. 175 // Returns true if a pinned launcher item with given |app_id| could be found.
177 bool IsAppPinned(const std::string& app_id); 176 bool IsAppPinned(const std::string& app_id);
178 177
179 // Pins an app with |app_id| to launcher. If there is a running instance in 178 // Pins an app with |app_id| to launcher. If there is a running instance in
180 // launcher, the running instance is pinned. If there is no running instance, 179 // launcher, the running instance is pinned. If there is no running instance,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 343
345 PrefChangeRegistrar pref_change_registrar_; 344 PrefChangeRegistrar pref_change_registrar_;
346 345
347 ProfileSyncService* observed_sync_service_; 346 ProfileSyncService* observed_sync_service_;
348 base::OneShotTimer<ChromeLauncherController> loading_timer_; 347 base::OneShotTimer<ChromeLauncherController> loading_timer_;
349 348
350 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 349 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
351 }; 350 };
352 351
353 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 352 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/extension_app_item.cc ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698