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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 const Experiment::Choice kTouchOptimizedUIChoices[] = { | 167 const Experiment::Choice kTouchOptimizedUIChoices[] = { |
168 { IDS_GENERIC_EXPERIMENT_CHOICE_AUTOMATIC, "", "" }, | 168 { IDS_GENERIC_EXPERIMENT_CHOICE_AUTOMATIC, "", "" }, |
169 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, | 169 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
170 switches::kTouchOptimizedUI, | 170 switches::kTouchOptimizedUI, |
171 switches::kTouchOptimizedUIEnabled }, | 171 switches::kTouchOptimizedUIEnabled }, |
172 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 172 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
173 switches::kTouchOptimizedUI, | 173 switches::kTouchOptimizedUI, |
174 switches::kTouchOptimizedUIDisabled } | 174 switches::kTouchOptimizedUIDisabled } |
175 }; | 175 }; |
176 | 176 |
| 177 #if defined(USE_AURA) |
| 178 const Experiment::Choice kOverscrollHistoryNavigationChoices[] = { |
| 179 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, "", "" }, |
| 180 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 181 switches::kOverscrollHistoryNavigation, |
| 182 "0" }, |
| 183 { IDS_OVERSCROLL_HISTORY_NAVIGATION_SIMPLE_UI, |
| 184 switches::kOverscrollHistoryNavigation, |
| 185 "2" } |
| 186 }; |
| 187 #endif |
| 188 |
177 const Experiment::Choice kNaClDebugMaskChoices[] = { | 189 const Experiment::Choice kNaClDebugMaskChoices[] = { |
178 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 190 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
179 // Secure shell can be used on ChromeOS for forwarding the TCP port opened by | 191 // Secure shell can be used on ChromeOS for forwarding the TCP port opened by |
180 // debug stub to a remote machine. Since secure shell uses NaCl, we provide | 192 // debug stub to a remote machine. Since secure shell uses NaCl, we provide |
181 // an option to switch off its debugging. | 193 // an option to switch off its debugging. |
182 { IDS_NACL_DEBUG_MASK_CHOICE_EXCLUDE_UTILS, | 194 { IDS_NACL_DEBUG_MASK_CHOICE_EXCLUDE_UTILS, |
183 switches::kNaClDebugMask, "!*://*/*ssh_client.nmf" }, | 195 switches::kNaClDebugMask, "!*://*/*ssh_client.nmf" }, |
184 { IDS_NACL_DEBUG_MASK_CHOICE_INCLUDE_DEBUG, | 196 { IDS_NACL_DEBUG_MASK_CHOICE_INCLUDE_DEBUG, |
185 switches::kNaClDebugMask, "*://*/*debug.nmf" } | 197 switches::kNaClDebugMask, "*://*/*debug.nmf" } |
186 }; | 198 }; |
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1333 ENABLE_DISABLE_VALUE_TYPE( | 1345 ENABLE_DISABLE_VALUE_TYPE( |
1334 autofill::switches::kEnableInteractiveAutocomplete, | 1346 autofill::switches::kEnableInteractiveAutocomplete, |
1335 autofill::switches::kDisableInteractiveAutocomplete) | 1347 autofill::switches::kDisableInteractiveAutocomplete) |
1336 }, | 1348 }, |
1337 #if defined(USE_AURA) | 1349 #if defined(USE_AURA) |
1338 { | 1350 { |
1339 "overscroll-history-navigation", | 1351 "overscroll-history-navigation", |
1340 IDS_FLAGS_OVERSCROLL_HISTORY_NAVIGATION_NAME, | 1352 IDS_FLAGS_OVERSCROLL_HISTORY_NAVIGATION_NAME, |
1341 IDS_FLAGS_OVERSCROLL_HISTORY_NAVIGATION_DESCRIPTION, | 1353 IDS_FLAGS_OVERSCROLL_HISTORY_NAVIGATION_DESCRIPTION, |
1342 kOsAll, | 1354 kOsAll, |
1343 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( | 1355 MULTI_VALUE_TYPE(kOverscrollHistoryNavigationChoices) |
1344 switches::kOverscrollHistoryNavigation, "1", | |
1345 switches::kOverscrollHistoryNavigation, "0") | |
1346 }, | 1356 }, |
1347 #endif | 1357 #endif |
1348 { | 1358 { |
1349 "scroll-end-effect", | 1359 "scroll-end-effect", |
1350 IDS_FLAGS_SCROLL_END_EFFECT_NAME, | 1360 IDS_FLAGS_SCROLL_END_EFFECT_NAME, |
1351 IDS_FLAGS_SCROLL_END_EFFECT_DESCRIPTION, | 1361 IDS_FLAGS_SCROLL_END_EFFECT_DESCRIPTION, |
1352 kOsCrOS, | 1362 kOsCrOS, |
1353 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( | 1363 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( |
1354 switches::kScrollEndEffect, "1", | 1364 switches::kScrollEndEffect, "1", |
1355 switches::kScrollEndEffect, "0") | 1365 switches::kScrollEndEffect, "0") |
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2510 } | 2520 } |
2511 | 2521 |
2512 const Experiment* GetExperiments(size_t* count) { | 2522 const Experiment* GetExperiments(size_t* count) { |
2513 *count = num_experiments; | 2523 *count = num_experiments; |
2514 return experiments; | 2524 return experiments; |
2515 } | 2525 } |
2516 | 2526 |
2517 } // namespace testing | 2527 } // namespace testing |
2518 | 2528 |
2519 } // namespace about_flags | 2529 } // namespace about_flags |
OLD | NEW |