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

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

Issue 2778693004: Remove navigator.vibrate without user gesture. (Closed)
Patch Set: Move the flag name/description to const char* 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 | « chrome/browser/flag_descriptions.h ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2428 matching lines...) Expand 10 before | Expand all | Expand 10 after
2439 "for faster layout."; 2439 "for faster layout.";
2440 2440
2441 const char kFramebustingName[] = 2441 const char kFramebustingName[] =
2442 "Framebusting requires same-origin or a user gesture"; 2442 "Framebusting requires same-origin or a user gesture";
2443 2443
2444 const char kFramebustingDescription[] = 2444 const char kFramebustingDescription[] =
2445 "Don't permit an iframe to navigate the top level browsing context " 2445 "Don't permit an iframe to navigate the top level browsing context "
2446 "unless they are same-origin or the iframe is processing a user " 2446 "unless they are same-origin or the iframe is processing a user "
2447 "gesture."; 2447 "gesture.";
2448 2448
2449 const char kVibrateRequiresUserGestureName[] =
2450 "Requiring user gesture for the Vibration API";
2451
2452 const char kVibrateRequiresUserGestureDescription[] =
2453 "Blocking the Vibration API if there has no user gesture received on "
2454 "the frame or any embedded frame.";
2455
2449 #if defined(OS_ANDROID) 2456 #if defined(OS_ANDROID)
2450 2457
2451 const char kEnableVrShellName[] = "Enable Chrome VR."; 2458 const char kEnableVrShellName[] = "Enable Chrome VR.";
2452 2459
2453 const char kEnableVrShellDescription[] = 2460 const char kEnableVrShellDescription[] =
2454 "Allow browsing with a VR headset if available for this device."; 2461 "Allow browsing with a VR headset if available for this device.";
2455 2462
2456 #endif // defined(OS_ANDROID) 2463 #endif // defined(OS_ANDROID)
2457 2464
2458 // Web payments 2465 // Web payments
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
2907 const char kEnableEhvInputName[] = 2914 const char kEnableEhvInputName[] =
2908 "Emoji, handwriting and voice input on opt-in IME menu"; 2915 "Emoji, handwriting and voice input on opt-in IME menu";
2909 2916
2910 const char kEnableEhvInputDescription[] = 2917 const char kEnableEhvInputDescription[] =
2911 "Enable access to emoji, handwriting and voice input form opt-in IME " 2918 "Enable access to emoji, handwriting and voice input form opt-in IME "
2912 "menu."; 2919 "menu.";
2913 2920
2914 #endif // #if defined(OS_CHROMEOS) 2921 #endif // #if defined(OS_CHROMEOS)
2915 2922
2916 } // namespace flag_descriptions 2923 } // namespace flag_descriptions
OLDNEW
« no previous file with comments | « chrome/browser/flag_descriptions.h ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698