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

Side by Side Diff: chrome/browser/flag_descriptions.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/flag_descriptions.h" 5 #include "chrome/browser/flag_descriptions.h"
6 6
7 namespace flag_descriptions { 7 namespace flag_descriptions {
8 8
9 // Material Design version of chrome://bookmarks 9 // Material Design version of chrome://bookmarks
10 10
(...skipping 2495 matching lines...) Expand 10 before | Expand all | Expand 10 after
2506 "for faster layout."; 2506 "for faster layout.";
2507 2507
2508 const char kFramebustingName[] = 2508 const char kFramebustingName[] =
2509 "Framebusting requires same-origin or a user gesture"; 2509 "Framebusting requires same-origin or a user gesture";
2510 2510
2511 const char kFramebustingDescription[] = 2511 const char kFramebustingDescription[] =
2512 "Don't permit an iframe to navigate the top level browsing context " 2512 "Don't permit an iframe to navigate the top level browsing context "
2513 "unless they are same-origin or the iframe is processing a user " 2513 "unless they are same-origin or the iframe is processing a user "
2514 "gesture."; 2514 "gesture.";
2515 2515
2516 const char kVibrateRequiresUserGestureName[] =
2517 "Requiring user gesture for the Vibration API";
2518
2519 const char kVibrateRequiresUserGestureDescription[] =
2520 "Block the Vibration API if no user gesture has been received on "
2521 "the frame or any embedded frame.";
2522
2516 #if defined(OS_ANDROID) 2523 #if defined(OS_ANDROID)
2517 2524
2518 const char kEnableVrShellName[] = "Enable Chrome VR."; 2525 const char kEnableVrShellName[] = "Enable Chrome VR.";
2519 2526
2520 const char kEnableVrShellDescription[] = 2527 const char kEnableVrShellDescription[] =
2521 "Allow browsing with a VR headset if available for this device."; 2528 "Allow browsing with a VR headset if available for this device.";
2522 2529
2523 #endif // defined(OS_ANDROID) 2530 #endif // defined(OS_ANDROID)
2524 2531
2525 // Web payments 2532 // Web payments
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
3013 const char kEnableCopylessPasteDescription[] = 3020 const char kEnableCopylessPasteDescription[] =
3014 "Provide suggestions for text input, based on your recent context. For " 3021 "Provide suggestions for text input, based on your recent context. For "
3015 "example, if you looked at a restaurant website and switched to the Maps " 3022 "example, if you looked at a restaurant website and switched to the Maps "
3016 "app, the keyboard would offer the name of that restaurant as a suggestion " 3023 "app, the keyboard would offer the name of that restaurant as a suggestion "
3017 "to enter into the search bar. The data is indexed locally, and never sent " 3024 "to enter into the search bar. The data is indexed locally, and never sent "
3018 "to the server. It's disabled in incognito mode."; 3025 "to the server. It's disabled in incognito mode.";
3019 3026
3020 #endif // defined(OS_ANDROID) 3027 #endif // defined(OS_ANDROID)
3021 3028
3022 } // namespace flag_descriptions 3029 } // namespace flag_descriptions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698