[Chromium] Expose setMediaPlaybackRequiresUserGesture via WebSettings
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 May 2012 21:55:58 +0000 (21:55 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 May 2012 21:55:58 +0000 (21:55 +0000)
https://bugs.webkit.org/show_bug.cgi?id=87164

Reviewed by Eric Seidel.

This is used by the Chromium Android port.

* public/WebSettings.h:
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setMediaPlaybackRequiresUserGesture):
(WebKit):
* src/WebSettingsImpl.h:
(WebSettingsImpl):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@118059 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/public/WebSettings.h
Source/WebKit/chromium/src/WebSettingsImpl.cpp
Source/WebKit/chromium/src/WebSettingsImpl.h

index 94ae80d..9ab821a 100644 (file)
@@ -1,3 +1,19 @@
+2012-05-22  Adam Barth  <abarth@webkit.org>
+
+        [Chromium] Expose setMediaPlaybackRequiresUserGesture via WebSettings
+        https://bugs.webkit.org/show_bug.cgi?id=87164
+
+        Reviewed by Eric Seidel.
+
+        This is used by the Chromium Android port.
+
+        * public/WebSettings.h:
+        * src/WebSettingsImpl.cpp:
+        (WebKit::WebSettingsImpl::setMediaPlaybackRequiresUserGesture):
+        (WebKit):
+        * src/WebSettingsImpl.h:
+        (WebSettingsImpl):
+
 2012-05-21  Shawn Singh  <shawnsingh@chromium.org>
 
         [chromium] Add unit testing for WebTransformationMatrix::blend()
index 576557b..79378f6 100644 (file)
@@ -147,6 +147,7 @@ public:
     virtual void setPartialSwapEnabled(bool) = 0;
     virtual void setThreadedAnimationEnabled(bool) = 0;
     virtual void setViewportEnabled(bool) = 0;
+    virtual void setMediaPlaybackRequiresUserGesture(bool) = 0;
     virtual bool viewportEnabled() const = 0;
     virtual void setDefaultTileSize(WebSize) = 0;
     virtual void setMaxUntiledLayerSize(WebSize) = 0;
index 95a3d33..15f9d98 100644 (file)
@@ -581,6 +581,11 @@ void WebSettingsImpl::setThreadedAnimationEnabled(bool enabled)
     m_settings->setThreadedAnimationEnabled(enabled);
 }
 
+void WebSettingsImpl::setMediaPlaybackRequiresUserGesture(bool required)
+{
+    m_settings->setMediaPlaybackRequiresUserGesture(required);
+}
+
 void WebSettingsImpl::setViewportEnabled(bool enabled)
 {
     m_viewportEnabled = enabled;
index e42bde8..a051a02 100644 (file)
@@ -143,6 +143,7 @@ public:
     virtual void setPartialSwapEnabled(bool);
     virtual void setThreadedAnimationEnabled(bool);
     virtual void setViewportEnabled(bool);
+    virtual void setMediaPlaybackRequiresUserGesture(bool);
     virtual bool viewportEnabled() const { return m_viewportEnabled; }
 
     bool showFPSCounter() const { return m_showFPSCounter; }