| OLD | NEW |
| 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_CHROME_LAUNCHER_PREFS_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_ | 6 #define CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 extern const char kShelfAutoHideBehaviorNever[]; | 47 extern const char kShelfAutoHideBehaviorNever[]; |
| 48 | 48 |
| 49 // Values used for prefs::kShelfAlignment. | 49 // Values used for prefs::kShelfAlignment. |
| 50 extern const char kShelfAlignmentBottom[]; | 50 extern const char kShelfAlignmentBottom[]; |
| 51 extern const char kShelfAlignmentLeft[]; | 51 extern const char kShelfAlignmentLeft[]; |
| 52 extern const char kShelfAlignmentRight[]; | 52 extern const char kShelfAlignmentRight[]; |
| 53 | 53 |
| 54 void RegisterChromeLauncherUserPrefs( | 54 void RegisterChromeLauncherUserPrefs( |
| 55 user_prefs::PrefRegistrySyncable* registry); | 55 user_prefs::PrefRegistrySyncable* registry); |
| 56 | 56 |
| 57 base::DictionaryValue* CreateAppDict(const std::string& app_id); | 57 std::unique_ptr<base::DictionaryValue> CreateAppDict(const std::string& app_id); |
| 58 | 58 |
| 59 // Get or set the shelf auto hide behavior preference for a particular display. | 59 // Get or set the shelf auto hide behavior preference for a particular display. |
| 60 ShelfAutoHideBehavior GetShelfAutoHideBehaviorPref(PrefService* prefs, | 60 ShelfAutoHideBehavior GetShelfAutoHideBehaviorPref(PrefService* prefs, |
| 61 int64_t display_id); | 61 int64_t display_id); |
| 62 void SetShelfAutoHideBehaviorPref(PrefService* prefs, | 62 void SetShelfAutoHideBehaviorPref(PrefService* prefs, |
| 63 int64_t display_id, | 63 int64_t display_id, |
| 64 ShelfAutoHideBehavior behavior); | 64 ShelfAutoHideBehavior behavior); |
| 65 | 65 |
| 66 // Get or set the shelf alignment preference for a particular display. | 66 // Get or set the shelf alignment preference for a particular display. |
| 67 ShelfAlignment GetShelfAlignmentPref(PrefService* prefs, int64_t display_id); | 67 ShelfAlignment GetShelfAlignmentPref(PrefService* prefs, int64_t display_id); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Profile prefs. Not owned. | 108 // Profile prefs. Not owned. |
| 109 syncable_prefs::PrefServiceSyncable* prefs_; | 109 syncable_prefs::PrefServiceSyncable* prefs_; |
| 110 | 110 |
| 111 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherPrefsObserver); | 111 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherPrefsObserver); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace launcher | 114 } // namespace launcher |
| 115 } // namespace ash | 115 } // namespace ash |
| 116 | 116 |
| 117 #endif // CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_ | 117 #endif // CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_ |
| OLD | NEW |