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

Side by Side Diff: content/public/common/content_features.cc

Issue 2778693004: Remove navigator.vibrate without user gesture. (Closed)
Patch Set: remove debugging code 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "content/public/common/content_features.h" 6 #include "content/public/common/content_features.h"
7 7
8 namespace features { 8 namespace features {
9 9
10 // All features in alphabetical order. 10 // All features in alphabetical order.
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 // Enables token binding 229 // Enables token binding
230 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). 230 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt).
231 const base::Feature kTokenBinding{"token-binding", 231 const base::Feature kTokenBinding{"token-binding",
232 base::FEATURE_DISABLED_BY_DEFAULT}; 232 base::FEATURE_DISABLED_BY_DEFAULT};
233 233
234 // Enables touchpad and wheel scroll latching. 234 // Enables touchpad and wheel scroll latching.
235 const base::Feature kTouchpadAndWheelScrollLatching{ 235 const base::Feature kTouchpadAndWheelScrollLatching{
236 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT}; 236 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT};
237 237
238 // Controls whether vibrate requires user gesture.
239 const base::Feature kVibrateRequiresUserGesture{
240 "VibrateRequiresUserGesture", base::FEATURE_ENABLED_BY_DEFAULT};
241
238 // Enables VR UI. 242 // Enables VR UI.
239 const base::Feature kVrShell{"VrShell", base::FEATURE_DISABLED_BY_DEFAULT}; 243 const base::Feature kVrShell{"VrShell", base::FEATURE_DISABLED_BY_DEFAULT};
240 244
241 // Enable WebAssembly. 245 // Enable WebAssembly.
242 // http://webassembly.org/ 246 // http://webassembly.org/
243 const base::Feature kWebAssembly{"WebAssembly", 247 const base::Feature kWebAssembly{"WebAssembly",
244 base::FEATURE_DISABLED_BY_DEFAULT}; 248 base::FEATURE_DISABLED_BY_DEFAULT};
245 249
246 // If WebGL Image Chromium is allowed, this feature controls whether it is 250 // If WebGL Image Chromium is allowed, this feature controls whether it is
247 // enabled. 251 // enabled.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 #endif // !defined(OS_ANDROID) 323 #endif // !defined(OS_ANDROID)
320 324
321 #if defined(OS_WIN) 325 #if defined(OS_WIN)
322 // Emergency "off switch" for new Windows sandbox security mitigation, 326 // Emergency "off switch" for new Windows sandbox security mitigation,
323 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 327 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
324 const base::Feature kWinSboxDisableExtensionPoints{ 328 const base::Feature kWinSboxDisableExtensionPoints{
325 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 329 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
326 #endif 330 #endif
327 331
328 } // namespace features 332 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698