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

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

Issue 2778693004: Remove navigator.vibrate without user gesture. (Closed)
Patch Set: reformat again! 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 2469 matching lines...) Expand 10 before | Expand all | Expand 10 after
2480 "for faster layout."; 2480 "for faster layout.";
2481 2481
2482 const char kFramebustingName[] = 2482 const char kFramebustingName[] =
2483 "Framebusting requires same-origin or a user gesture"; 2483 "Framebusting requires same-origin or a user gesture";
2484 2484
2485 const char kFramebustingDescription[] = 2485 const char kFramebustingDescription[] =
2486 "Don't permit an iframe to navigate the top level browsing context " 2486 "Don't permit an iframe to navigate the top level browsing context "
2487 "unless they are same-origin or the iframe is processing a user " 2487 "unless they are same-origin or the iframe is processing a user "
2488 "gesture."; 2488 "gesture.";
2489 2489
2490 const char kVibrateRequiresUserGestureName[] =
2491 "Requiring user gesture for the Vibration API";
2492
2493 const char kVibrateRequiresUserGestureDescription[] =
2494 "Blocking the Vibration API if there has no user gesture received on "
mustaq 2017/04/13 14:28:34 Nit: s/Blocking/Block/
binlu 2017/04/13 15:11:11 Done.
2495 "the frame or any embedded frame.";
2496
2490 #if defined(OS_ANDROID) 2497 #if defined(OS_ANDROID)
2491 2498
2492 const char kEnableVrShellName[] = "Enable Chrome VR."; 2499 const char kEnableVrShellName[] = "Enable Chrome VR.";
2493 2500
2494 const char kEnableVrShellDescription[] = 2501 const char kEnableVrShellDescription[] =
2495 "Allow browsing with a VR headset if available for this device."; 2502 "Allow browsing with a VR headset if available for this device.";
2496 2503
2497 #endif // defined(OS_ANDROID) 2504 #endif // defined(OS_ANDROID)
2498 2505
2499 // Web payments 2506 // Web payments
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
2977 const char kEnableCopylessPasteDescription[] = 2984 const char kEnableCopylessPasteDescription[] =
2978 "Provide suggestions for text input, based on your recent context. For " 2985 "Provide suggestions for text input, based on your recent context. For "
2979 "example, if you looked at a restaurant website and switched to the Maps " 2986 "example, if you looked at a restaurant website and switched to the Maps "
2980 "app, the keyboard would offer the name of that restaurant as a suggestion " 2987 "app, the keyboard would offer the name of that restaurant as a suggestion "
2981 "to enter into the search bar. The data is indexed locally, and never sent " 2988 "to enter into the search bar. The data is indexed locally, and never sent "
2982 "to the server. It's disabled in incognito mode."; 2989 "to the server. It's disabled in incognito mode.";
2983 2990
2984 #endif // defined(OS_ANDROID) 2991 #endif // defined(OS_ANDROID)
2985 2992
2986 } // namespace flag_descriptions 2993 } // namespace flag_descriptions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698