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

Unified Diff: chrome/browser/ui/ash/chrome_launcher_prefs.h

Issue 1881263002: Generalize support for per-display shelf prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/ash/chrome_launcher_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/chrome_launcher_prefs.h
diff --git a/chrome/browser/ui/ash/chrome_launcher_prefs.h b/chrome/browser/ui/ash/chrome_launcher_prefs.h
index bed9b897f572a5b5d58f331b905f948d9fd8dbcb..acba8a3daa3da3fdbf571651a6cad3af23090252 100644
--- a/chrome/browser/ui/ash/chrome_launcher_prefs.h
+++ b/chrome/browser/ui/ash/chrome_launcher_prefs.h
@@ -9,6 +9,8 @@
#include "ash/shelf/shelf_types.h"
+class Profile;
oshima 2016/04/14 19:26:17 can we instead use PrefSerivce?
msw 2016/04/14 20:39:26 Done.
+
namespace base {
class DictionaryValue;
}
@@ -39,11 +41,18 @@ void RegisterChromeLauncherUserPrefs(
base::DictionaryValue* CreateAppDict(const std::string& app_id);
-ash::ShelfAlignment AlignmentFromPref(const std::string& value);
-const char* AlignmentToPref(ash::ShelfAlignment alignment);
-
-ash::ShelfAutoHideBehavior AutoHideBehaviorFromPref(const std::string& value);
-const char* AutoHideBehaviorToPref(ash::ShelfAutoHideBehavior behavior);
+// Get or set the shelf auto hide behavior preference for a root window.
+ShelfAutoHideBehavior GetShelfAutoHideBehaviorPref(Profile* profile,
+ int64_t display_id);
+void SetShelfAutoHideBehaviorPref(Profile* profile,
+ int64_t display_id,
+ ShelfAutoHideBehavior behavior);
+
+// Get or set the shelf alignment preference for a root window.
+ShelfAlignment GetShelfAlignmentPref(Profile* profile, int64_t display_id);
+void SetShelfAlignmentPref(Profile* profile,
+ int64_t display_id,
+ ShelfAlignment alignment);
} // namespace ash
« no previous file with comments | « no previous file | chrome/browser/ui/ash/chrome_launcher_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698