| OLD | NEW |
| 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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 | 638 |
| 639 const char kEnableTokenBindingDescription[] = "Enable Token Binding support."; | 639 const char kEnableTokenBindingDescription[] = "Enable Token Binding support."; |
| 640 | 640 |
| 641 const char kGestureRequirementForMediaPlaybackName[] = | 641 const char kGestureRequirementForMediaPlaybackName[] = |
| 642 "Gesture requirement for media playback"; | 642 "Gesture requirement for media playback"; |
| 643 | 643 |
| 644 const char kGestureRequirementForMediaPlaybackDescription[] = | 644 const char kGestureRequirementForMediaPlaybackDescription[] = |
| 645 "User gesture requirement for playing media elements. Disabling this " | 645 "User gesture requirement for playing media elements. Disabling this " |
| 646 "will allow autoplay to work."; | 646 "will allow autoplay to work."; |
| 647 | 647 |
| 648 #if !defined(OS_ANDROID) | |
| 649 | |
| 650 const char kCrossOriginMediaPlaybackRequiresUserGestureName[] = | |
| 651 "Media playback in cross-origin iframes requires user gesture"; | |
| 652 | |
| 653 const char kCrossOriginMediaPlaybackRequiresUserGestureDescription[] = | |
| 654 "Playing media elements in cross-origin iframes requires user gesture. " | |
| 655 "Disabling this will allow autoplay in cross-origin iframes to work."; | |
| 656 | |
| 657 #endif // !defined(OS_ANDROID) | |
| 658 | |
| 659 const char kPassiveDocumentEventListenersDescription[] = | 648 const char kPassiveDocumentEventListenersDescription[] = |
| 660 "Forces touchstart, and touchmove event listeners on document level " | 649 "Forces touchstart, and touchmove event listeners on document level " |
| 661 "targets (which haven't requested otherwise) to be treated as passive."; | 650 "targets (which haven't requested otherwise) to be treated as passive."; |
| 662 | 651 |
| 663 const char kPassiveDocumentEventListenersName[] = | 652 const char kPassiveDocumentEventListenersName[] = |
| 664 "Document Level Event Listeners Passive Default"; | 653 "Document Level Event Listeners Passive Default"; |
| 665 | 654 |
| 666 const char kPassiveEventListenersDueToFlingDescription[] = | 655 const char kPassiveEventListenersDueToFlingDescription[] = |
| 667 "Forces touchstart, and first touchmove per scroll event listeners " | 656 "Forces touchstart, and first touchmove per scroll event listeners " |
| 668 "during fling to be treated as passive."; | 657 "during fling to be treated as passive."; |
| (...skipping 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3026 | 3015 |
| 3027 #endif // defined(OS_ANDROID) | 3016 #endif // defined(OS_ANDROID) |
| 3028 | 3017 |
| 3029 const char kEnableIdleTimeSpellCheckingName[] = | 3018 const char kEnableIdleTimeSpellCheckingName[] = |
| 3030 "Enable idle time spell checker"; | 3019 "Enable idle time spell checker"; |
| 3031 | 3020 |
| 3032 const char kEnableIdleTimeSpellCheckingDescription[] = | 3021 const char kEnableIdleTimeSpellCheckingDescription[] = |
| 3033 "Make spell-checking code run only when the browser is idle, so that input " | 3022 "Make spell-checking code run only when the browser is idle, so that input " |
| 3034 "latency is reduced, especially when editing long articles, emails, etc."; | 3023 "latency is reduced, especially when editing long articles, emails, etc."; |
| 3035 | 3024 |
| 3025 const char kAutoplayPolicyName[] = "Autoplay policy"; |
| 3026 |
| 3027 const char kAutoplayPolicyDescription[] = |
| 3028 "Policy used when deciding if audio or video is allowed to autoplay."; |
| 3029 |
| 3030 const char kAutoplayPolicyNoRestrictions[] = "No restrictions apply."; |
| 3031 |
| 3032 const char kAutoplayPolicyUserGestureRequired[] = "User gesture is required."; |
| 3033 |
| 3034 const char kAutoplayPolicyCrossOriginUserGestureRequired[] = |
| 3035 "User gesture is required for cross-origin iframes."; |
| 3036 |
| 3036 } // namespace flag_descriptions | 3037 } // namespace flag_descriptions |
| OLD | NEW |