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 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2116 {"enable-unsafe-es3-apis", | 2116 {"enable-unsafe-es3-apis", |
2117 IDS_FLAGS_WEBGL2_NAME, | 2117 IDS_FLAGS_WEBGL2_NAME, |
2118 IDS_FLAGS_WEBGL2_DESCRIPTION, | 2118 IDS_FLAGS_WEBGL2_DESCRIPTION, |
2119 kOsAll, | 2119 kOsAll, |
2120 SINGLE_VALUE_TYPE(switches::kEnableUnsafeES3APIs)}, | 2120 SINGLE_VALUE_TYPE(switches::kEnableUnsafeES3APIs)}, |
2121 {"enable-webfonts-intervention", | 2121 {"enable-webfonts-intervention", |
2122 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_NAME, | 2122 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_NAME, |
2123 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_DESCRIPTION, | 2123 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_DESCRIPTION, |
2124 kOsAll, | 2124 kOsAll, |
2125 FEATURE_VALUE_TYPE(features::kWebFontsIntervention)}, | 2125 FEATURE_VALUE_TYPE(features::kWebFontsIntervention)}, |
| 2126 {"enable-pointer-events", // FLAGS:RECORD_UMA |
| 2127 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME, |
| 2128 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, |
| 2129 kOsAll, |
| 2130 FEATURE_VALUE_TYPE(features::kPointerEvents)}, |
2126 // NOTE: Adding new command-line switches requires adding corresponding | 2131 // NOTE: Adding new command-line switches requires adding corresponding |
2127 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2132 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2128 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2133 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2129 }; | 2134 }; |
2130 | 2135 |
2131 class FlagsStateSingleton { | 2136 class FlagsStateSingleton { |
2132 public: | 2137 public: |
2133 FlagsStateSingleton() | 2138 FlagsStateSingleton() |
2134 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2139 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
2135 ~FlagsStateSingleton() {} | 2140 ~FlagsStateSingleton() {} |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2329 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2334 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2330 | 2335 |
2331 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2336 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2332 *count = arraysize(kFeatureEntries); | 2337 *count = arraysize(kFeatureEntries); |
2333 return kFeatureEntries; | 2338 return kFeatureEntries; |
2334 } | 2339 } |
2335 | 2340 |
2336 } // namespace testing | 2341 } // namespace testing |
2337 | 2342 |
2338 } // namespace about_flags | 2343 } // namespace about_flags |
OLD | NEW |