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

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

Issue 1921133002: Adds ash::MaterialDesignController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds ash::MaterialDesignController (CHECK_* -> DCHECK_*) Created 4 years, 7 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/browser/chrome_browser_main.cc » ('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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 { IDS_FLAGS_TOP_CHROME_MD_MATERIAL, 356 { IDS_FLAGS_TOP_CHROME_MD_MATERIAL,
357 switches::kTopChromeMD, 357 switches::kTopChromeMD,
358 switches::kTopChromeMDMaterial }, 358 switches::kTopChromeMDMaterial },
359 { IDS_FLAGS_TOP_CHROME_MD_MATERIAL_HYBRID, 359 { IDS_FLAGS_TOP_CHROME_MD_MATERIAL_HYBRID,
360 switches::kTopChromeMD, 360 switches::kTopChromeMD,
361 switches::kTopChromeMDMaterialHybrid }, 361 switches::kTopChromeMDMaterialHybrid },
362 }; 362 };
363 #endif 363 #endif
364 364
365 #if defined(OS_CHROMEOS) 365 #if defined(OS_CHROMEOS)
366
367 const FeatureEntry::Choice kAshMaterialDesignChoices[] = {
368 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
369 {IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, ash::switches::kAshMaterialDesign,
370 ash::switches::kAshMaterialDesignDisabled},
371 {IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, ash::switches::kAshMaterialDesign,
372 ash::switches::kAshMaterialDesignEnabled},
373 {IDS_FLAGS_ASH_MD_EXPERIMENTAL, ash::switches::kAshMaterialDesign,
374 ash::switches::kAshMaterialDesignExperimental},
375 };
376
366 const FeatureEntry::Choice kAshMaterialDesignInkDropAnimationSpeed[] = { 377 const FeatureEntry::Choice kAshMaterialDesignInkDropAnimationSpeed[] = {
367 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, 378 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
368 {IDS_FLAGS_MATERIAL_DESIGN_INK_DROP_ANIMATION_FAST, 379 {IDS_FLAGS_MATERIAL_DESIGN_INK_DROP_ANIMATION_FAST,
369 switches::kMaterialDesignInkDropAnimationSpeed, 380 switches::kMaterialDesignInkDropAnimationSpeed,
370 switches::kMaterialDesignInkDropAnimationSpeedFast}, 381 switches::kMaterialDesignInkDropAnimationSpeedFast},
371 {IDS_FLAGS_MATERIAL_DESIGN_INK_DROP_ANIMATION_SLOW, 382 {IDS_FLAGS_MATERIAL_DESIGN_INK_DROP_ANIMATION_SLOW,
372 switches::kMaterialDesignInkDropAnimationSpeed, 383 switches::kMaterialDesignInkDropAnimationSpeed,
373 switches::kMaterialDesignInkDropAnimationSpeedSlow}}; 384 switches::kMaterialDesignInkDropAnimationSpeedSlow}};
374 385
375 const FeatureEntry::Choice kDataSaverPromptChoices[] = { 386 const FeatureEntry::Choice kDataSaverPromptChoices[] = {
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 "disable-touch-feedback", IDS_FLAGS_TOUCH_FEEDBACK_NAME, 871 "disable-touch-feedback", IDS_FLAGS_TOUCH_FEEDBACK_NAME,
861 IDS_FLAGS_TOUCH_FEEDBACK_DESCRIPTION, kOsCrOS, 872 IDS_FLAGS_TOUCH_FEEDBACK_DESCRIPTION, kOsCrOS,
862 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableTouchFeedback), 873 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableTouchFeedback),
863 }, 874 },
864 { 875 {
865 "ash-enable-mirrored-screen", IDS_FLAGS_ASH_ENABLE_MIRRORED_SCREEN_NAME, 876 "ash-enable-mirrored-screen", IDS_FLAGS_ASH_ENABLE_MIRRORED_SCREEN_NAME,
866 IDS_FLAGS_ASH_ENABLE_MIRRORED_SCREEN_DESCRIPTION, kOsCrOS, 877 IDS_FLAGS_ASH_ENABLE_MIRRORED_SCREEN_DESCRIPTION, kOsCrOS,
867 SINGLE_VALUE_TYPE(ash::switches::kAshEnableMirroredScreen), 878 SINGLE_VALUE_TYPE(ash::switches::kAshEnableMirroredScreen),
868 }, 879 },
869 { 880 {
881 "ash-md", IDS_FLAGS_ASH_MD, IDS_FLAGS_ASH_MD_DESCRIPTION, kOsCrOS,
882 MULTI_VALUE_TYPE(kAshMaterialDesignChoices)},
883 {
870 "ash-stable-overview-order", IDS_FLAGS_ASH_STABLE_OVERVIEW_ORDER_NAME, 884 "ash-stable-overview-order", IDS_FLAGS_ASH_STABLE_OVERVIEW_ORDER_NAME,
871 IDS_FLAGS_ASH_STABLE_OVERVIEW_ORDER_DESCRIPTION, kOsCrOS, 885 IDS_FLAGS_ASH_STABLE_OVERVIEW_ORDER_DESCRIPTION, kOsCrOS,
872 ENABLE_DISABLE_VALUE_TYPE( 886 ENABLE_DISABLE_VALUE_TYPE(
873 ash::switches::kAshEnableStableOverviewOrder, 887 ash::switches::kAshEnableStableOverviewOrder,
874 ash::switches::kAshDisableStableOverviewOrder), 888 ash::switches::kAshDisableStableOverviewOrder),
875 }, 889 },
876 #endif // defined(USE_ASH) 890 #endif // defined(USE_ASH)
877 #if defined(OS_CHROMEOS) 891 #if defined(OS_CHROMEOS)
878 {"material-design-ink-drop-animation-speed", 892 {"material-design-ink-drop-animation-speed",
879 IDS_FLAGS_MATERIAL_DESIGN_INK_DROP_ANIMATION_SPEED_NAME, 893 IDS_FLAGS_MATERIAL_DESIGN_INK_DROP_ANIMATION_SPEED_NAME,
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2011 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2025 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2012 2026
2013 const FeatureEntry* GetFeatureEntries(size_t* count) { 2027 const FeatureEntry* GetFeatureEntries(size_t* count) {
2014 *count = arraysize(kFeatureEntries); 2028 *count = arraysize(kFeatureEntries);
2015 return kFeatureEntries; 2029 return kFeatureEntries;
2016 } 2030 }
2017 2031
2018 } // namespace testing 2032 } // namespace testing
2019 2033
2020 } // namespace about_flags 2034 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698