| 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/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 const Experiment::Choice kOmniboxInlineHistoryQuickProviderChoices[] = { | 95 const Experiment::Choice kOmniboxInlineHistoryQuickProviderChoices[] = { |
| 96 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_AUTOMATIC, "", "" }, | 96 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_AUTOMATIC, "", "" }, |
| 97 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_ALLOWED, | 97 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_ALLOWED, |
| 98 switches::kOmniboxInlineHistoryQuickProvider, | 98 switches::kOmniboxInlineHistoryQuickProvider, |
| 99 switches::kOmniboxInlineHistoryQuickProviderAllowed }, | 99 switches::kOmniboxInlineHistoryQuickProviderAllowed }, |
| 100 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_PROHIBITED, | 100 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_PROHIBITED, |
| 101 switches::kOmniboxInlineHistoryQuickProvider, | 101 switches::kOmniboxInlineHistoryQuickProvider, |
| 102 switches::kOmniboxInlineHistoryQuickProviderProhibited } | 102 switches::kOmniboxInlineHistoryQuickProviderProhibited } |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 const Experiment::Choice kForceCompositingModeChoices[] = { |
| 106 { IDS_FLAGS_FORCE_COMPOSITING_MODE_DEFAULT, "", "" }, |
| 107 { IDS_FLAGS_FORCE_COMPOSITING_MODE_ENABLED, |
| 108 switches::kForceCompositingMode, ""}, |
| 109 { IDS_FLAGS_FORCE_COMPOSITING_MODE_DISABLED, |
| 110 switches::kDisableForceCompositingMode, ""} |
| 111 }; |
| 112 |
| 105 const Experiment::Choice kThreadedCompositingModeChoices[] = { | 113 const Experiment::Choice kThreadedCompositingModeChoices[] = { |
| 106 { IDS_FLAGS_THREADED_COMPOSITING_MODE_DEFAULT, "", "" }, | 114 { IDS_FLAGS_THREADED_COMPOSITING_MODE_DEFAULT, "", "" }, |
| 107 { IDS_FLAGS_THREADED_COMPOSITING_MODE_DISABLED, | 115 { IDS_FLAGS_THREADED_COMPOSITING_MODE_DISABLED, |
| 108 switches::kDisableThreadedCompositing, ""}, | 116 switches::kDisableThreadedCompositing, ""}, |
| 109 { IDS_FLAGS_THREADED_COMPOSITING_MODE_ENABLED, | 117 { IDS_FLAGS_THREADED_COMPOSITING_MODE_ENABLED, |
| 110 switches::kEnableThreadedCompositing, ""} | 118 switches::kEnableThreadedCompositing, ""} |
| 111 }; | 119 }; |
| 112 | 120 |
| 113 const Experiment::Choice kTouchOptimizedUIChoices[] = { | 121 const Experiment::Choice kTouchOptimizedUIChoices[] = { |
| 114 { IDS_FLAGS_TOUCH_OPTIMIZED_UI_AUTOMATIC, "", "" }, | 122 { IDS_FLAGS_TOUCH_OPTIMIZED_UI_AUTOMATIC, "", "" }, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 "ignore-gpu-blacklist", | 207 "ignore-gpu-blacklist", |
| 200 IDS_FLAGS_IGNORE_GPU_BLACKLIST_NAME, | 208 IDS_FLAGS_IGNORE_GPU_BLACKLIST_NAME, |
| 201 IDS_FLAGS_IGNORE_GPU_BLACKLIST_DESCRIPTION, | 209 IDS_FLAGS_IGNORE_GPU_BLACKLIST_DESCRIPTION, |
| 202 kOsAll, | 210 kOsAll, |
| 203 SINGLE_VALUE_TYPE(switches::kIgnoreGpuBlacklist) | 211 SINGLE_VALUE_TYPE(switches::kIgnoreGpuBlacklist) |
| 204 }, | 212 }, |
| 205 { | 213 { |
| 206 "force-compositing-mode-2", | 214 "force-compositing-mode-2", |
| 207 IDS_FLAGS_FORCE_COMPOSITING_MODE_NAME, | 215 IDS_FLAGS_FORCE_COMPOSITING_MODE_NAME, |
| 208 IDS_FLAGS_FORCE_COMPOSITING_MODE_DESCRIPTION, | 216 IDS_FLAGS_FORCE_COMPOSITING_MODE_DESCRIPTION, |
| 209 kOsAll, | 217 kOsMac | kOsWin | kOsLinux, |
| 210 SINGLE_VALUE_TYPE(switches::kForceCompositingMode) | 218 MULTI_VALUE_TYPE(kForceCompositingModeChoices) |
| 211 }, | 219 }, |
| 212 { | 220 { |
| 213 "threaded-compositing-mode", | 221 "threaded-compositing-mode", |
| 214 IDS_FLAGS_THREADED_COMPOSITING_MODE_NAME, | 222 IDS_FLAGS_THREADED_COMPOSITING_MODE_NAME, |
| 215 IDS_FLAGS_THREADED_COMPOSITING_MODE_DESCRIPTION, | 223 IDS_FLAGS_THREADED_COMPOSITING_MODE_DESCRIPTION, |
| 216 kOsAll, | 224 kOsAll, |
| 217 MULTI_VALUE_TYPE(kThreadedCompositingModeChoices) | 225 MULTI_VALUE_TYPE(kThreadedCompositingModeChoices) |
| 218 }, | 226 }, |
| 219 { | 227 { |
| 220 "disable-accelerated-2d-canvas", | 228 "disable-accelerated-2d-canvas", |
| (...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 } | 1216 } |
| 1209 | 1217 |
| 1210 const Experiment* GetExperiments(size_t* count) { | 1218 const Experiment* GetExperiments(size_t* count) { |
| 1211 *count = num_experiments; | 1219 *count = num_experiments; |
| 1212 return experiments; | 1220 return experiments; |
| 1213 } | 1221 } |
| 1214 | 1222 |
| 1215 } // namespace testing | 1223 } // namespace testing |
| 1216 | 1224 |
| 1217 } // namespace about_flags | 1225 } // namespace about_flags |
| OLD | NEW |