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

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

Issue 2795703002: ui: Add debug flag to show composited layer borders in ChromeOS UI. (Closed)
Patch Set: add debug border bitset Created 3 years, 8 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
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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 const FeatureEntry::Choice kDataSaverPromptChoices[] = { 429 const FeatureEntry::Choice kDataSaverPromptChoices[] = {
430 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, 430 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
431 {flags_ui::kGenericExperimentChoiceEnabled, 431 {flags_ui::kGenericExperimentChoiceEnabled,
432 chromeos::switches::kEnableDataSaverPrompt, ""}, 432 chromeos::switches::kEnableDataSaverPrompt, ""},
433 {flags_ui::kGenericExperimentChoiceDisabled, 433 {flags_ui::kGenericExperimentChoiceDisabled,
434 chromeos::switches::kDisableDataSaverPrompt, ""}, 434 chromeos::switches::kDisableDataSaverPrompt, ""},
435 {flag_descriptions::kDatasaverPromptDemoMode, 435 {flag_descriptions::kDatasaverPromptDemoMode,
436 chromeos::switches::kEnableDataSaverPrompt, 436 chromeos::switches::kEnableDataSaverPrompt,
437 chromeos::switches::kDataSaverPromptDemoMode}, 437 chromeos::switches::kDataSaverPromptDemoMode},
438 }; 438 };
439
440 const FeatureEntry::Choice kUiShowCompositedLayerBordersChoices[] = {
441 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
442 {flag_descriptions::kUiShowCompositedLayerBordersRenderpass,
443 cc::switches::kUIShowCompositedLayerBorders, "renderpass"},
danakj 2017/04/13 15:25:51 should we introduce constants for these parameters
reveman 2017/04/13 17:00:46 Done.
444 {flag_descriptions::kUiShowCompositedLayerBordersSurface,
445 cc::switches::kUIShowCompositedLayerBorders, "surface"},
446 {flag_descriptions::kUiShowCompositedLayerBordersLayer,
447 cc::switches::kUIShowCompositedLayerBorders, "layer"},
448 {flag_descriptions::kUiShowCompositedLayerBordersAll,
449 cc::switches::kUIShowCompositedLayerBorders, "renderpass,surface,layer"}};
danakj 2017/04/13 15:25:51 maybe just make this "" and empty => all?
reveman 2017/04/13 17:00:46 Done.
439 #endif // OS_CHROMEOS 450 #endif // OS_CHROMEOS
440 451
441 const FeatureEntry::Choice kV8CacheOptionsChoices[] = { 452 const FeatureEntry::Choice kV8CacheOptionsChoices[] = {
442 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, 453 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
443 {flags_ui::kGenericExperimentChoiceDisabled, switches::kV8CacheOptions, 454 {flags_ui::kGenericExperimentChoiceDisabled, switches::kV8CacheOptions,
444 "none"}, 455 "none"},
445 {flag_descriptions::kV8CacheOptionsParse, switches::kV8CacheOptions, 456 {flag_descriptions::kV8CacheOptionsParse, switches::kV8CacheOptions,
446 "parse"}, 457 "parse"},
447 {flag_descriptions::kV8CacheOptionsCode, switches::kV8CacheOptions, "code"}, 458 {flag_descriptions::kV8CacheOptionsCode, switches::kV8CacheOptions, "code"},
448 }; 459 };
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 MULTI_VALUE_TYPE(kAshShelfColorSchemeChoices)}, 1171 MULTI_VALUE_TYPE(kAshShelfColorSchemeChoices)},
1161 #endif // USE_ASH 1172 #endif // USE_ASH
1162 #if defined(OS_CHROMEOS) 1173 #if defined(OS_CHROMEOS)
1163 {"material-design-ink-drop-animation-speed", 1174 {"material-design-ink-drop-animation-speed",
1164 flag_descriptions::kMaterialDesignInkDropAnimationSpeedName, 1175 flag_descriptions::kMaterialDesignInkDropAnimationSpeedName,
1165 flag_descriptions::kMaterialDesignInkDropAnimationSpeedDescription, 1176 flag_descriptions::kMaterialDesignInkDropAnimationSpeedDescription,
1166 kOsCrOS, MULTI_VALUE_TYPE(kAshMaterialDesignInkDropAnimationSpeed)}, 1177 kOsCrOS, MULTI_VALUE_TYPE(kAshMaterialDesignInkDropAnimationSpeed)},
1167 {"ui-slow-animations", flag_descriptions::kUiSlowAnimationsName, 1178 {"ui-slow-animations", flag_descriptions::kUiSlowAnimationsName,
1168 flag_descriptions::kUiSlowAnimationsDescription, kOsCrOS, 1179 flag_descriptions::kUiSlowAnimationsDescription, kOsCrOS,
1169 SINGLE_VALUE_TYPE(switches::kUISlowAnimations)}, 1180 SINGLE_VALUE_TYPE(switches::kUISlowAnimations)},
1181 {"ui-show-composited-layer-borders",
1182 flag_descriptions::kUiShowCompositedLayerBordersName,
1183 flag_descriptions::kUiShowCompositedLayerBordersDescription, kOsCrOS,
1184 MULTI_VALUE_TYPE(kUiShowCompositedLayerBordersChoices)},
1170 {"disable-cloud-import", flag_descriptions::kCloudImport, 1185 {"disable-cloud-import", flag_descriptions::kCloudImport,
1171 flag_descriptions::kCloudImportDescription, kOsCrOS, 1186 flag_descriptions::kCloudImportDescription, kOsCrOS,
1172 SINGLE_DISABLE_VALUE_TYPE(chromeos::switches::kDisableCloudImport)}, 1187 SINGLE_DISABLE_VALUE_TYPE(chromeos::switches::kDisableCloudImport)},
1173 {"enable-request-tablet-site", flag_descriptions::kRequestTabletSiteName, 1188 {"enable-request-tablet-site", flag_descriptions::kRequestTabletSiteName,
1174 flag_descriptions::kRequestTabletSiteDescription, kOsCrOS, 1189 flag_descriptions::kRequestTabletSiteDescription, kOsCrOS,
1175 SINGLE_VALUE_TYPE(chromeos::switches::kEnableRequestTabletSite)}, 1190 SINGLE_VALUE_TYPE(chromeos::switches::kEnableRequestTabletSite)},
1176 #endif // OS_CHROMEOS 1191 #endif // OS_CHROMEOS
1177 {"debug-packed-apps", flag_descriptions::kDebugPackedAppName, 1192 {"debug-packed-apps", flag_descriptions::kDebugPackedAppName,
1178 flag_descriptions::kDebugPackedAppDescription, kOsDesktop, 1193 flag_descriptions::kDebugPackedAppDescription, kOsDesktop,
1179 SINGLE_VALUE_TYPE(switches::kDebugPackedApps)}, 1194 SINGLE_VALUE_TYPE(switches::kDebugPackedApps)},
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
2721 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2736 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2722 2737
2723 const FeatureEntry* GetFeatureEntries(size_t* count) { 2738 const FeatureEntry* GetFeatureEntries(size_t* count) {
2724 *count = arraysize(kFeatureEntries); 2739 *count = arraysize(kFeatureEntries);
2725 return kFeatureEntries; 2740 return kFeatureEntries;
2726 } 2741 }
2727 2742
2728 } // namespace testing 2743 } // namespace testing
2729 2744
2730 } // namespace about_flags 2745 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698