Bug 842782 - p1: add a pref for fullscreen video orientation lock. r?jwwang draft
authorJohn Lin <jolin@mozilla.com>
Fri, 25 Aug 2017 14:25:49 +0800
changeset 653826 2721c272e86c5608b9a66e42b49a3607c635e27d
parent 653766 d10c97627b51a226e19d0fa801201897fe1932f6
child 653827 f5d676c45639139e78ae573aabb95e1f5336c82e
push id76424
push userbmo:jolin@mozilla.com
push dateMon, 28 Aug 2017 04:04:03 +0000
reviewersjwwang
bugs842782
milestone57.0a1
Bug 842782 - p1: add a pref for fullscreen video orientation lock. r?jwwang MozReview-Commit-ID: 6x7um7F8omr
dom/media/MediaPrefs.h
--- a/dom/media/MediaPrefs.h
+++ b/dom/media/MediaPrefs.h
@@ -206,16 +206,17 @@ private:
                                                               MediaWarningsAsErrorsStageFrightVsRust, bool, false);
 
   // resume background video decoding when the cursor is hovering over the tab.
   DECL_MEDIA_PREF("media.resume-bkgnd-video-on-tabhover",     ResumeVideoDecodingOnTabHover, bool, false);
 
 #ifdef MOZ_CUBEB_REMOTING
   DECL_MEDIA_PREF("media.cubeb.sandbox",                      CubebSandbox, bool, false);
 #endif // MOZ_CUBEB_REMOTING
+  DECL_MEDIA_PREF("media.videocontrols.lock-video-orientation",  VideoOrientationLockEnabled, bool, false);
 
 public:
   // Manage the singleton:
   static MediaPrefs& GetSingleton();
   static bool SingletonExists();
 
 private:
   template<class T> friend class StaticAutoPtr;