Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 1188713007: Moved --top-chrome-md command line switch from chrome_switches to ui_base_switches. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed typedef in unittest. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 "none" }, 419 "none" },
420 { IDS_ASH_SCREEN_ROTATION_ANIMATION_PARTIAL_ROTATION, 420 { IDS_ASH_SCREEN_ROTATION_ANIMATION_PARTIAL_ROTATION,
421 ash::switches::kAshEnableScreenRotationAnimation, 421 ash::switches::kAshEnableScreenRotationAnimation,
422 "partial-rotation" }, 422 "partial-rotation" },
423 { IDS_ASH_SCREEN_ROTATION_ANIMATION_FULL_ROTATION, 423 { IDS_ASH_SCREEN_ROTATION_ANIMATION_FULL_ROTATION,
424 ash::switches::kAshEnableScreenRotationAnimation, 424 ash::switches::kAshEnableScreenRotationAnimation,
425 "full-rotation" } 425 "full-rotation" }
426 }; 426 };
427 #endif 427 #endif
428 428
429 #if defined(ENABLE_TOPCHROME_MD)
430 const Experiment::Choice kTopChromeMaterialDesignChoices[] = {
431 {IDS_FLAGS_TOP_CHROME_MD_NON_MATERIAL, "", ""},
432 {IDS_FLAGS_TOP_CHROME_MD_MATERIAL,
433 switches::kTopChromeMD,
434 switches::kTopChromeMDMaterial},
435 {IDS_FLAGS_TOP_CHROME_MD_MATERIAL_HYBRID,
436 switches::kTopChromeMD,
437 switches::kTopChromeMDMaterialHybrid}};
438 #endif
439
429 #if defined(OS_CHROMEOS) 440 #if defined(OS_CHROMEOS)
430 const Experiment::Choice kDataSaverPromptChoices[] = { 441 const Experiment::Choice kDataSaverPromptChoices[] = {
431 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 442 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
432 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, 443 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
433 chromeos::switches::kDisableDataSaverPrompt, "" }, 444 chromeos::switches::kDisableDataSaverPrompt, "" },
434 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, 445 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
435 chromeos::switches::kEnableDataSaverPrompt, "" }, 446 chromeos::switches::kEnableDataSaverPrompt, "" },
436 { IDS_FLAGS_DATASAVER_PROMPT_DEMO_MODE, 447 { IDS_FLAGS_DATASAVER_PROMPT_DEMO_MODE,
437 chromeos::switches::kEnableDataSaverPrompt, 448 chromeos::switches::kEnableDataSaverPrompt,
438 chromeos::switches::kDataSaverPromptDemoMode }, 449 chromeos::switches::kDataSaverPromptDemoMode },
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 #endif 800 #endif
790 {"enable-scroll-prediction", 801 {"enable-scroll-prediction",
791 IDS_FLAGS_ENABLE_SCROLL_PREDICTION_NAME, 802 IDS_FLAGS_ENABLE_SCROLL_PREDICTION_NAME,
792 IDS_FLAGS_ENABLE_SCROLL_PREDICTION_DESCRIPTION, 803 IDS_FLAGS_ENABLE_SCROLL_PREDICTION_DESCRIPTION,
793 kOsDesktop, 804 kOsDesktop,
794 SINGLE_VALUE_TYPE(switches::kEnableScrollPrediction)}, 805 SINGLE_VALUE_TYPE(switches::kEnableScrollPrediction)},
795 #if defined(ENABLE_TOPCHROME_MD) 806 #if defined(ENABLE_TOPCHROME_MD)
796 {"top-chrome-md", 807 {"top-chrome-md",
797 IDS_FLAGS_TOP_CHROME_MD, 808 IDS_FLAGS_TOP_CHROME_MD,
798 IDS_FLAGS_TOP_CHROME_MD_DESCRIPTION, 809 IDS_FLAGS_TOP_CHROME_MD_DESCRIPTION,
799 kOsWin | kOsCrOS, 810 kOsWin | kOsCrOS,
tdanderson 2015/06/26 21:38:23 I just noticed you're missing Linux here. Mind add
bruthig 2015/06/29 14:18:57 https://codereview.chromium.org/1219683003
800 ENABLE_DISABLE_VALUE_TYPE(switches::kTopChromeMDEnabled, 811 MULTI_VALUE_TYPE(kTopChromeMaterialDesignChoices)},
801 switches::kTopChromeMDDisabled)},
802 #endif 812 #endif
803 {"touch-events", 813 {"touch-events",
804 IDS_TOUCH_EVENTS_NAME, 814 IDS_TOUCH_EVENTS_NAME,
805 IDS_TOUCH_EVENTS_DESCRIPTION, 815 IDS_TOUCH_EVENTS_DESCRIPTION,
806 kOsDesktop, 816 kOsDesktop,
807 MULTI_VALUE_TYPE(kTouchEventsChoices)}, 817 MULTI_VALUE_TYPE(kTouchEventsChoices)},
808 {"disable-touch-adjustment", 818 {"disable-touch-adjustment",
809 IDS_DISABLE_TOUCH_ADJUSTMENT_NAME, 819 IDS_DISABLE_TOUCH_ADJUSTMENT_NAME,
810 IDS_DISABLE_TOUCH_ADJUSTMENT_DESCRIPTION, 820 IDS_DISABLE_TOUCH_ADJUSTMENT_DESCRIPTION,
811 kOsWin | kOsLinux | kOsCrOS | kOsAndroid, 821 kOsWin | kOsLinux | kOsCrOS | kOsAndroid,
(...skipping 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after
2617 } 2627 }
2618 2628
2619 const Experiment* GetExperiments(size_t* count) { 2629 const Experiment* GetExperiments(size_t* count) {
2620 *count = num_experiments; 2630 *count = num_experiments;
2621 return experiments; 2631 return experiments;
2622 } 2632 }
2623 2633
2624 } // namespace testing 2634 } // namespace testing
2625 2635
2626 } // namespace about_flags 2636 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698