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

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

Issue 2837023002: Create autoplay policy flag and merge cross-origin autoplay blocking into it. (Closed)
Patch Set: 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 #ifndef CHROME_BROWSER_FLAG_DESCRIPTIONS_H_ 5 #ifndef CHROME_BROWSER_FLAG_DESCRIPTIONS_H_
6 #define CHROME_BROWSER_FLAG_DESCRIPTIONS_H_ 6 #define CHROME_BROWSER_FLAG_DESCRIPTIONS_H_
7 7
8 // Includes needed for macros allowing conditional compilation of some strings. 8 // Includes needed for macros allowing conditional compilation of some strings.
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "build/buildflag.h" 10 #include "build/buildflag.h"
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 // Description for the flag to enable Token Binding. Please do not translate 697 // Description for the flag to enable Token Binding. Please do not translate
698 // 'Token Binding'. 698 // 'Token Binding'.
699 extern const char kEnableTokenBindingDescription[]; 699 extern const char kEnableTokenBindingDescription[];
700 700
701 // Title for the flag for gesture requiment for media playback 701 // Title for the flag for gesture requiment for media playback
702 extern const char kGestureRequirementForMediaPlaybackName[]; 702 extern const char kGestureRequirementForMediaPlaybackName[];
703 703
704 // Description for the flag for gesture requiment for media playback 704 // Description for the flag for gesture requiment for media playback
705 extern const char kGestureRequirementForMediaPlaybackDescription[]; 705 extern const char kGestureRequirementForMediaPlaybackDescription[];
706 706
707 #if !defined(OS_ANDROID)
708
709 // Title for the flag for gesture requiment for media playback
710 extern const char kCrossOriginMediaPlaybackRequiresUserGestureName[];
711
712 // Description for the flag for gesture requiment for media playback
713 extern const char kCrossOriginMediaPlaybackRequiresUserGestureDescription[];
714
715 #endif // !defined(OS_ANDROID)
716
717 // Description for the flag to adjust the default behaviour for document level 707 // Description for the flag to adjust the default behaviour for document level
718 // passive touch listeners. 708 // passive touch listeners.
719 extern const char kPassiveDocumentEventListenersDescription[]; 709 extern const char kPassiveDocumentEventListenersDescription[];
720 710
721 // Name for the flag to adjust the default behaviour for document level passive 711 // Name for the flag to adjust the default behaviour for document level passive
722 // listeners. 712 // listeners.
723 extern const char kPassiveDocumentEventListenersName[]; 713 extern const char kPassiveDocumentEventListenersName[];
724 714
725 // Description for the flag to adjust the default behaviour for passive touch 715 // Description for the flag to adjust the default behaviour for passive touch
726 // listeners during fling. 716 // listeners during fling.
(...skipping 2566 matching lines...) Expand 10 before | Expand all | Expand 10 after
3293 extern const char kEnableWebNfcDescription[]; 3283 extern const char kEnableWebNfcDescription[];
3294 3284
3295 #endif // defined(OS_ANDROID) 3285 #endif // defined(OS_ANDROID)
3296 3286
3297 // Name of the flag that enables Blink's idle time spell checker. 3287 // Name of the flag that enables Blink's idle time spell checker.
3298 extern const char kEnableIdleTimeSpellCheckingName[]; 3288 extern const char kEnableIdleTimeSpellCheckingName[];
3299 3289
3300 // Description of the flag that enables Blink's idle time spell checker. 3290 // Description of the flag that enables Blink's idle time spell checker.
3301 extern const char kEnableIdleTimeSpellCheckingDescription[]; 3291 extern const char kEnableIdleTimeSpellCheckingDescription[];
3302 3292
3293 // Name of the autoplay policy flag.
3294 extern const char kAutoplayPolicyName[];
3295
3296 // Description of the autoplay policy entry.
3297 extern const char kAutoplayPolicyDescription[];
3298
3299 // Description of the autoplay policy that requires a user gesture on cross
3300 // origin iframes.
3301 extern const char kAutoplayPolicyCrossOriginUserGestureRequired[];
3302
3303 // Description of the autoplay policy that has no restrictions.
3304 extern const char kAutoplayPolicyNoRestrictions[];
3305
3306 // Description of the autoplay policy that requires a user gesture.
3307 extern const char kAutoplayPolicyUserGestureRequired[];
3308
3303 } // namespace flag_descriptions 3309 } // namespace flag_descriptions
3304 3310
3305 #endif // CHROME_BROWSER_FLAG_DESCRIPTIONS_H_ 3311 #endif // CHROME_BROWSER_FLAG_DESCRIPTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698