OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |