summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api
Commit message (Collapse)AuthorAgeFilesLines
* Move custom URL scheme handlers to coreAllan Sandfeld Jensen2015-08-278-510/+61
| | | | | | | | Makes the custom URL scheme handler API public, and moves it to core so that it may be shared with the QQuickWebEngine API. Change-Id: I745cb088df6f4cd11b1ac7c8c3c76f112032cb38 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Add exit full screen web actionAllan Sandfeld Jensen2015-08-272-0/+9
| | | | | | | | Adds a web action that can be used for exiting fullscreen mode, and include it the context menu whenever in fullscreen mode. Change-Id: I7aa729a86f9ba9df476766cd40f87d9385948fea Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Widgets: Add fullscreen supportSzabolcs David2015-08-265-4/+28
| | | | | | Change-Id: Ibf1697d2bb3b3af5e7d71149305c5acffba43f0f Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Add inspect element webactionAllan Sandfeld Jensen2015-08-262-0/+8
| | | | | | | | | Adds the missing InspectElement webaction from QtWebKit. It is not added by to any context menus by default and only has an effect when an inspector is attached. Change-Id: Ic8c67c797e5dfe266fb692ffc97577b842458a79 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Consistenly use Q_DISABLE_COPY in public APIKai Koehne2015-08-263-0/+3
| | | | | | | Improves error messages for people trying to copy ... Change-Id: If95e33058ebff46ab39164ba6226b3396b6aef15 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Add documentation for cookie API and request interception in coreAndras Becsi2015-08-201-4/+15
| | | | | | Change-Id: I6908ff3da9e0c78c3cf3d9b27d6c532029423d24 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Doc: clean up QWebEngineScript docsLeena Miettinen2015-08-201-43/+48
| | | | | | | | | | - Add missing documentation - Remove unnecessary \brief, \param, and \return commands - Edit for language and style Change-Id: Iff9ddc56ab32af783831c3a962b0967fcbddde24 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Doc: clean up QWebEngineProfile docsLeena Miettinen2015-08-181-29/+45
| | | | | | | | | - Add missing documentation - Remove unnecessary \brief, \param, and \return commands - Edit for language and style Change-Id: I6b338834e5695cf135874f80e71151a5f5dd54e7 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Doc: clean up QWebEngineScriptCollection docsLeena Miettinen2015-08-181-28/+31
| | | | | | | | | - Add missing documentation - Remove unnecessary \brief, \param, and \return commands - Edit for language and style Change-Id: Ie2169475539f816b876ad65d9ac9ae228dd55ada Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Merge branch '5.5' into 5.6Allan Sandfeld Jensen2015-08-1813-28/+126
|\ | | | | | | Change-Id: I9977663123560a22f493b8c02d02de8897b38666
| * Doc: Fixup QWebEngineScript documentation.Pierre Rossi2015-08-051-2/+1
| | | | | | | | | | | | | | drop the preliminary as it is public API, and fix a typo. Change-Id: I2753ef06f9afc9f7a9526353286fb22d239e3b5f Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| * Add private header warningKai Koehne2015-07-249-0/+99
| | | | | | | | | | Change-Id: I95ae03b34631f166d2eed68e20282eb624ff408a Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
| * Unify Copyright headersKai Koehne2015-07-245-25/+25
| | | | | | | | | | Change-Id: I4cc145311cb41576d6f166ad4ddc085eeccc1650 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
| * Doc: Added \qtvariable to enable QDoc include QT += info.Venugopal Shivashankar2015-07-201-1/+1
| | | | | | | | | | | | | | | | Also added \since info. for some of the classes. Task-number: QTBUG-47274 Change-Id: Id8cfbd6d0e5b5826ceaebb008a453cd1c216a921 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* | Remove unused memberKai Koehne2015-08-071-1/+0
| | | | | | | | | | | | | | Remove member that was forgotten in commit 84f31c11 Change-Id: I9e0f1366e15022042572827e3e43f4f51f171ad8 Reviewed-by: Jocelyn Turcotte (Woboq GmbH) <jturcotte@woboq.com>
* | Fix #include's in public headersKai Koehne2015-08-045-17/+18
| | | | | | | | | | | | | | | | | | | | | | Uniformly use the <Module/class.h> style, like https://wiki.qt.io/Coding_Conventions mandates. Change-Id: I4c05599fa689f375158fd3b0a54aada8571e5c59 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | add API to set the Accept-Language HTTP request-header fieldJoerg Bornemann2015-08-042-0/+25
| | | | | | | | | | | | | | | | | | | | Add methods to set the Accept-Language field in QWebEngineProfile and QQuickWebEngineProfile. Task-number: QTBUG-47412 Change-Id: Ifa376bb3551fdc1fb3d68279d734b7f7735782fc Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Add API for intercepting url requestsAndras Becsi2015-08-032-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is adding a QWebEngineUrlRequestInterceptor interface that can be subclassed to observe or intercept all resource requests making it possible to implement browser features like adblocking and setting custom request headers for url requests. The interceptRequest virtual function is executed on the IO thread. This patch also includes a unit test for the testable API parts. Change-Id: Ibe740fc55551a9a5da40794088ccb6d03d913631 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com> Reviewed-by: Martin Rotter <rotter.martinos@gmail.com> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Fix widgets plugin settingsAllan Sandfeld Jensen2015-07-201-0/+2
| | | | | | | | | | | | | | | | Connect the user setting to the webengine settings, and make it available in the demo browser Change-Id: Id4da8a4125a9f982cb687d433b6fce123e72c4c7 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Add a backgroundColor propertyJocelyn Turcotte2015-07-143-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also allows setting a transparent color to see through the web view's body if its background color isn't specified. The color is initially held by the top API view and is pulled by the WebContentsAdapter in order to set it on the RenderView. Since both blink and our local compositors (in the QOpenGLWidget case) need to know about this color, RWHVQt takes care of pushing it to both. The former through an IPC message and the latter directly on the RWHVQtDelegate. Task-number: QTBUG-41960 Change-Id: Ie13317b2d087f5612ad9c5fb0e05ca3e91aec9af Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | make copy web action available for canvasesJoerg Bornemann2015-07-141-2/+5
| | | | | | | | | | | | | | | | We need to take into account that canvases don't have a valid media URL. Task-number: QTBUG-47187 Change-Id: I01e1097c74df623a7d28189b6ab25fdc27c5e766 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | add Download*ToDisk web actionsJoerg Bornemann2015-07-062-0/+24
| | | | | | | | | | | | | | | | Add the web actions DownloadLinkToDisk, DownloadImageToDisk and DownloadMediaToDisk. Change-Id: If6c9c8a3f4b95ad3032cff71ffc53a48be26e083 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Add WebAction to QML apiAllan Sandfeld Jensen2015-07-061-18/+1
| | | | | | | | | | | | | | | | | | | | Adds WebActions matching QWebEnginePage to QQuickWebEngineView, this makes it possible to support copy/paste on OS X, and makes it possible to do rich text copy to clipboard on all platforms. Change-Id: If43c1b2e8ae0496423f830cfe6b86e0fa1b8126e Task-number: QTBUG-44289 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-06-2910-36/+214
|\| | | | | | | | | | | | | | | Conflicts: .qmake.conf src/webenginewidgets/api/qwebenginepage.cpp Change-Id: Idb33c92bd53fab76eee8fedb542dbf5e4a10f9e6
| * Merge remote-tracking branch 'origin/5.5.0' into 5.5Liang Qi2015-06-269-34/+205
| |\ | | | | | | | | | Change-Id: Ie9373d6278c9ba1514de5640802d985ec35aceb2
| | * Add documentation for QWebEngineScript and QWebEngineScriptCollectionPierre Rossi2015-06-122-3/+172
| | | | | | | | | | | | | | | Change-Id: I494f31a6b4efc038a96ca68142fa2f9a56d53802 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | * Last minute API review cleanupPierre Rossi2015-06-126-28/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | The getters in QWebEngineDownloadItem were not const. The script collection in QWebEngineProfile was passed by reference, which is not idiomatic of Qt. Change-Id: I9b4218b407288b91a726a711bd2a7e1c1167d99a Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | * Fix msvc linking issues caused by wrong export macroAndras Becsi2015-06-082-3/+3
| | | | | | | | | | | | | | | | | | | | | Use the correct export macro QWEBENGINEWIDGETS_EXPORT for widget API. Change-Id: I1fe61008938522548fe84936fd97e0458ada3104 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
| * | Fix cancellation of file dialogs.Joerg Bornemann2015-06-251-3/+10
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the user canceled a file dialog (e.g. provided by an input tag), then the renderer process would exit and the web page would turn blank. We must not pass empty strings or otherwise invalid file paths to RenderViewHost::FilesSelectedInChooser, because OnUpdateState will check for accessibility of those files and shutdown the renderer on failure. Task-number: QTBUG-46869 Change-Id: Ie01e56999c5e7acd42c5b3fd4993de7f3a5f2e73 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Add QWebEngineCookieStoreClient core APIAndras Becsi2015-06-162-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This class or its subclass can be set on the QWebEngineProfile and its API enables intercepting Chromium's cookies, setting and deleting cookies in the cookie store. These functions are asynchronous so if the result of the task is needed the user can provide a callback which will be run on the calling thread when the requested operation finishes. This does not include a hook for QQuick layer yet, there we have to figure out what the most convenient way is from a developer's perspective. Change-Id: I6a3af071883ce632df7a2fb952da93f306ac3fe2 Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* | Move QWebEngineCallback to core API and templatize CallbackDirectoryAndras Becsi2015-06-083-183/+8
| | | | | | | | | | | | | | | | | | | | | | This undocumented helper template will also be utilized by the core API since Chromium's content API heavily relies on callbacks. To make the internal CallbackDirectory easily extendable with new types, templatize its callback registration and dispatching functions to be able to replace its type switches and the internal union. Change-Id: I3f636fef48973ac95253f1c1bd396550286e571e Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* | Fix inconsistent dll linkage warningsAndras Becsi2015-06-031-1/+1
| | | | | | | | | | | | | | | | Use the correct export macro in qwebenginescriptcollection.h else we'll end up with inconsistent dll linkage issues with msvc. Change-Id: Ie38bc9fd7ec120b68ef65e6b661536a942aea9f6 Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* | Make QQuick contextmenu actions behave like widget counterpartsAllan Sandfeld Jensen2015-05-271-1/+3
| | | | | | | | | | | | | | | | | | Updates a two of the context menu actions so they behave like the updated actions in qtwebenginewidgets. Also improves the default label of OpenInThisWindow, since by default there are no other windows. Change-Id: Iac0dc23e8f31598296cba87f93503cefd926983f Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devPierre Rossi2015-05-152-2/+29
|\| | | | | | | Change-Id: I1fbcd05760cb287d1d8a0fba344ec7cfe8348c7d
| * Add redirect and error API for custom URLAllan Sandfeld Jensen2015-05-132-2/+29
| | | | | | | | | | | | | | Adds API for failing or redirecting custom URL requests. Change-Id: Ia633bff2c0b8484fd6fdb8d42982fda2e427db4c Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge "Merge remote-tracking branch 'origin/5.5' into dev" into refs/staging/devAllan Sandfeld Jensen2015-05-123-0/+71
|\ \
| * | Merge remote-tracking branch 'origin/5.5' into devAndras Becsi2015-05-113-0/+71
| |\| | | | | | | | | | Change-Id: I122ca8d3438333c6b41f751c47b1ce1f9a7066b9
| | * Improve thread safety and behavior of custom URL requestsAllan Sandfeld Jensen2015-05-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adds thread protection between the UI and IO threads access to the QIODevice, and changes it to a QPointer, so we can tell if the user deletes it. Change-Id: I3e7b3f682d4c5a145d75cd5822affcfc9012cff7 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | * Add documentation of Custom URL requestsAllan Sandfeld Jensen2015-05-062-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds basic documentation to the API. Though the API is still private we would like people to experiment with it, which is easy if it is documented. Change-Id: I63985dfc16dc91270d95edf6fc306f9c71a10f29 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Florian Bruhin <qt-project.org@the-compiler.org>
* | | Extend context menu actionsAllan Sandfeld Jensen2015-05-112-23/+174
|/ / | | | | | | | | | | | | | | Implements the several missing context menu actions for navigation and image and media handling. Change-Id: Ib8ea8311ea291fe2f98e509bc6f4034a5e0389c9 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devAndras Becsi2015-04-234-5/+5
|\| | | | | | | Change-Id: I6f913ebc7aed68d4b8c3f8666fd2389607b491b7
| * Remove erroneous semicolons after Q_DECLARE_* macrosAndras Becsi2015-04-204-5/+5
| | | | | | | | | | | | | | | | Some of these declarations had habitual semicolons at the end, which would fail when compiling with -Werror,-Wextra-semi. Change-Id: I8dd73462fc1c10b0bb746fbfc3281d9cce36e5fc Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-04-191-0/+1
|\| | | | | | | Change-Id: I78c25caf30923fc1101b137f9abc3993e3cf0600
| * Merge remote-tracking branch 'origin/5.4' into 5.5Andras Becsi2015-04-151-0/+1
| |\ | | | | | | | | | Change-Id: I1e414bb2252ee4b2204ef50a9d122d1d1504115d
| | * Enable building Qt WebEngine without accessiblity enabled.Stephan Binner2015-03-045-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds guards that for QT_NO_ACCESSIBILITY being not defined around the code that uses accessibility types. It disables the quicknanobrowser and quicktestbrowser examples which need Qt QuickControls, which has a hard dependency to accessibility being enabled. Backport of d95b9295c970401939d2779cbdc9e2a8c7965277 from 5.5 Change-Id: I2a2a0a6196fcb3baa39603d9c929183b454f39ed Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-04-081-0/+3
|\| | | | | | | | | | | Change-Id: I7b0dae978357c6f48826ad8e09a8cb8477d1901d
| * | Revive ReloadAndBypassCachePierre Rossi2015-04-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Appears to be an oversight for widgets, as the API was there, but just wasn't wired. Also add it for QQuickWebEngineView while we're at it. Change-Id: I07d6e356cbaf22b79f3fc5a82df78c6821993e8d Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* | | Add support for Shockwave Flash plugin.Zeno Albisser2015-03-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We will try to load the pepper flash plugin from the places where it is most commonly located. Alternatively the location and flash version can be passed on the command line. Change-Id: I41367586462157e722661aab3630357d6caf6a81 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | | Merge remote-tracking branch 'origin/5.5' into devAllan Sandfeld Jensen2015-03-166-18/+53
|\| | | | | | | | | | | | | | | | | | | | Conflicts: src/webengine/ui_delegates_manager.h Change-Id: I989280b6008fbc4844ed86d6d16f7e7aa6ba8db9
| * | Support HTML5 form validation featurePeter Varga2015-03-133-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HTML5 provides built-in form validation that is supported by chromium. The form validation messages should be shown by the browser therefore new MessageBubble UI element has been added to Quick and Widget implementations. This patch implements chromium's form validation events and shows the messages in a MessageBubble. Change-Id: I0c8f4f102823117e2bfb16ff8a4c503635491939 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>