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

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

Issue 1684903003: UI Compositor: Expose ui-disable-compositor-animation-timelines in about/flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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') | tools/metrics/histograms/histograms.xml » ('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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "components/tracing/tracing_switches.h" 54 #include "components/tracing/tracing_switches.h"
55 #include "components/version_info/version_info.h" 55 #include "components/version_info/version_info.h"
56 #include "content/public/browser/user_metrics.h" 56 #include "content/public/browser/user_metrics.h"
57 #include "content/public/common/content_features.h" 57 #include "content/public/common/content_features.h"
58 #include "content/public/common/content_switches.h" 58 #include "content/public/common/content_switches.h"
59 #include "grit/components_strings.h" 59 #include "grit/components_strings.h"
60 #include "media/base/media_switches.h" 60 #include "media/base/media_switches.h"
61 #include "media/midi/midi_switches.h" 61 #include "media/midi/midi_switches.h"
62 #include "ui/base/l10n/l10n_util.h" 62 #include "ui/base/l10n/l10n_util.h"
63 #include "ui/base/ui_base_switches.h" 63 #include "ui/base/ui_base_switches.h"
64 #include "ui/compositor/compositor_switches.h"
64 #include "ui/display/display_switches.h" 65 #include "ui/display/display_switches.h"
65 #include "ui/events/event_switches.h" 66 #include "ui/events/event_switches.h"
66 #include "ui/gfx/switches.h" 67 #include "ui/gfx/switches.h"
67 #include "ui/gl/gl_switches.h" 68 #include "ui/gl/gl_switches.h"
68 #include "ui/keyboard/keyboard_switches.h" 69 #include "ui/keyboard/keyboard_switches.h"
69 #include "ui/native_theme/native_theme_switches.h" 70 #include "ui/native_theme/native_theme_switches.h"
70 #include "ui/views/views_switches.h" 71 #include "ui/views/views_switches.h"
71 72
72 #if defined(OS_ANDROID) 73 #if defined(OS_ANDROID)
73 #include "chrome/browser/android/chrome_feature_list.h" 74 #include "chrome/browser/android/chrome_feature_list.h"
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 SINGLE_VALUE_TYPE(switches::kEnableWebFontsInterventionTrigger)}, 1781 SINGLE_VALUE_TYPE(switches::kEnableWebFontsInterventionTrigger)},
1781 {"enable-grouped-history", IDS_FLAGS_ENABLE_GROUPED_HISTORY_NAME, 1782 {"enable-grouped-history", IDS_FLAGS_ENABLE_GROUPED_HISTORY_NAME,
1782 IDS_FLAGS_ENABLE_GROUPED_HISTORY_DESCRIPTION, kOsDesktop, 1783 IDS_FLAGS_ENABLE_GROUPED_HISTORY_DESCRIPTION, kOsDesktop,
1783 SINGLE_VALUE_TYPE(switches::kHistoryEnableGroupByDomain)}, 1784 SINGLE_VALUE_TYPE(switches::kHistoryEnableGroupByDomain)},
1784 {"enable-token-binding", IDS_FLAGS_ENABLE_TOKEN_BINDING_NAME, 1785 {"enable-token-binding", IDS_FLAGS_ENABLE_TOKEN_BINDING_NAME,
1785 IDS_FLAGS_ENABLE_TOKEN_BINDING_DESCRIPTION, kOsAll, 1786 IDS_FLAGS_ENABLE_TOKEN_BINDING_DESCRIPTION, kOsAll,
1786 FEATURE_VALUE_TYPE(features::kTokenBinding)}, 1787 FEATURE_VALUE_TYPE(features::kTokenBinding)},
1787 {"enable-scroll-anchoring", IDS_FLAGS_ENABLE_SCROLL_ANCHORING_NAME, 1788 {"enable-scroll-anchoring", IDS_FLAGS_ENABLE_SCROLL_ANCHORING_NAME,
1788 IDS_FLAGS_ENABLE_SCROLL_ANCHORING_DESCRIPTION, kOsAll, 1789 IDS_FLAGS_ENABLE_SCROLL_ANCHORING_DESCRIPTION, kOsAll,
1789 FEATURE_VALUE_TYPE(features::kScrollAnchoring)}, 1790 FEATURE_VALUE_TYPE(features::kScrollAnchoring)},
1791 #if !defined(OS_ANDROID)
1792 {"ui-disable-compositor-animation-timelines",
1793 IDS_FLAGS_DISABLE_UI_COMPOSITOR_ANIMATION_TIMELINES,
1794 IDS_FLAGS_DISABLE_UI_COMPOSITOR_ANIMATION_TIMELINES_DESCRIPTION,
1795 kOsDesktop, SINGLE_DISABLE_VALUE_TYPE(
1796 switches::kUIDisableCompositorAnimationTimelines)},
1797 #endif // !defined(OS_ANDROID)
1790 // NOTE: Adding new command-line switches requires adding corresponding 1798 // NOTE: Adding new command-line switches requires adding corresponding
1791 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1799 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1792 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1800 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1793 }; 1801 };
1794 1802
1795 class FlagsStateSingleton { 1803 class FlagsStateSingleton {
1796 public: 1804 public:
1797 FlagsStateSingleton() 1805 FlagsStateSingleton()
1798 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 1806 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
1799 ~FlagsStateSingleton() {} 1807 ~FlagsStateSingleton() {}
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2001 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2009 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2002 2010
2003 const FeatureEntry* GetFeatureEntries(size_t* count) { 2011 const FeatureEntry* GetFeatureEntries(size_t* count) {
2004 *count = arraysize(kFeatureEntries); 2012 *count = arraysize(kFeatureEntries);
2005 return kFeatureEntries; 2013 return kFeatureEntries;
2006 } 2014 }
2007 2015
2008 } // namespace testing 2016 } // namespace testing
2009 2017
2010 } // namespace about_flags 2018 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698