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 <iterator> | 7 #include <iterator> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 261 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
262 { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_FAST, | 262 { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_FAST, |
263 switches::kTabCaptureDownscaleQuality, "fast" }, | 263 switches::kTabCaptureDownscaleQuality, "fast" }, |
264 { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_GOOD, | 264 { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_GOOD, |
265 switches::kTabCaptureDownscaleQuality, "good" }, | 265 switches::kTabCaptureDownscaleQuality, "good" }, |
266 { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_BEST, | 266 { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_BEST, |
267 switches::kTabCaptureDownscaleQuality, "best" }, | 267 switches::kTabCaptureDownscaleQuality, "best" }, |
268 }; | 268 }; |
269 #endif | 269 #endif |
270 | 270 |
271 #if defined(TOOLKIT_VIEWS) | |
272 const Experiment::Choice kTabCloseButtonsHiddenWithTouchChoices[] = { | |
273 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | |
274 { IDS_FLAGS_TAB_CLOSE_BUTTONS_HIDDEN_WITH_TOUCH_ALWAYS, | |
275 switches::kTabCloseButtonsHiddenWithTouch, "always" }, | |
276 { IDS_FLAGS_TAB_CLOSE_BUTTONS_HIDDEN_WITH_TOUCH_NARROW, | |
277 switches::kTabCloseButtonsHiddenWithTouch, "narrow" }, | |
278 { IDS_FLAGS_TAB_CLOSE_BUTTONS_HIDDEN_WITH_TOUCH_STACKED, | |
279 switches::kTabCloseButtonsHiddenWithTouch, "stacked" }, | |
280 }; | |
281 #endif | |
282 | |
283 #if defined(OS_ANDROID) | 271 #if defined(OS_ANDROID) |
284 const Experiment::Choice kZeroSuggestExperimentsChoices[] = { | 272 const Experiment::Choice kZeroSuggestExperimentsChoices[] = { |
285 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 273 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
286 { IDS_FLAGS_ZERO_SUGGEST_MOST_VISITED, | 274 { IDS_FLAGS_ZERO_SUGGEST_MOST_VISITED, |
287 switches::kEnableZeroSuggestMostVisited, ""}, | 275 switches::kEnableZeroSuggestMostVisited, ""}, |
288 { IDS_FLAGS_ZERO_SUGGEST_MOST_VISITED_WITHOUT_SERP, | 276 { IDS_FLAGS_ZERO_SUGGEST_MOST_VISITED_WITHOUT_SERP, |
289 switches::kEnableZeroSuggestMostVisitedWithoutSerp, ""}, | 277 switches::kEnableZeroSuggestMostVisitedWithoutSerp, ""}, |
290 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 278 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
291 switches::kDisableZeroSuggest, ""} | 279 switches::kDisableZeroSuggest, ""} |
292 }; | 280 }; |
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1386 { | 1374 { |
1387 "tab-capture-downscale-quality", | 1375 "tab-capture-downscale-quality", |
1388 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_NAME, | 1376 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_NAME, |
1389 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_DESCRIPTION, | 1377 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_DESCRIPTION, |
1390 kOsAll, | 1378 kOsAll, |
1391 MULTI_VALUE_TYPE(kTabCaptureDownscaleQualityChoices) | 1379 MULTI_VALUE_TYPE(kTabCaptureDownscaleQualityChoices) |
1392 }, | 1380 }, |
1393 #endif | 1381 #endif |
1394 #if defined(TOOLKIT_VIEWS) | 1382 #if defined(TOOLKIT_VIEWS) |
1395 { | 1383 { |
1396 "tab-close-buttons-hidden-with-touch", | 1384 "disable-hide-inactive-stacked-tab-close-buttons", |
1397 IDS_FLAGS_TAB_CLOSE_BUTTONS_HIDDEN_WITH_TOUCH_NAME, | 1385 IDS_FLAGS_DISABLE_HIDE_INACTIVE_STACKED_TAB_CLOSE_BUTTONS_NAME, |
1398 IDS_FLAGS_TAB_CLOSE_BUTTONS_HIDDEN_WITH_TOUCH_DESCRIPTION, | 1386 IDS_FLAGS_DISABLE_HIDE_INACTIVE_STACKED_TAB_CLOSE_BUTTONS_DESCRIPTION, |
1399 kOsCrOS | kOsWin | kOsLinux, | 1387 kOsCrOS | kOsWin | kOsLinux, |
1400 MULTI_VALUE_TYPE(kTabCloseButtonsHiddenWithTouchChoices) | 1388 SINGLE_VALUE_TYPE(switches::kDisableHideInactiveStackedTabCloseButtons) |
1401 }, | 1389 }, |
1402 #endif | 1390 #endif |
1403 { | 1391 { |
1404 "enable-webgl-draft-extensions", | 1392 "enable-webgl-draft-extensions", |
1405 IDS_FLAGS_ENABLE_WEBGL_DRAFT_EXTENSIONS_NAME, | 1393 IDS_FLAGS_ENABLE_WEBGL_DRAFT_EXTENSIONS_NAME, |
1406 IDS_FLAGS_ENABLE_WEBGL_DRAFT_EXTENSIONS_DESCRIPTION, | 1394 IDS_FLAGS_ENABLE_WEBGL_DRAFT_EXTENSIONS_DESCRIPTION, |
1407 kOsAll, | 1395 kOsAll, |
1408 SINGLE_VALUE_TYPE(switches::kEnableWebGLDraftExtensions) | 1396 SINGLE_VALUE_TYPE(switches::kEnableWebGLDraftExtensions) |
1409 }, | 1397 }, |
1410 { | 1398 { |
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2817 } | 2805 } |
2818 | 2806 |
2819 const Experiment* GetExperiments(size_t* count) { | 2807 const Experiment* GetExperiments(size_t* count) { |
2820 *count = num_experiments; | 2808 *count = num_experiments; |
2821 return experiments; | 2809 return experiments; |
2822 } | 2810 } |
2823 | 2811 |
2824 } // namespace testing | 2812 } // namespace testing |
2825 | 2813 |
2826 } // namespace about_flags | 2814 } // namespace about_flags |
OLD | NEW |