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

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

Issue 2778693004: Remove navigator.vibrate without user gesture. (Closed)
Patch Set: rebase 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
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 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after
2330 flag_descriptions::kPassiveEventListenersDueToFlingName, 2330 flag_descriptions::kPassiveEventListenersDueToFlingName,
2331 flag_descriptions::kPassiveEventListenersDueToFlingDescription, kOsAll, 2331 flag_descriptions::kPassiveEventListenersDueToFlingDescription, kOsAll,
2332 FEATURE_VALUE_TYPE(features::kPassiveEventListenersDueToFling)}, 2332 FEATURE_VALUE_TYPE(features::kPassiveEventListenersDueToFling)},
2333 {"enable-font-cache-scaling", flag_descriptions::kFontCacheScalingName, 2333 {"enable-font-cache-scaling", flag_descriptions::kFontCacheScalingName,
2334 flag_descriptions::kFontCacheScalingDescription, kOsAll, 2334 flag_descriptions::kFontCacheScalingDescription, kOsAll,
2335 FEATURE_VALUE_TYPE(features::kFontCacheScaling)}, 2335 FEATURE_VALUE_TYPE(features::kFontCacheScaling)},
2336 {"enable-framebusting-needs-sameorigin-or-usergesture", 2336 {"enable-framebusting-needs-sameorigin-or-usergesture",
2337 flag_descriptions::kFramebustingName, 2337 flag_descriptions::kFramebustingName,
2338 flag_descriptions::kFramebustingDescription, kOsAll, 2338 flag_descriptions::kFramebustingDescription, kOsAll,
2339 FEATURE_VALUE_TYPE(features::kFramebustingNeedsSameOriginOrUserGesture)}, 2339 FEATURE_VALUE_TYPE(features::kFramebustingNeedsSameOriginOrUserGesture)},
2340 {"vibrate-requires-user-gesture",
2341 flag_descriptions::kVibrateRequiresUserGestureName,
2342 flag_descriptions::kVibrateRequiresUserGestureDescription, kOsAll,
2343 FEATURE_VALUE_TYPE(features::kVibrateRequiresUserGesture)},
2340 {"web-payments", flag_descriptions::kWebPaymentsName, 2344 {"web-payments", flag_descriptions::kWebPaymentsName,
2341 flag_descriptions::kWebPaymentsDescription, kOsDesktop, 2345 flag_descriptions::kWebPaymentsDescription, kOsDesktop,
2342 FEATURE_VALUE_TYPE(features::kWebPayments)}, 2346 FEATURE_VALUE_TYPE(features::kWebPayments)},
2343 #if defined(OS_ANDROID) 2347 #if defined(OS_ANDROID)
2344 {"enable-android-pay-integration-v1", 2348 {"enable-android-pay-integration-v1",
2345 flag_descriptions::kEnableAndroidPayIntegrationV1Name, 2349 flag_descriptions::kEnableAndroidPayIntegrationV1Name,
2346 flag_descriptions::kEnableAndroidPayIntegrationV1Description, kOsAndroid, 2350 flag_descriptions::kEnableAndroidPayIntegrationV1Description, kOsAndroid,
2347 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV1)}, 2351 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV1)},
2348 {"enable-android-pay-integration-v2", 2352 {"enable-android-pay-integration-v2",
2349 flag_descriptions::kEnableAndroidPayIntegrationV2Name, 2353 flag_descriptions::kEnableAndroidPayIntegrationV2Name,
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
2939 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2943 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2940 2944
2941 const FeatureEntry* GetFeatureEntries(size_t* count) { 2945 const FeatureEntry* GetFeatureEntries(size_t* count) {
2942 *count = arraysize(kFeatureEntries); 2946 *count = arraysize(kFeatureEntries);
2943 return kFeatureEntries; 2947 return kFeatureEntries;
2944 } 2948 }
2945 2949
2946 } // namespace testing 2950 } // namespace testing
2947 2951
2948 } // namespace about_flags 2952 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698