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

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

Issue 11418114: Add policy for ash launcher auto-hide behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed- Rebased. Created 8 years 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 <string> 8 #include <string>
9 9
10 #include "ash/launcher/launcher_delegate.h" 10 #include "ash/launcher/launcher_delegate.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 // Updates the pinned pref state. The pinned state consists of a list pref. 210 // Updates the pinned pref state. The pinned state consists of a list pref.
211 // Each item of the list is a dictionary. The key |kAppIDPath| gives the 211 // Each item of the list is a dictionary. The key |kAppIDPath| gives the
212 // id of the app. 212 // id of the app.
213 virtual void PersistPinnedState() = 0; 213 virtual void PersistPinnedState() = 0;
214 214
215 virtual ash::LauncherModel* model() = 0; 215 virtual ash::LauncherModel* model() = 0;
216 216
217 virtual Profile* profile() = 0; 217 virtual Profile* profile() = 0;
218 218
219 virtual void SetAutoHideBehavior(ash::ShelfAutoHideBehavior behavior, 219 // Gets the shelf auto-hide behavior on |root_window|.
220 aura::RootWindow* root_window) = 0; 220 virtual ash::ShelfAutoHideBehavior GetShelfAutoHideBehavior(
221 aura::RootWindow* root_window) const = 0;
222
223 // Returns |true| if the user is allowed to modify the shelf auto-hide
224 // behavior on |root_window|.
225 virtual bool CanUserModifyShelfAutoHideBehavior(
226 aura::RootWindow* root_window) const = 0;
227
228 // Toggles the shelf auto-hide behavior on |root_window|. Does nothing if the
229 // user is not allowed to modify the auto-hide behavior.
230 virtual void ToggleShelfAutoHideBehavior(aura::RootWindow* root_window) = 0;
221 231
222 // The tab no longer represents its previously identified application. 232 // The tab no longer represents its previously identified application.
223 virtual void RemoveTabFromRunningApp(TabContents* tab, 233 virtual void RemoveTabFromRunningApp(TabContents* tab,
224 const std::string& app_id) = 0; 234 const std::string& app_id) = 0;
225 235
226 // Notify the controller that the state of an non platform app's tabs 236 // Notify the controller that the state of an non platform app's tabs
227 // have changed, 237 // have changed,
228 virtual void UpdateAppState(content::WebContents* contents, 238 virtual void UpdateAppState(content::WebContents* contents,
229 AppState app_state) = 0; 239 AppState app_state) = 0;
230 240
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 virtual void SetAppTabHelperForTest(AppTabHelper* helper) = 0; 272 virtual void SetAppTabHelperForTest(AppTabHelper* helper) = 0;
263 virtual void SetAppIconLoaderForTest(AppIconLoader* loader) = 0; 273 virtual void SetAppIconLoaderForTest(AppIconLoader* loader) = 0;
264 virtual const std::string& GetAppIdFromLauncherIdForTest( 274 virtual const std::string& GetAppIdFromLauncherIdForTest(
265 ash::LauncherID id) = 0; 275 ash::LauncherID id) = 0;
266 276
267 private: 277 private:
268 static ChromeLauncherController* instance_; 278 static ChromeLauncherController* instance_;
269 }; 279 };
270 280
271 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 281 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698