Expose the mediaHasAudio() function in WK2
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Jun 2013 21:32:48 +0000 (21:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Jun 2013 21:32:48 +0000 (21:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=117946
<rdar://problem/14250527>

Patch by Ruth Fong <ruth_fong@apple.com> on 2013-06-24
Reviewed by Beth Dakin.

Source/WebCore:

* WebCore.exp.in: Updated to include symbol for
HTMLMediaElement::mediaHasAudio() function.

Source/WebKit2:

Exposes the WebCore::HTMLMediaElement::mediaHasAudio() function
in WK2.

* WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
(WKBundleHitTestResultMediaHasAudio): Added.
* WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h:
* WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
(WebKit::InjectedBundleHitTestResult::mediaHasAudio): Added.
* WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:

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

Source/WebCore/ChangeLog
Source/WebCore/WebCore.exp.in
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp
Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h
Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp
Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleHitTestResult.h

index 57e66e7..be6fc7f 100644 (file)
@@ -1,3 +1,14 @@
+2013-06-24  Ruth Fong  <ruth_fong@apple.com>
+
+        Expose the mediaHasAudio() function in WK2
+        https://bugs.webkit.org/show_bug.cgi?id=117946
+        <rdar://problem/14250527>
+
+        Reviewed by Beth Dakin.
+
+        * WebCore.exp.in: Updated to include symbol for
+        HTMLMediaElement::mediaHasAudio() function.
+
 2013-06-24  Simon Fraser  <simon.fraser@apple.com>
 
         Move displayID stuff from Widget to Chrome
index 665c1f1..e8fd53d 100644 (file)
@@ -1370,6 +1370,7 @@ __ZNK7WebCore13HitTestResult11targetFrameEv
 __ZNK7WebCore13HitTestResult11textContentEv
 __ZNK7WebCore13HitTestResult12innerElementEv
 __ZNK7WebCore13HitTestResult12mediaIsVideoEv
+__ZNK7WebCore13HitTestResult13mediaHasAudioEv
 __ZNK7WebCore13HitTestResult14absolutePDFURLEv
 __ZNK7WebCore13HitTestResult14innerNodeFrameEv
 __ZNK7WebCore13HitTestResult15absoluteLinkURLEv
index 64b9ed7..e5b0715 100644 (file)
@@ -1,3 +1,21 @@
+2013-06-24  Ruth Fong  <ruth_fong@apple.com>
+
+        Expose the mediaHasAudio() function in WK2
+        https://bugs.webkit.org/show_bug.cgi?id=117946
+        <rdar://problem/14250527>
+
+        Reviewed by Beth Dakin.
+
+        Exposes the WebCore::HTMLMediaElement::mediaHasAudio() function
+        in WK2.
+
+        * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
+        (WKBundleHitTestResultMediaHasAudio): Added.
+        * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h:
+        * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
+        (WebKit::InjectedBundleHitTestResult::mediaHasAudio): Added.
+        * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:
+
 2013-06-24  Anders Carlsson  <andersca@apple.com>
 
         REGRESSION (r147591): can't type in Adobe Connect
index 5224a49..60a4c68 100644 (file)
@@ -79,6 +79,11 @@ bool WKBundleHitTestResultMediaIsInFullscreen(WKBundleHitTestResultRef hitTestRe
     return toImpl(hitTestResultRef)->mediaIsInFullscreen();
 }
 
+bool WKBundleHitTestResultMediaHasAudio(WKBundleHitTestResultRef hitTestResultRef)
+{
+    return toImpl(hitTestResultRef)->mediaHasAudio();
+}
+
 WKBundleHitTestResultMediaType WKBundleHitTestResultGetMediaType(WKBundleHitTestResultRef hitTestResultRef)
 {
     return toAPI(toImpl(hitTestResultRef)->mediaType());
index dfeb1e2..839e985 100644 (file)
@@ -52,6 +52,7 @@ WK_EXPORT WKURLRef WKBundleHitTestResultCopyAbsolutePDFURL(WKBundleHitTestResult
 WK_EXPORT WKURLRef WKBundleHitTestResultCopyAbsoluteLinkURL(WKBundleHitTestResultRef hitTestResult);
 WK_EXPORT WKURLRef WKBundleHitTestResultCopyAbsoluteMediaURL(WKBundleHitTestResultRef hitTestResult);
 WK_EXPORT bool WKBundleHitTestResultMediaIsInFullscreen(WKBundleHitTestResultRef hitTestResult);
+WK_EXPORT bool WKBundleHitTestResultMediaHasAudio(WKBundleHitTestResultRef hitTestResult);
 WK_EXPORT WKBundleHitTestResultMediaType WKBundleHitTestResultGetMediaType(WKBundleHitTestResultRef hitTestResult);
 
 WK_EXPORT WKRect WKBundleHitTestResultGetImageRect(WKBundleHitTestResultRef hitTestResult);
index 35495c4..811c60c 100644 (file)
@@ -104,6 +104,11 @@ bool InjectedBundleHitTestResult::mediaIsInFullscreen() const
     return m_hitTestResult.mediaIsInFullscreen();
 }
 
+bool InjectedBundleHitTestResult::mediaHasAudio() const
+{
+    return m_hitTestResult.mediaHasAudio();
+}
+
 BundleHitTestResultMediaType InjectedBundleHitTestResult::mediaType() const
 {
 #if !ENABLE(VIDEO)
index a63de47..264df6d 100644 (file)
@@ -53,6 +53,7 @@ public:
     String absoluteLinkURL() const;
     String absoluteMediaURL() const;
     bool mediaIsInFullscreen() const;
+    bool mediaHasAudio() const;
     BundleHitTestResultMediaType mediaType() const;
 
     String linkLabel() const;