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 #include "chrome/common/pref_font_webkit_names.h" | 8 #include "chrome/common/pref_font_webkit_names.h" |
9 | 9 |
10 namespace prefs { | 10 namespace prefs { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const char kManagedUserSharedSettings[] = "profile.managed.shared_settings"; | 53 const char kManagedUserSharedSettings[] = "profile.managed.shared_settings"; |
54 | 54 |
55 // An integer that keeps track of the profile icon version. This allows us to | 55 // An integer that keeps track of the profile icon version. This allows us to |
56 // determine the state of the profile icon for icon format changes. | 56 // determine the state of the profile icon for icon format changes. |
57 const char kProfileIconVersion[] = "profile.icon_version"; | 57 const char kProfileIconVersion[] = "profile.icon_version"; |
58 | 58 |
59 // Used to determine if the last session exited cleanly. Set to false when | 59 // Used to determine if the last session exited cleanly. Set to false when |
60 // first opened, and to true when closing. On startup if the value is false, | 60 // first opened, and to true when closing. On startup if the value is false, |
61 // it means the profile didn't exit cleanly. | 61 // it means the profile didn't exit cleanly. |
62 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards | 62 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards |
63 // compatability. | 63 // compatibility. |
64 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; | 64 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; |
65 | 65 |
66 // A string pref whose values is one of the values defined by | 66 // A string pref whose values is one of the values defined by |
67 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and | 67 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and |
68 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during | 68 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during |
69 // shutdown. Used to determine the exit type the last time the profile was open. | 69 // shutdown. Used to determine the exit type the last time the profile was open. |
70 const char kSessionExitType[] = "profile.exit_type"; | 70 const char kSessionExitType[] = "profile.exit_type"; |
71 | 71 |
72 // An integer pref. Holds one of several values: | 72 // An integer pref. Holds one of several values: |
73 // 0: (deprecated) open the homepage on startup. | 73 // 0: (deprecated) open the homepage on startup. |
(...skipping 2021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an | 2095 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an |
2096 // empty string, in which case the value will be ignored. | 2096 // empty string, in which case the value will be ignored. |
2097 // TODO(dubroy): This preference may not be necessary once | 2097 // TODO(dubroy): This preference may not be necessary once |
2098 // http://crosbug.com/17015 is implemented and the update engine can just | 2098 // http://crosbug.com/17015 is implemented and the update engine can just |
2099 // fetch the correct value from the policy. | 2099 // fetch the correct value from the policy. |
2100 const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel"; | 2100 const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel"; |
2101 | 2101 |
2102 const char kPerformanceTracingEnabled[] = | 2102 const char kPerformanceTracingEnabled[] = |
2103 "feedback.performance_tracing_enabled"; | 2103 "feedback.performance_tracing_enabled"; |
2104 | 2104 |
2105 // Value of the enums in TabStrip::LayoutType as an int. | 2105 // Boolean indicating whether tabstrip uses stacked layout (on touch devices). |
2106 const char kTabStripLayoutType[] = "tab_strip_layout_type"; | 2106 // Defaults to false. |
| 2107 const char kTabStripStackedLayout[] = "tab-strip-stacked-layout"; |
2107 | 2108 |
2108 // Indicates that factory reset was requested from options page or reset screen. | 2109 // Indicates that factory reset was requested from options page or reset screen. |
2109 const char kFactoryResetRequested[] = "FactoryResetRequested"; | 2110 const char kFactoryResetRequested[] = "FactoryResetRequested"; |
2110 | 2111 |
2111 // Indicates that rollback was requested alongside with factory reset. | 2112 // Indicates that rollback was requested alongside with factory reset. |
2112 // Makes sense only if kFactoryResetRequested is true. | 2113 // Makes sense only if kFactoryResetRequested is true. |
2113 const char kRollbackRequested[] = "RollbackRequested"; | 2114 const char kRollbackRequested[] = "RollbackRequested"; |
2114 | 2115 |
2115 // Boolean recording whether we have showed a balloon that calls out the message | 2116 // Boolean recording whether we have showed a balloon that calls out the message |
2116 // center for desktop notifications. | 2117 // center for desktop notifications. |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2300 // These values are default on the machine but can be overridden by per-display | 2301 // These values are default on the machine but can be overridden by per-display |
2301 // values in kShelfPreferences (unless overridden by managed policy). | 2302 // values in kShelfPreferences (unless overridden by managed policy). |
2302 // String value corresponding to ash::Shell::ShelfAlignment. | 2303 // String value corresponding to ash::Shell::ShelfAlignment. |
2303 const char kShelfAlignment[] = "shelf_alignment"; | 2304 const char kShelfAlignment[] = "shelf_alignment"; |
2304 const char kShelfAlignmentLocal[] = "shelf_alignment_local"; | 2305 const char kShelfAlignmentLocal[] = "shelf_alignment_local"; |
2305 // String value corresponding to ash::Shell::ShelfAutoHideBehavior. | 2306 // String value corresponding to ash::Shell::ShelfAutoHideBehavior. |
2306 const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; | 2307 const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; |
2307 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; | 2308 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; |
2308 // This value stores chrome icon's index in the launcher. This should be handled | 2309 // This value stores chrome icon's index in the launcher. This should be handled |
2309 // separately with app shortcut's index because of ShelfModel's backward | 2310 // separately with app shortcut's index because of ShelfModel's backward |
2310 // compatability. If we add chrome icon index to |kPinnedLauncherApps|, its | 2311 // compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its |
2311 // index is also stored in the |kPinnedLauncherApp| pref. It may causes | 2312 // index is also stored in the |kPinnedLauncherApp| pref. It may causes |
2312 // creating two chrome icons. | 2313 // creating two chrome icons. |
2313 const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index"; | 2314 const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index"; |
2314 // Dictionary value that holds per-display preference of shelf alignment and | 2315 // Dictionary value that holds per-display preference of shelf alignment and |
2315 // auto-hide behavior. Key of the dictionary is the id of the display, and | 2316 // auto-hide behavior. Key of the dictionary is the id of the display, and |
2316 // its value is a dictionary whose keys are kShelfAlignment and | 2317 // its value is a dictionary whose keys are kShelfAlignment and |
2317 // kShelfAutoHideBehavior. | 2318 // kShelfAutoHideBehavior. |
2318 const char kShelfPreferences[] = "shelf_preferences"; | 2319 const char kShelfPreferences[] = "shelf_preferences"; |
2319 | 2320 |
2320 // Integer value in milliseconds indicating the length of time for which a | 2321 // Integer value in milliseconds indicating the length of time for which a |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2509 // "mapped_title" entries, detailing the bookmark target URL (if any), the title | 2510 // "mapped_title" entries, detailing the bookmark target URL (if any), the title |
2510 // given by the PartnerBookmarksProvider and either the user-visible renamed | 2511 // given by the PartnerBookmarksProvider and either the user-visible renamed |
2511 // title or an empty string if the bookmark node was removed. | 2512 // title or an empty string if the bookmark node was removed. |
2512 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; | 2513 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; |
2513 #endif | 2514 #endif |
2514 | 2515 |
2515 // Whether DNS Quick Check is disabled in proxy resolution. | 2516 // Whether DNS Quick Check is disabled in proxy resolution. |
2516 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; | 2517 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; |
2517 | 2518 |
2518 } // namespace prefs | 2519 } // namespace prefs |
OLD | NEW |