summaryrefslogtreecommitdiff
path: root/Source/WebKit/qt/WidgetApi/qwebframe.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-10-15 19:00:43 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-28 20:00:40 +0100
commit06285084ea92dc8900ba195db5379501e0173c53 (patch)
tree755ab3f57407d8bc280dfaede52b45685cdd7d2f /Source/WebKit/qt/WidgetApi/qwebframe.cpp
parent36321b9aaeedef1232d464d3dd7d03f39b7f7f37 (diff)
downloadqtwebkit-06285084ea92dc8900ba195db5379501e0173c53.tar.gz
Support HTML5 media context menu items
Support most of the items WebCore populates the context menu with when the user right clicks an HTML5 audio or video element. Change-Id: I331a3271f68075fe70d914e2675620f617d53b42 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'Source/WebKit/qt/WidgetApi/qwebframe.cpp')
-rw-r--r--Source/WebKit/qt/WidgetApi/qwebframe.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/WebKit/qt/WidgetApi/qwebframe.cpp b/Source/WebKit/qt/WidgetApi/qwebframe.cpp
index f3e563cb5..27cc73989 100644
--- a/Source/WebKit/qt/WidgetApi/qwebframe.cpp
+++ b/Source/WebKit/qt/WidgetApi/qwebframe.cpp
@@ -1217,6 +1217,17 @@ QUrl QWebHitTestResult::imageUrl() const
}
/*!
+ Returns the url of the video or audio element.
+ \since 5.2
+*/
+QUrl QWebHitTestResult::mediaUrl() const
+{
+ if (!d)
+ return QUrl();
+ return d->mediaUrl;
+}
+
+/*!
Returns a QPixmap containing the image. A null pixmap is returned if the
element being tested is not an image.
*/