Add windowCloseRequested() support

Change-Id: If97c7b50efc7bf01095cb4a7138208ab2c6b2e9b
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Pass popup geometry along for new window creation

Change-Id: Ideefbf272d0affa3f53c5795b779f1bfc9c9bf70
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Return the physical screen's geometry

This is exposed through JS, and sometimes used to center popups and
so on. Exposing the virtual geometry in the case of multi-screen
setups can lead to quirky behavior.

Change-Id: I4fe395dd2a19e5c96d79a33ed6ca08bed9e3d086
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Use explicit dependencies to specify build order

Explicit dependencies make proper parallel builds possible.

Change-Id: I71f7d7fbee1244490dfcb040bb4145ab74d5c416
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Implement inputMethodQuery

This makes it possible on touch devices to use a simple
virtual keyboard input method that synthesizes key events.
This is the minimal requirement to make the the boot2Qt
Keyboard component functional.
For more advanced input methods and the widget tests we will
need to override inputMethodEvent as well.

Change-Id: If9228ee6b1730d72e7424bdb33a9a9c46654507f
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Add missing $PATCH_DIR prefix for WebRtc patch.

It was missing in ac95a438620f3ec7c72ae60396ee26b3778d38b2.

Change-Id: Ib08ea6466835e9d2c55bc7944ae1b758370da30a
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Implement parsing of Chromium .DEPS files.

This is necessary to be able to checkout a chromium
release branch. Chromium release branches do not
make use of git submodule.
Instead the dependencies or submodules are specified
in a .DEPS.git file.
Given some python scopes and callbacks for resolving
variables, such a file can be invoked like a python
script. The dependencies will then be exported
into the provided scopes and we can use that
information to initialize git submodules.

Change-Id: Ibab09b1077720b73f89efff16d38b308f31cf2ab
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Implement subprocessCall and subprocessCheckOutput.

These functions are shims for subprocess.call and
subprocess.check_output and allow to display the
command being executed on screen as well.

Change-Id: I9507b8b4f0c006572211620c935e673f848dbbbc
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Update shasum for 3rdparty submodule.

This is necessary because I pushed patches
on top of the 3rdparty submodule to debug
the mac CI bot.

Change-Id: I3c3f2aff921bc8438bbbb446cbb3e125d21562f7
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Give the demo browser prettier popups

Change-Id: Ia8052bffc7be18c4d8f81c3a89ac4a64b1c589af
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Early return if no submodules were found using DEPS files

While we're at it, also remove a stray currentDir variable
in readSubmodules.

Change-Id: Ia814906597f436513c4e57ed487ba478154eee4f
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Silence a warning

While we're at it, QWebEnginePage::createWindow is non const,
we could probably use a non const d-ptr in there.

Change-Id: If5ad43dcb5d13454c87b7dc84d69b976b1b5e334
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Implement popup dialog

This is used to show like date time picker whose document
content was generated in webkit engine.

Change-Id: I900a6ae5f61646d2ef8497dccc114f7cb5882349
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
QtWebEngine Dev Tools (Web Inspector)

To implement the Web Inspector we need a delegate to handle the http
server and devtools connections, a landing page, a ContentClient to
tell the devtools server where to find its frontend resources, those
frontend resources, and an API for embedders to turn on inspectability
in WebEngineViews.

The frontend resources are build by the chromium build and are copied
over as part of lib's build.

The landing page was taken directly from content_shell. This
should be replaced by either a new one for all QtWebEngine embedders or
by a mechanism for embedders to supply their own (or both).

Change-Id: Id4076d5ede34a91abf8dba443aed4dca4be1b3e5
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Add patch: Do not forward declare UIResourceRequest, Identity, IdentityKey.

This seems to be necessary to compile for OSX 10.7,
and this is the OSX version we currently use in the CI system.

Change-Id: I1edcf35baee040328de11801f58ce78ed1f8f6cb
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Revive QWebEnginePage::evaluateJavascript

We can't have QWebFrame::evaluateJavascript in its old form for
several reasons, the first of which being that we don't have a
QWebEngineFrame class anymore. This is worked around by adding
an optional QString parameter with the XPath.

Another issue is that the WebKit1 API was synchronous, and this would
not play nicely with the very asynchronous nature of chromium we're
now sitting on top of. In order to highlight that when porting, we
need to change the function signature slightly.

This makes evaluateJavaScript a template member function that will
accept function pointers, functors and lambdas,much like the new
signal/slot syntax. QWebEnginePage::IgnoreJavaScriptResult can be
passed when the result is of no interest.

Change-Id: I64e15a6f5a168936c52a4da2cef6285dfd16e0d5
Import fancybrowser example

Change-Id: Ia61fbe3ef6b76c7530d10d4a3305d4208b3469ef
Make fancybrowser build and link

Also update references in the doc.

Change-Id: Ica4d77cb1db040b466c739e4fc1bfd37df544589
Fixup Webkit bug links

There's no such thing as bugs.webengine.org ;)

Change-Id: Ie8ac6a6a0a4e6b23580084d36f334e2fd1cb25fb
[Autotests fixes] Don't assert if there's no QWindow

Or we won't be able to run QWebEnginePage autotests in debug.

Change-Id: I0b479fe7de6bd10984201f292514c343a15135cd