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

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

Issue 2778693004: Remove navigator.vibrate without user gesture. (Closed)
Patch Set: refactor SimulateUserClick 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 | « no previous file | chrome/browser/flag_descriptions.h » ('j') | chrome/browser/flag_descriptions.cc » ('J')
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 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 flag_descriptions::kPassiveEventListenersDueToFlingName, 2262 flag_descriptions::kPassiveEventListenersDueToFlingName,
2263 flag_descriptions::kPassiveEventListenersDueToFlingDescription, kOsAll, 2263 flag_descriptions::kPassiveEventListenersDueToFlingDescription, kOsAll,
2264 FEATURE_VALUE_TYPE(features::kPassiveEventListenersDueToFling)}, 2264 FEATURE_VALUE_TYPE(features::kPassiveEventListenersDueToFling)},
2265 {"enable-font-cache-scaling", flag_descriptions::kFontCacheScalingName, 2265 {"enable-font-cache-scaling", flag_descriptions::kFontCacheScalingName,
2266 flag_descriptions::kFontCacheScalingDescription, kOsAll, 2266 flag_descriptions::kFontCacheScalingDescription, kOsAll,
2267 FEATURE_VALUE_TYPE(features::kFontCacheScaling)}, 2267 FEATURE_VALUE_TYPE(features::kFontCacheScaling)},
2268 {"enable-framebusting-needs-sameorigin-or-usergesture", 2268 {"enable-framebusting-needs-sameorigin-or-usergesture",
2269 flag_descriptions::kFramebustingName, 2269 flag_descriptions::kFramebustingName,
2270 flag_descriptions::kFramebustingDescription, kOsAll, 2270 flag_descriptions::kFramebustingDescription, kOsAll,
2271 FEATURE_VALUE_TYPE(features::kFramebustingNeedsSameOriginOrUserGesture)}, 2271 FEATURE_VALUE_TYPE(features::kFramebustingNeedsSameOriginOrUserGesture)},
2272 {"vibrate-requires-user-gesture",
2273 flag_descriptions::kVibrateRequiresUserGestureName,
2274 flag_descriptions::kVibrateRequiresUserGestureDescription, kOsAll,
2275 FEATURE_VALUE_TYPE(features::kVibrateRequiresUserGesture)},
2272 {"web-payments", flag_descriptions::kWebPaymentsName, 2276 {"web-payments", flag_descriptions::kWebPaymentsName,
2273 flag_descriptions::kWebPaymentsDescription, kOsDesktop, 2277 flag_descriptions::kWebPaymentsDescription, kOsDesktop,
2274 FEATURE_VALUE_TYPE(features::kWebPayments)}, 2278 FEATURE_VALUE_TYPE(features::kWebPayments)},
2275 #if defined(OS_ANDROID) 2279 #if defined(OS_ANDROID)
2276 {"enable-android-pay-integration-v1", 2280 {"enable-android-pay-integration-v1",
2277 flag_descriptions::kEnableAndroidPayIntegrationV1Name, 2281 flag_descriptions::kEnableAndroidPayIntegrationV1Name,
2278 flag_descriptions::kEnableAndroidPayIntegrationV1Description, kOsAndroid, 2282 flag_descriptions::kEnableAndroidPayIntegrationV1Description, kOsAndroid,
2279 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV1)}, 2283 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV1)},
2280 {"enable-android-pay-integration-v2", 2284 {"enable-android-pay-integration-v2",
2281 flag_descriptions::kEnableAndroidPayIntegrationV2Name, 2285 flag_descriptions::kEnableAndroidPayIntegrationV2Name,
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
2851 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2855 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2852 2856
2853 const FeatureEntry* GetFeatureEntries(size_t* count) { 2857 const FeatureEntry* GetFeatureEntries(size_t* count) {
2854 *count = arraysize(kFeatureEntries); 2858 *count = arraysize(kFeatureEntries);
2855 return kFeatureEntries; 2859 return kFeatureEntries;
2856 } 2860 }
2857 2861
2858 } // namespace testing 2862 } // namespace testing
2859 2863
2860 } // namespace about_flags 2864 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | chrome/browser/flag_descriptions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698