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 2148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2159 const char kComponentUpdaterState[] = "component_updater.state"; | 2159 const char kComponentUpdaterState[] = "component_updater.state"; |
2160 | 2160 |
2161 // The next media gallery ID to assign. | 2161 // The next media gallery ID to assign. |
2162 const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id"; | 2162 const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id"; |
2163 | 2163 |
2164 // A list of dictionaries, where each dictionary represents a known media | 2164 // A list of dictionaries, where each dictionary represents a known media |
2165 // gallery. | 2165 // gallery. |
2166 const char kMediaGalleriesRememberedGalleries[] = | 2166 const char kMediaGalleriesRememberedGalleries[] = |
2167 "media_galleries.remembered_galleries"; | 2167 "media_galleries.remembered_galleries"; |
2168 | 2168 |
2169 #if defined(USE_AURA) | 2169 #if defined(USE_ASH) |
2170 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The | 2170 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The |
2171 // local variant is not synced and is used if set. If the local variant is not | 2171 // local variant is not synced and is used if set. If the local variant is not |
2172 // set its value is set from the synced value (once prefs have been | 2172 // set its value is set from the synced value (once prefs have been |
2173 // synced). This gives a per-machine setting that is initialized from the last | 2173 // synced). This gives a per-machine setting that is initialized from the last |
2174 // set value. | 2174 // set value. |
2175 // These values are default on the machine but can be overridden by per-display | 2175 // These values are default on the machine but can be overridden by per-display |
2176 // values in kShelfPreferences (unless overridden by managed policy). | 2176 // values in kShelfPreferences (unless overridden by managed policy). |
2177 // String value corresponding to ash::Shell::ShelfAlignment. | 2177 // String value corresponding to ash::Shell::ShelfAlignment. |
2178 const char kShelfAlignment[] = "shelf_alignment"; | 2178 const char kShelfAlignment[] = "shelf_alignment"; |
2179 const char kShelfAlignmentLocal[] = "shelf_alignment_local"; | 2179 const char kShelfAlignmentLocal[] = "shelf_alignment_local"; |
2180 // String value corresponding to ash::Shell::ShelfAutoHideBehavior. | 2180 // String value corresponding to ash::Shell::ShelfAutoHideBehavior. |
2181 const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; | 2181 const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; |
2182 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; | 2182 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; |
2183 const char kPinnedLauncherApps[] = "pinned_launcher_apps"; | 2183 const char kPinnedLauncherApps[] = "pinned_launcher_apps"; |
2184 // Boolean value indicating whether to show a logout button in the ash tray. | 2184 // Boolean value indicating whether to show a logout button in the ash tray. |
2185 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray"; | 2185 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray"; |
2186 // Dictionary value that holds per-display preference of shelf alignment and | 2186 // Dictionary value that holds per-display preference of shelf alignment and |
2187 // auto-hide behavior. Key of the dictionary is the id of the display, and | 2187 // auto-hide behavior. Key of the dictionary is the id of the display, and |
2188 // its value is a dictionary whose keys are kShelfAlignment and | 2188 // its value is a dictionary whose keys are kShelfAlignment and |
2189 // kShelfAutoHideBehavior. | 2189 // kShelfAutoHideBehavior. |
2190 const char kShelfPreferences[] = "shelf_preferences"; | 2190 const char kShelfPreferences[] = "shelf_preferences"; |
2191 | 2191 |
| 2192 // Tuning settings for the animations when a user is cycling through workspaces |
| 2193 // via a three finger vertical scroll. |
| 2194 const char kWorkspaceCyclerShallowerThanSelectedYOffsets[] = |
| 2195 "workspace_cycler.shallower_than_selected_y_offsets"; |
| 2196 const char kWorkspaceCyclerDeeperThanSelectedYOffsets[] = |
| 2197 "workspace_cycler.deeper_than_selected_y_offsets"; |
| 2198 const char kWorkspaceCyclerSelectedYOffset[] = |
| 2199 "workspace_cycler.selected_y_offset"; |
| 2200 const char kWorkspaceCyclerSelectedScale[] = |
| 2201 "workspace_cycler.selected_scale"; |
| 2202 const char kWorkspaceCyclerMinScale[] = |
| 2203 "workspace_cycler.min_scale"; |
| 2204 const char kWorkspaceCyclerMaxScale[] = |
| 2205 "workspace_cycler.max_scale"; |
| 2206 const char kWorkspaceCyclerMinBrightness[] = |
| 2207 "workspace_cycler.min_brightness"; |
| 2208 const char kWorkspaceCyclerBackgroundOpacity[] = |
| 2209 "workspace_cycler.background_opacity"; |
| 2210 const char kWorkspaceCyclerDistanceToInitiateCycling[] = |
| 2211 "workspace_cycler.distance_to_initiate_cycling"; |
| 2212 const char kWorkspaceCyclerScrollDistanceToCycleToNextWorkspace[] = |
| 2213 "workspace_cycler.scroll_distance_to_cycle_to_next_workspace"; |
| 2214 const char kWorkspaceCyclerCyclerStepAnimationDurationRatio[] = |
| 2215 "workspace_cycler.cycler_step_animation_duration_ratio"; |
| 2216 const char kWorkspaceCyclerStartCyclerAnimationDuration[] = |
| 2217 "workspace_cycler.start_cycler_animation_duration"; |
| 2218 const char kWorkspaceCyclerStopCyclerAnimationDuration[] = |
| 2219 "workspace_cycler.stop_cycler_animation_duration"; |
| 2220 #endif |
| 2221 |
| 2222 #if defined(USE_AURA) |
| 2223 // Tuning settings for gestures. |
2192 const char kFlingVelocityCap[] = "gesture.fling_velocity_cap"; | 2224 const char kFlingVelocityCap[] = "gesture.fling_velocity_cap"; |
2193 const char kLongPressTimeInSeconds[] = | 2225 const char kLongPressTimeInSeconds[] = |
2194 "gesture.long_press_time_in_seconds"; | 2226 "gesture.long_press_time_in_seconds"; |
2195 const char kMaxDistanceBetweenTapsForDoubleTap[] = | 2227 const char kMaxDistanceBetweenTapsForDoubleTap[] = |
2196 "gesture.max_distance_between_taps_for_double_tap"; | 2228 "gesture.max_distance_between_taps_for_double_tap"; |
2197 const char kMaxDistanceForTwoFingerTapInPixels[] = | 2229 const char kMaxDistanceForTwoFingerTapInPixels[] = |
2198 "gesture.max_distance_for_two_finger_tap_in_pixels"; | 2230 "gesture.max_distance_for_two_finger_tap_in_pixels"; |
2199 const char kMaxSecondsBetweenDoubleClick[] = | 2231 const char kMaxSecondsBetweenDoubleClick[] = |
2200 "gesture.max_seconds_between_double_click"; | 2232 "gesture.max_seconds_between_double_click"; |
2201 const char kMaxSeparationForGestureTouchesInPixels[] = | 2233 const char kMaxSeparationForGestureTouchesInPixels[] = |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2280 const char kRLZDisabled[] = "rlz.disabled"; | 2312 const char kRLZDisabled[] = "rlz.disabled"; |
2281 #endif | 2313 #endif |
2282 | 2314 |
2283 #if defined(ENABLE_APP_LIST) | 2315 #if defined(ENABLE_APP_LIST) |
2284 // The directory in user data dir that contains the profile to be used with the | 2316 // The directory in user data dir that contains the profile to be used with the |
2285 // app launcher. | 2317 // app launcher. |
2286 extern const char kAppListProfile[] = "app_list.profile"; | 2318 extern const char kAppListProfile[] = "app_list.profile"; |
2287 #endif | 2319 #endif |
2288 | 2320 |
2289 } // namespace prefs | 2321 } // namespace prefs |
OLD | NEW |