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

Unified 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: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
index 9d438fb3c34f1cf5cbe65ce9a0d7b9c122dcf50a..bb9fcb2af7a15b8d46abda2f0d68c3b706760b4f 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
@@ -227,9 +227,15 @@ class ChromeLauncherController
Profile* profile() { return profile_; }
- void SetAutoHideBehavior(ash::ShelfAutoHideBehavior behavior,
- aura::RootWindow* root_window);
+ ash::ShelfAutoHideBehavior GetShelfAutoHideBehavior(
+ aura::RootWindow* root_window) const;
+ bool CanUserModifyShelfAutoHideBehavior(
+ aura::RootWindow* root_window) const;
+
+ void ToggleShelfAutoHideBehavior(aura::RootWindow* root_window);
oshima 2012/11/26 19:13:00 document these methods.
bartfab (slow) 2012/11/29 18:25:51 Done.
+
+ public:
oshima 2012/11/26 19:13:00 do you need this?
bartfab (slow) 2012/11/29 18:25:51 Sorry, this was a leftover from debugging.
// The tab no longer represents its previously identified application.
void RemoveTabFromRunningApp(TabContents* tab, const std::string& app_id);
@@ -311,6 +317,9 @@ class ChromeLauncherController
// Re-syncs launcher model with prefs::kPinnedLauncherApps.
void UpdateAppLaunchersFromPref();
+ void SetShelfAutoHideBehaviorPrefs(ash::ShelfAutoHideBehavior behavior,
+ aura::RootWindow* root_window);
+
// Sets the shelf auto-hide behavior from prefs.
void SetShelfAutoHideBehaviorFromPrefs();

Powered by Google App Engine
This is Rietveld 408576698