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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 const Experiment::Choice kOmniboxInlineHistoryQuickProviderChoices[] = { | 99 const Experiment::Choice kOmniboxInlineHistoryQuickProviderChoices[] = { |
100 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_AUTOMATIC, "", "" }, | 100 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_AUTOMATIC, "", "" }, |
101 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_ALLOWED, | 101 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_ALLOWED, |
102 switches::kOmniboxInlineHistoryQuickProvider, | 102 switches::kOmniboxInlineHistoryQuickProvider, |
103 switches::kOmniboxInlineHistoryQuickProviderAllowed }, | 103 switches::kOmniboxInlineHistoryQuickProviderAllowed }, |
104 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_PROHIBITED, | 104 { IDS_FLAGS_OMNIBOX_INLINE_HISTORY_QUICK_PROVIDER_PROHIBITED, |
105 switches::kOmniboxInlineHistoryQuickProvider, | 105 switches::kOmniboxInlineHistoryQuickProvider, |
106 switches::kOmniboxInlineHistoryQuickProviderProhibited } | 106 switches::kOmniboxInlineHistoryQuickProviderProhibited } |
107 }; | 107 }; |
108 | 108 |
| 109 const Experiment::Choice kFixedPositionCreatesStackingContextChoices[] = { |
| 110 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 111 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 112 switches::kEnableFixedPositionCreatesStackingContext, ""}, |
| 113 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 114 switches::kDisableFixedPositionCreatesStackingContext, ""} |
| 115 }; |
| 116 |
109 const Experiment::Choice kForceCompositingModeChoices[] = { | 117 const Experiment::Choice kForceCompositingModeChoices[] = { |
110 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 118 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
111 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, | 119 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
112 switches::kForceCompositingMode, ""}, | 120 switches::kForceCompositingMode, ""}, |
113 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 121 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
114 switches::kDisableForceCompositingMode, ""} | 122 switches::kDisableForceCompositingMode, ""} |
115 }; | 123 }; |
116 | 124 |
117 const Experiment::Choice kThreadedCompositingModeChoices[] = { | 125 const Experiment::Choice kThreadedCompositingModeChoices[] = { |
118 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 126 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 IDS_FLAGS_DISABLE_WEBGL_NAME, | 305 IDS_FLAGS_DISABLE_WEBGL_NAME, |
298 IDS_FLAGS_DISABLE_WEBGL_DESCRIPTION, | 306 IDS_FLAGS_DISABLE_WEBGL_DESCRIPTION, |
299 kOsAll, | 307 kOsAll, |
300 SINGLE_VALUE_TYPE(switches::kDisableExperimentalWebGL) | 308 SINGLE_VALUE_TYPE(switches::kDisableExperimentalWebGL) |
301 }, | 309 }, |
302 { | 310 { |
303 "fixed-position-creates-stacking-context", | 311 "fixed-position-creates-stacking-context", |
304 IDS_FLAGS_FIXED_POSITION_CREATES_STACKING_CONTEXT_NAME, | 312 IDS_FLAGS_FIXED_POSITION_CREATES_STACKING_CONTEXT_NAME, |
305 IDS_FLAGS_FIXED_POSITION_CREATES_STACKING_CONTEXT_DESCRIPTION, | 313 IDS_FLAGS_FIXED_POSITION_CREATES_STACKING_CONTEXT_DESCRIPTION, |
306 kOsAll, | 314 kOsAll, |
307 SINGLE_VALUE_TYPE(switches::kFixedPositionCreatesStackingContext) | 315 MULTI_VALUE_TYPE(kFixedPositionCreatesStackingContextChoices) |
308 }, | 316 }, |
309 // TODO(dspringer): When NaCl is on by default, remove this flag entry. | 317 // TODO(dspringer): When NaCl is on by default, remove this flag entry. |
310 { | 318 { |
311 "enable-nacl", // FLAGS:RECORD_UMA | 319 "enable-nacl", // FLAGS:RECORD_UMA |
312 IDS_FLAGS_ENABLE_NACL_NAME, | 320 IDS_FLAGS_ENABLE_NACL_NAME, |
313 IDS_FLAGS_ENABLE_NACL_DESCRIPTION, | 321 IDS_FLAGS_ENABLE_NACL_DESCRIPTION, |
314 kOsAll, | 322 kOsAll, |
315 SINGLE_VALUE_TYPE(switches::kEnableNaCl) | 323 SINGLE_VALUE_TYPE(switches::kEnableNaCl) |
316 }, | 324 }, |
317 // TODO(halyavin): When exception handling is on by default, replace this | 325 // TODO(halyavin): When exception handling is on by default, replace this |
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1298 } | 1306 } |
1299 | 1307 |
1300 const Experiment* GetExperiments(size_t* count) { | 1308 const Experiment* GetExperiments(size_t* count) { |
1301 *count = num_experiments; | 1309 *count = num_experiments; |
1302 return experiments; | 1310 return experiments; |
1303 } | 1311 } |
1304 | 1312 |
1305 } // namespace testing | 1313 } // namespace testing |
1306 | 1314 |
1307 } // namespace about_flags | 1315 } // namespace about_flags |
OLD | NEW |