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 #include "chrome/common/pref_names.h" | 5 #include "chrome/common/pref_names.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 | 8 |
9 namespace prefs { | 9 namespace prefs { |
10 | 10 |
(...skipping 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2084 // gallery. | 2084 // gallery. |
2085 const char kMediaGalleriesRememberedGalleries[] = | 2085 const char kMediaGalleriesRememberedGalleries[] = |
2086 "media_galleries.remembered_galleries"; | 2086 "media_galleries.remembered_galleries"; |
2087 | 2087 |
2088 #if defined(USE_AURA) | 2088 #if defined(USE_AURA) |
2089 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The | 2089 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The |
2090 // local variant is not synced and is used if set. If the local variant is not | 2090 // local variant is not synced and is used if set. If the local variant is not |
2091 // set its value is set from the synced value (once prefs have been | 2091 // set its value is set from the synced value (once prefs have been |
2092 // synced). This gives a per-machine setting that is initialized from the last | 2092 // synced). This gives a per-machine setting that is initialized from the last |
2093 // set value. | 2093 // set value. |
2094 // These values are default on the machine but can be overridden by per-display | |
2095 // values in kShelfPreferences. | |
bartfab (slow)
2012/12/14 21:34:02
... unless overridden by managed policy, in which
Jun Mukai
2012/12/14 22:44:56
Done.
| |
2094 // String value corresponding to ash::Shell::ShelfAlignment. | 2096 // String value corresponding to ash::Shell::ShelfAlignment. |
2095 const char kShelfAlignment[] = "shelf_alignment"; | 2097 const char kShelfAlignment[] = "shelf_alignment"; |
2096 const char kShelfAlignmentLocal[] = "shelf_alignment_local"; | 2098 const char kShelfAlignmentLocal[] = "shelf_alignment_local"; |
2097 // String value corresponding to ash::Shell::ShelfAutoHideBehavior. | 2099 // String value corresponding to ash::Shell::ShelfAutoHideBehavior. |
2098 const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; | 2100 const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; |
2099 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; | 2101 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; |
2100 const char kPinnedLauncherApps[] = "pinned_launcher_apps"; | 2102 const char kPinnedLauncherApps[] = "pinned_launcher_apps"; |
2101 // Boolean value indicating whether to show a logout button in the ash tray. | 2103 // Boolean value indicating whether to show a logout button in the ash tray. |
2102 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray"; | 2104 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray"; |
2105 // Dictionary value that holds per-display preference of shelf alignment and | |
2106 // auto-hide behavior. Key of the dictionary is the id of the display, and | |
2107 // its value is a dictionary whose keys are kShelfAlignment and | |
2108 // kShelfAutoHideBehavior. | |
2109 const char kShelfPreferences[] = "shelf_preferences"; | |
2103 | 2110 |
2104 const char kFlingVelocityCap[] = "gesture.fling_velocity_cap"; | 2111 const char kFlingVelocityCap[] = "gesture.fling_velocity_cap"; |
2105 const char kLongPressTimeInSeconds[] = | 2112 const char kLongPressTimeInSeconds[] = |
2106 "gesture.long_press_time_in_seconds"; | 2113 "gesture.long_press_time_in_seconds"; |
2107 const char kMaxDistanceBetweenTapsForDoubleTap[] = | 2114 const char kMaxDistanceBetweenTapsForDoubleTap[] = |
2108 "gesture.max_distance_between_taps_for_double_tap"; | 2115 "gesture.max_distance_between_taps_for_double_tap"; |
2109 const char kMaxDistanceForTwoFingerTapInPixels[] = | 2116 const char kMaxDistanceForTwoFingerTapInPixels[] = |
2110 "gesture.max_distance_for_two_finger_tap_in_pixels"; | 2117 "gesture.max_distance_for_two_finger_tap_in_pixels"; |
2111 const char kMaxSecondsBetweenDoubleClick[] = | 2118 const char kMaxSecondsBetweenDoubleClick[] = |
2112 "gesture.max_seconds_between_double_click"; | 2119 "gesture.max_seconds_between_double_click"; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2175 // 64-bit serialization of the time last policy usage statistics were collected | 2182 // 64-bit serialization of the time last policy usage statistics were collected |
2176 // by UMA_HISTOGRAM_ENUMERATION. | 2183 // by UMA_HISTOGRAM_ENUMERATION. |
2177 const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update"; | 2184 const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update"; |
2178 | 2185 |
2179 #if defined(OS_CHROMEOS) | 2186 #if defined(OS_CHROMEOS) |
2180 // The RLZ brand code, if enabled. | 2187 // The RLZ brand code, if enabled. |
2181 const char kRLZBrand[] = "rlz.brand"; | 2188 const char kRLZBrand[] = "rlz.brand"; |
2182 #endif | 2189 #endif |
2183 | 2190 |
2184 } // namespace prefs | 2191 } // namespace prefs |
OLD | NEW |