[GStreamer] simulateAudioInterruption needs to be guarded by ENABLE(VIDEO)"
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Mar 2013 18:37:23 +0000 (18:37 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Mar 2013 18:37:23 +0000 (18:37 +0000)
https://bugs.webkit.org/show_bug.cgi?id=112358

Guarded with ENABLE(VIDEO) to prevent problems when it is not
enabled.

Patch by Xabier Rodriguez Calvar <calvaris@igalia.com> on 2013-03-14
Reviewed by Philippe Normand.

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

Source/WebCore/ChangeLog
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl

index 1871589..c887c56 100644 (file)
@@ -1,3 +1,13 @@
+2013-03-14  Xabier Rodriguez Calvar  <calvaris@igalia.com>
+
+        [GStreamer] simulateAudioInterruption needs to be guarded by ENABLE(VIDEO)"
+        https://bugs.webkit.org/show_bug.cgi?id=112358
+
+        Guarded with ENABLE(VIDEO) to prevent problems when it is not
+        enabled.
+
+        Reviewed by Philippe Normand.
+
 2013-03-12  Florin Malita  <fmalita@chromium.org>
 
         Tighten up the type bounds for SVGPropertyInfo callback parameters
index 0c24fb2..8520d9b 100644 (file)
@@ -51,7 +51,9 @@
 #include "FrameView.h"
 #include "HTMLContentElement.h"
 #include "HTMLInputElement.h"
+#if ENABLE(VIDEO)
 #include "HTMLMediaElement.h"
+#endif
 #include "HTMLNames.h"
 #include "HTMLTextAreaElement.h"
 #include "HistoryItem.h"
@@ -2072,6 +2074,7 @@ String Internals::getImageSourceURL(Element* element, ExceptionCode& ec)
     return element->imageSourceURL();
 }
 
+#if ENABLE(VIDEO)
 void Internals::simulateAudioInterruption(Node* node)
 {
 #if USE(GSTREAMER)
@@ -2081,5 +2084,6 @@ void Internals::simulateAudioInterruption(Node* node)
     UNUSED_PARAM(node);
 #endif
 }
+#endif
 
 }
index 3fdb3bc..fc18c37 100644 (file)
@@ -299,8 +299,10 @@ public:
 #endif
 
     String getImageSourceURL(Element*, ExceptionCode&);
-                    
+
+#if ENABLE(VIDEO)
     void simulateAudioInterruption(Node*);
+#endif
 
 private:
     explicit Internals(Document*);
index 3620d0e..adeb100 100644 (file)
 
     void forceReload(in boolean endToEnd);
 
-    void simulateAudioInterruption(in Node node);
+    [Conditional=VIDEO] void simulateAudioInterruption(in Node node);
 
     [Conditional=ENCRYPTED_MEDIA_V2] void initializeMockCDM();