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

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

Issue 10704023: Moved ExtensionPrefs and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest-er master merged in 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
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 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // reactivates the most recently used window or tab owned by the app. 137 // reactivates the most recently used window or tab owned by the app.
138 void OpenAppID(const std::string& app_id, int event_flags); 138 void OpenAppID(const std::string& app_id, int event_flags);
139 139
140 // Closes the specified item. 140 // Closes the specified item.
141 void Close(ash::LauncherID id); 141 void Close(ash::LauncherID id);
142 142
143 // Returns true if the specified item is open. 143 // Returns true if the specified item is open.
144 bool IsOpen(ash::LauncherID id); 144 bool IsOpen(ash::LauncherID id);
145 145
146 // Returns the launch type of app for the specified id. 146 // Returns the launch type of app for the specified id.
147 ExtensionPrefs::LaunchType GetLaunchType(ash::LauncherID id); 147 extensions::ExtensionPrefs::LaunchType GetLaunchType(ash::LauncherID id);
148 148
149 // Returns the id of the app for the specified tab. 149 // Returns the id of the app for the specified tab.
150 std::string GetAppID(TabContents* tab); 150 std::string GetAppID(TabContents* tab);
151 151
152 ash::LauncherID GetLauncherIDForAppID(const std::string& app_id); 152 ash::LauncherID GetLauncherIDForAppID(const std::string& app_id);
153 153
154 // Sets the image for an app tab. This is intended to be invoked from the 154 // Sets the image for an app tab. This is intended to be invoked from the
155 // AppIconLoader. 155 // AppIconLoader.
156 void SetAppImage(const std::string& app_id, const SkBitmap* image); 156 void SetAppImage(const std::string& app_id, const SkBitmap* image);
157 157
158 // Returns true if a pinned launcher item with given |app_id| could be found. 158 // Returns true if a pinned launcher item with given |app_id| could be found.
159 bool IsAppPinned(const std::string& app_id); 159 bool IsAppPinned(const std::string& app_id);
160 160
161 // Pins an app with |app_id| to launcher. If there is a running instance in 161 // Pins an app with |app_id| to launcher. If there is a running instance in
162 // launcher, the running instance is pinned. If there is no running instance, 162 // launcher, the running instance is pinned. If there is no running instance,
163 // a new launcher item is created and pinned. 163 // a new launcher item is created and pinned.
164 void PinAppWithID(const std::string& app_id); 164 void PinAppWithID(const std::string& app_id);
165 165
166 // Updates the launche type of the app for the specified id to |launch_type|. 166 // Updates the launche type of the app for the specified id to |launch_type|.
167 void SetLaunchType(ash::LauncherID id, 167 void SetLaunchType(ash::LauncherID id,
168 ExtensionPrefs::LaunchType launch_type); 168 extensions::ExtensionPrefs::LaunchType launch_type);
169 169
170 // Unpins any app items whose id is |app_id|. 170 // Unpins any app items whose id is |app_id|.
171 void UnpinAppsWithID(const std::string& app_id); 171 void UnpinAppsWithID(const std::string& app_id);
172 172
173 // Returns true if the user is currently logged in as a guest. 173 // Returns true if the user is currently logged in as a guest.
174 bool IsLoggedInAsGuest(); 174 bool IsLoggedInAsGuest();
175 175
176 // Invoked when the user clicks on button in the launcher to create a new 176 // Invoked when the user clicks on button in the launcher to create a new
177 // incognito window. 177 // incognito window.
178 void CreateNewIncognitoWindow(); 178 void CreateNewIncognitoWindow();
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 330
331 content::NotificationRegistrar notification_registrar_; 331 content::NotificationRegistrar notification_registrar_;
332 332
333 PrefChangeRegistrar pref_change_registrar_; 333 PrefChangeRegistrar pref_change_registrar_;
334 aura::client::ActivationClient* activation_client_; 334 aura::client::ActivationClient* activation_client_;
335 335
336 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 336 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
337 }; 337 };
338 338
339 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 339 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ash/extension_utils.cc ('k') | chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698