summaryrefslogtreecommitdiff
path: root/Source/WebKit/qt/WidgetApi
Commit message (Collapse)AuthorAgeFilesLines
* Fix doc warningsJocelyn Turcotte2014-03-173-40/+10
| | | | | | | | | | - Qt for Embedded Linux Requirements isn't available since Qt5 - NOTIFY signal documentations are now ignored and are part of their property - The QtQuick1 WebView code isn't available anymore - Adjust to other renamed and removed pages Change-Id: Ife04becb1a847fb0bfb11dfafa6db2caa36aa9f0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* Fix missing image in QWebView class documentation.Michael Brüning2014-03-101-1/+1
| | | | | | | | | | Add a current image of a QWebView showing the Qt Project Homepage previewed in Qt Creator. Task-number: QTBUG-37208 Change-Id: Iedfee6965aa0ef35ba2a532a937e8054c4a0a9d5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com> Reviewed-by: Michael Bruning <michael.bruning@digia.com>
* Fix documentation of the selector APIAllan Sandfeld Jensen2014-03-101-3/+6
| | | | | | | | | | | We support all CSS selectors WebKit supports since the methods map internally to the DOM Selectors API. We should therefore update the documentation to claim more than CSS2 selector support. Task-number: QTBUG-37208 Change-Id: I4eae7c897f13bbb17221995ef764020d9341d1f8 Reviewed-by: Michael Bruning <michael.bruning@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Fix build with QT_NO_GRAPHICSVIEWSergio Martins2014-02-091-0/+2
| | | | | Change-Id: Ia909a560db58d6cdc6ec4bbac879249eb5e286ef Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* Update device pixel ratio on screen changeAllan Sandfeld Jensen2014-02-073-4/+38
| | | | | | | | | This patch makes QWebPage listen to QWindow::screenChangedEvent and update the device pixel ratio when it is received. Task-number: QTBUG-36190 Change-Id: Ia28571ef241a3a2f970876f6e474b01c1ac001e1 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Forward devicePixelRatio to WebCore PageAllan Sandfeld Jensen2014-01-311-0/+2
| | | | | | | | | The device pixel ratio must be set on Page for CSS image set and CSS media queries to work correctly. Task-number: QTBUG-36190 Change-Id: I76694c1375194f35df7f62e942bc8565f065a3bc Reviewed-by: Michael Bruning <michael.bruning@digia.com>
* Do not accept all touch eventsAllan Sandfeld Jensen2013-12-202-8/+4
| | | | | | | | | | | | | | | | QtWebKit currently accepts all touch events to prevent the lack of accept on a TouchBegin from preventing receiving TouchUpdate and TouchEnd. This behavior prevents QGuiApplication from converting touch events to mouse events, and makes the WebView widget impossible to interact with by touch. This patch modifies the behavior slighly so that QtWebKit only accepts touch events if they are needed for the active document. Task-number: QTBUG-31938 Change-Id: Iba80ebfaf31c93f82356e3f0622039120921172a Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Fix fullscreen support with GStreamerAllan Sandfeld Jensen2013-11-072-0/+4
| | | | | | | | | | | | | Fullscreen support has not been working with GStreamer since Qt 4.8, the issue was the native fullscreen window was not fully ported, and was affected by some bitrot. This patch fixes the native fullscreen window for GStreamer, ensures the fullscreen options are available on WebKit1, and adds a context menu and web action to toggle fullscreen mode. Change-Id: I9c6c5a1e36fbbc8e1d1fae371bdf9abc1aee7775 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Support HTML5 media context menu itemsAllan Sandfeld Jensen2013-10-284-2/+41
| | | | | | | | 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>
* Crash on GeoLocation demoAllan Sandfeld Jensen2013-10-041-1/+1
| | | | | | | | Apply missing QtLocation -> QtPositioning renaming. This was causing GeoLocationController to never be set. Change-Id: Id6b110ee2df3047b11e1c13ff5a1d2eb9d8b4c40 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* Import Qt5x2 branch of QtWebkit for Qt 5.2Allan Sandfeld Jensen2013-09-194-28/+38
| | | | | | | Importing a new snapshot of webkit. Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* Update location of qaccessiblewidget.hAllan Sandfeld Jensen2013-09-191-1/+1
| | | | | | | The definition of QAccessibleWidget has moved again. Change-Id: Ibeebdd236d5a5d40e4e811975524e5c3c5ee0673 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* [Qt] Add Page Visibility API supportBenjamin Dupont2013-08-092-1/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=109422 Patch by Benjamin Dupont <bdupont@nds.com> on 2013-08-06 Reviewed by Simon Hausmann. * WebCoreSupport/QWebPageAdapter.cpp: (webPageVisibilityStateToWebCoreVisibilityState): (webCoreVisibilityStateToWebPageVisibilityState): (QWebPageAdapter::setVisibilityState): (QWebPageAdapter::visibilityState): * WebCoreSupport/QWebPageAdapter.h: * WidgetApi/qwebpage.cpp: (QWebPage::setVisibilityState): (QWebPage::visibilityState): * WidgetApi/qwebpage.h: * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::changeVisibilityState): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153751 268f45cc-cd09-0410-ab3c-d52691b4dbfc [Qt] Build fix after r153751 Unreviewed build fix. Fix build when PAGE_VISIBILITY_API is disabled. * WebCoreSupport/QWebPageAdapter.cpp: (QWebPageAdapter::visibilityState): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153782 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I7c99337a902d7d06cde03107ebf71e3fce430fdf Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* Remove Nokia references.Leonard Lee2013-05-301-4/+0
| | | | | | | | | | These Nokia references removed as they are not appropriate. Task-number: QTBUG-31400 Change-Id: I3d739e8bf8bfaae1c7bc7ee6e11974aa2dae4f2b Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* [Qt] docs: Fix module name formatSze Howe Koh2013-04-054-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=113209 Reviewed by Jocelyn Turcotte. Make QDoc-generated documentation follow the conventions at http://qt-project.org/wiki/Spelling_Module_Names_in_Qt_Documentation Source/WebKit/qt: * Api/qwebdatabase.cpp: * Api/qwebkitglobal.cpp: * Api/qwebpluginfactory.cpp: * Api/qwebsettings.cpp: * WidgetApi/qgraphicswebview.cpp: * WidgetApi/qwebframe.cpp: * WidgetApi/qwebpage.cpp: * WidgetApi/qwebview.cpp: * docs/qtwebkit-bridge.qdoc: * docs/qtwebkit-goes-mobile.qdoc: * docs/qtwebkit.qdoc: Source/WebKit2: * UIProcess/API/qt/qquickwebview.cpp: Change-Id: I27927b6a3722f86379fdc538a53f4cc84c68494f git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147637 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* [Qt] Build error with building with Qt 5.1Allan Sandfeld Jensen2013-03-151-0/+4
| | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=112435 Reviewed by Noam Rosenthal. QAccessibleWidget has moved to private. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145899 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I9a81337a1765682556af34ac7d4a5b1c0c350216 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* [Qt][WK1] Remember denied permission for notificationsAllan Sandfeld Jensen2013-02-061-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=107694 Reviewed by Jocelyn Turcotte. Store denied permissions. According to the specification, we should ask the user again if he has already granted or denied permission. * WebCoreSupport/NotificationPresenterClientQt.cpp: (WebCore::NotificationPresenterClientQt::requestPermission): (WebCore::NotificationPresenterClientQt::setNotificationsAllowedForFrame): * WebCoreSupport/NotificationPresenterClientQt.h: (NotificationPresenterClientQt): * WebCoreSupport/QWebPageAdapter.cpp: (QWebPageAdapter::setNotificationsAllowedForFrame): * WebCoreSupport/QWebPageAdapter.h: * WidgetApi/qwebpage.cpp: (QWebPage::setFeaturePermission): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141233 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I71896cb6e91531aec32e5f55c2224783a391a110 Reviewed-by: jocelyn.turcotte@digia.com Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] Update the documentation about the storage of inspector settingsjocelyn.turcotte@digia.com2013-01-211-5/+7
| | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=106777 Reviewed by Allan Sandfeld Jensen. Since r76770, QSettings isn't queried anymore to persist inspector settings like whether or not the debugger is enabled by default. It still seems to be used for the default attach height. Update the documentation accordingly. * WidgetApi/qwebinspector.cpp: Change-Id: I0f1bacdd628c56771cf74338b5ef8060154993ef git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140326 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* QWebView uses the mobile style and doesn't follow Qt's stylePierre Rossi2012-12-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=104134 Reviewed by Simon Hausmann. Another issue introduced by r136235. Fix the order of initialization of the styleFactory and creation of the WebCore Page. Since the latter has a RenderTheme member and the creation of the appropriate RenderTheme type (QStyle-backed) is dependant on having first initialized the theme factory function, we need to postpone this just a little bit. * WebCoreSupport/QWebPageAdapter.cpp: (QWebPageAdapter::QWebPageAdapter): (QWebPageAdapter::initializeWebCorePage): Added. * WebCoreSupport/QWebPageAdapter.h: * WidgetApi/qwebpage.cpp: (QWebPagePrivate::QWebPagePrivate): call initializeWebCorePage only after having initialized WebKitWidgets related logic (QStyle hooks in this case). Change-Id: I46bb066bbf4f5e4968bfdfb9def9ebcba6e02843 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136842 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* [Qt] Use a separate QWEBKITWIDGETS_EXPORT macro for WebKitWidgetsPierre Rossi2012-12-035-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=103844 Patch by Pierre Rossi <pierre.rossi@digia.com> on 2012-12-03 Reviewed by Simon Hausmann. Let's follow the common practice and have one export macro per library. We can't rely on BUILDING_WEBKIT anymore in that case, so we use the qmake defines instead. * Api/qwebkitglobal.h: Updated the import/export logic. * WidgetApi/qgraphicswebview.h: s/QWEBKIT/QWEBKITWIDGETS/ * WidgetApi/qwebframe.h: Ditto. * WidgetApi/qwebinspector.h: Ditto. * WidgetApi/qwebpage.h: Ditto. * WidgetApi/qwebview.h: Ditto. * WidgetSupport/InitWebKitQt.cpp: (WebKit::initializeWebKitWidgets): use QWEBKITWIDGETS_EXPORT. * WidgetSupport/InitWebKitQt.h: (WebKit): Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136394 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I0030f2f17cddd66aedf24f29323579174e838303 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Introduce setTextSizeMultiplier in the page adapter as well.Pierre Rossi2012-11-301-3/+1
| | | | | | | | | | | | | | As it turns out it the bots didn't like the previous attempt. * WebCoreSupport/QWebFrameAdapter.cpp: (QWebFrameAdapter::setTextSizeMultiplier): * WebCoreSupport/QWebFrameAdapter.h: * WidgetApi/qwebframe.cpp: (QWebFrame::setTextSizeMultiplier): Change-Id: If8c977b8134e88f3e5c3707ce7d19df8eb279304 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136252 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Imported WebKit commit 6a4a1d32e1d779548c726c4826cba9d69eb87601 ↵Simon Hausmann2012-11-3015-0/+8790
(http://svn.webkit.org/repository/webkit/trunk@136242) Final import for the Qt 5.x series that implements the QtWebKit / QtWebKitWidgets split Extra fixes will be cherry-picked. Change-Id: I844f1ebb99c6d6b75db31d6538c2acd628e79681 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>