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

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

Issue 1568913003: Add enable flag for pointer events in about://flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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 | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.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 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after
1812 IDS_FLAGS_TAB_DETACHING_IN_FULLSCREEN_NAME, 1812 IDS_FLAGS_TAB_DETACHING_IN_FULLSCREEN_NAME,
1813 IDS_FLAGS_TAB_DETACHING_IN_FULLSCREEN_DESCRIPTION, kOsMac, 1813 IDS_FLAGS_TAB_DETACHING_IN_FULLSCREEN_DESCRIPTION, kOsMac,
1814 SINGLE_VALUE_TYPE(switches::kEnableFullscreenTabDetaching)}, 1814 SINGLE_VALUE_TYPE(switches::kEnableFullscreenTabDetaching)},
1815 #endif 1815 #endif
1816 #if defined(OS_ANDROID) 1816 #if defined(OS_ANDROID)
1817 {"media-style-notification", 1817 {"media-style-notification",
1818 IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_NAME, 1818 IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_NAME,
1819 IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_DESCRIPTION, kOsAndroid, 1819 IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_DESCRIPTION, kOsAndroid,
1820 FEATURE_VALUE_TYPE(chrome::android::kMediaStyleNotification)}, 1820 FEATURE_VALUE_TYPE(chrome::android::kMediaStyleNotification)},
1821 #endif 1821 #endif
1822 {"enable-pointer-events", // FLAGS:RECORD_UMA
1823 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME,
1824 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION,
1825 kOsAll,
1826 FEATURE_VALUE_TYPE(features::kPointerEvents)},
1822 // NOTE: Adding new command-line switches requires adding corresponding 1827 // NOTE: Adding new command-line switches requires adding corresponding
1823 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1828 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1824 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1829 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1825 }; 1830 };
1826 1831
1827 class FlagsStateSingleton { 1832 class FlagsStateSingleton {
1828 public: 1833 public:
1829 FlagsStateSingleton() 1834 FlagsStateSingleton()
1830 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 1835 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
1831 ~FlagsStateSingleton() {} 1836 ~FlagsStateSingleton() {}
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2011 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2016 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2012 2017
2013 const FeatureEntry* GetFeatureEntries(size_t* count) { 2018 const FeatureEntry* GetFeatureEntries(size_t* count) {
2014 *count = arraysize(kFeatureEntries); 2019 *count = arraysize(kFeatureEntries);
2015 return kFeatureEntries; 2020 return kFeatureEntries;
2016 } 2021 }
2017 2022
2018 } // namespace testing 2023 } // namespace testing
2019 2024
2020 } // namespace about_flags 2025 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698