diff options
Diffstat (limited to 'Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp')
-rw-r--r-- | Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp b/Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp index b9164ad12..bbbe42992 100644 --- a/Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp +++ b/Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp @@ -42,6 +42,7 @@ #include "FrameSelection.h" #include "FrameView.h" #include "GeolocationPermissionClientQt.h" +#include "HTMLFormElement.h" #include "HTMLFrameOwnerElement.h" #include "HTMLInputElement.h" #include "HTMLMediaElement.h" @@ -1361,6 +1362,11 @@ void QWebPageAdapter::setDevicePixelRatio(float devicePixelRatio) page->setDeviceScaleFactor(devicePixelRatio); } +bool QWebPageAdapter::isPlayingAudio() const +{ + return page->mediaState() & MediaProducer::IsPlayingAudio; +} + bool QWebPageAdapter::handleKeyEvent(QKeyEvent *ev) { Frame& frame = page->focusController().focusedOrMainFrame(); |