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

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: nits 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
« no previous file with comments | « cc/layers/surface_layer_impl.cc ('k') | chrome/browser/flag_descriptions.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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 const FeatureEntry::Choice kDataSaverPromptChoices[] = { 436 const FeatureEntry::Choice kDataSaverPromptChoices[] = {
437 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, 437 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
438 {flags_ui::kGenericExperimentChoiceEnabled, 438 {flags_ui::kGenericExperimentChoiceEnabled,
439 chromeos::switches::kEnableDataSaverPrompt, ""}, 439 chromeos::switches::kEnableDataSaverPrompt, ""},
440 {flags_ui::kGenericExperimentChoiceDisabled, 440 {flags_ui::kGenericExperimentChoiceDisabled,
441 chromeos::switches::kDisableDataSaverPrompt, ""}, 441 chromeos::switches::kDisableDataSaverPrompt, ""},
442 {flag_descriptions::kDatasaverPromptDemoMode, 442 {flag_descriptions::kDatasaverPromptDemoMode,
443 chromeos::switches::kEnableDataSaverPrompt, 443 chromeos::switches::kEnableDataSaverPrompt,
444 chromeos::switches::kDataSaverPromptDemoMode}, 444 chromeos::switches::kDataSaverPromptDemoMode},
445 }; 445 };
446
447 const FeatureEntry::Choice kUiShowCompositedLayerBordersChoices[] = {
448 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
449 {flag_descriptions::kUiShowCompositedLayerBordersRenderPass,
450 cc::switches::kUIShowCompositedLayerBorders,
451 cc::switches::kCompositedRenderPassBorders},
452 {flag_descriptions::kUiShowCompositedLayerBordersSurface,
453 cc::switches::kUIShowCompositedLayerBorders,
454 cc::switches::kCompositedSurfaceBorders},
455 {flag_descriptions::kUiShowCompositedLayerBordersLayer,
456 cc::switches::kUIShowCompositedLayerBorders,
457 cc::switches::kCompositedLayerBorders},
458 {flag_descriptions::kUiShowCompositedLayerBordersAll,
459 cc::switches::kUIShowCompositedLayerBorders, ""}};
446 #endif // OS_CHROMEOS 460 #endif // OS_CHROMEOS
447 461
448 const FeatureEntry::Choice kV8CacheOptionsChoices[] = { 462 const FeatureEntry::Choice kV8CacheOptionsChoices[] = {
449 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, 463 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
450 {flags_ui::kGenericExperimentChoiceDisabled, switches::kV8CacheOptions, 464 {flags_ui::kGenericExperimentChoiceDisabled, switches::kV8CacheOptions,
451 "none"}, 465 "none"},
452 {flag_descriptions::kV8CacheOptionsParse, switches::kV8CacheOptions, 466 {flag_descriptions::kV8CacheOptionsParse, switches::kV8CacheOptions,
453 "parse"}, 467 "parse"},
454 {flag_descriptions::kV8CacheOptionsCode, switches::kV8CacheOptions, "code"}, 468 {flag_descriptions::kV8CacheOptionsCode, switches::kV8CacheOptions, "code"},
455 }; 469 };
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 MULTI_VALUE_TYPE(kAshShelfColorSchemeChoices)}, 1262 MULTI_VALUE_TYPE(kAshShelfColorSchemeChoices)},
1249 #endif // USE_ASH 1263 #endif // USE_ASH
1250 #if defined(OS_CHROMEOS) 1264 #if defined(OS_CHROMEOS)
1251 {"material-design-ink-drop-animation-speed", 1265 {"material-design-ink-drop-animation-speed",
1252 flag_descriptions::kMaterialDesignInkDropAnimationSpeedName, 1266 flag_descriptions::kMaterialDesignInkDropAnimationSpeedName,
1253 flag_descriptions::kMaterialDesignInkDropAnimationSpeedDescription, 1267 flag_descriptions::kMaterialDesignInkDropAnimationSpeedDescription,
1254 kOsCrOS, MULTI_VALUE_TYPE(kAshMaterialDesignInkDropAnimationSpeed)}, 1268 kOsCrOS, MULTI_VALUE_TYPE(kAshMaterialDesignInkDropAnimationSpeed)},
1255 {"ui-slow-animations", flag_descriptions::kUiSlowAnimationsName, 1269 {"ui-slow-animations", flag_descriptions::kUiSlowAnimationsName,
1256 flag_descriptions::kUiSlowAnimationsDescription, kOsCrOS, 1270 flag_descriptions::kUiSlowAnimationsDescription, kOsCrOS,
1257 SINGLE_VALUE_TYPE(switches::kUISlowAnimations)}, 1271 SINGLE_VALUE_TYPE(switches::kUISlowAnimations)},
1272 {"ui-show-composited-layer-borders",
1273 flag_descriptions::kUiShowCompositedLayerBordersName,
1274 flag_descriptions::kUiShowCompositedLayerBordersDescription, kOsCrOS,
1275 MULTI_VALUE_TYPE(kUiShowCompositedLayerBordersChoices)},
1258 {"disable-cloud-import", flag_descriptions::kCloudImport, 1276 {"disable-cloud-import", flag_descriptions::kCloudImport,
1259 flag_descriptions::kCloudImportDescription, kOsCrOS, 1277 flag_descriptions::kCloudImportDescription, kOsCrOS,
1260 SINGLE_DISABLE_VALUE_TYPE(chromeos::switches::kDisableCloudImport)}, 1278 SINGLE_DISABLE_VALUE_TYPE(chromeos::switches::kDisableCloudImport)},
1261 {"enable-request-tablet-site", flag_descriptions::kRequestTabletSiteName, 1279 {"enable-request-tablet-site", flag_descriptions::kRequestTabletSiteName,
1262 flag_descriptions::kRequestTabletSiteDescription, kOsCrOS, 1280 flag_descriptions::kRequestTabletSiteDescription, kOsCrOS,
1263 SINGLE_VALUE_TYPE(chromeos::switches::kEnableRequestTabletSite)}, 1281 SINGLE_VALUE_TYPE(chromeos::switches::kEnableRequestTabletSite)},
1264 #endif // OS_CHROMEOS 1282 #endif // OS_CHROMEOS
1265 {"debug-packed-apps", flag_descriptions::kDebugPackedAppName, 1283 {"debug-packed-apps", flag_descriptions::kDebugPackedAppName,
1266 flag_descriptions::kDebugPackedAppDescription, kOsDesktop, 1284 flag_descriptions::kDebugPackedAppDescription, kOsDesktop,
1267 SINGLE_VALUE_TYPE(switches::kDebugPackedApps)}, 1285 SINGLE_VALUE_TYPE(switches::kDebugPackedApps)},
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after
2874 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2892 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2875 2893
2876 const FeatureEntry* GetFeatureEntries(size_t* count) { 2894 const FeatureEntry* GetFeatureEntries(size_t* count) {
2877 *count = arraysize(kFeatureEntries); 2895 *count = arraysize(kFeatureEntries);
2878 return kFeatureEntries; 2896 return kFeatureEntries;
2879 } 2897 }
2880 2898
2881 } // namespace testing 2899 } // namespace testing
2882 2900
2883 } // namespace about_flags 2901 } // namespace about_flags
OLDNEW
« no previous file with comments | « cc/layers/surface_layer_impl.cc ('k') | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698