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 |