<chromium> Add WebEngineContext to RunLoop's friends.

Change-Id: I2bb2600637ac5a3473273789cd61c257d682b702
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Mac: Use libc++ instead of stdlibc++.

- Add a missing include file to process_iterator_mac.cc.
- Disable Chromium clang plugins.
- Add a use_libcpp variable to common.gypi that can be used
  to build with libc++ instead of libstdc++.
  In this case several warnings also must be disabled.
- ext/hash_map and ext/hash_set are deprecated.
  Use unordered containers as a replacement.

Change-Id: Ief9e8901d0463f2bb62a5960cde03543b3999be1
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Do not modify the child path.

We currently only have a single process binary for Qt.
Therefore we should not choose a different binary based on required privileges.
However, this patch can only be a preliminary solution.
May be we should instead implement our own ChildProcessHost.

Change-Id: I03af6257c7be04ab09c9828d707d30430961a17c
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Build files necessary for touch and gestures.

Also guard the use of MessagePumpAuraX11 in events_x.cc. We need to
build it to get symbols depending on base::NativeEvent.

Change-Id: Ib7bb4fb1fc8692df1b8151c3d159de3d0f73076f
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Solve conflicts when including both QtOpenGL headers and resource_provider.h

If resource_provider.h is going to be used to integrate delegated frame
to external compositors, it should avoid conflicting with the system's gl.h.

Change-Id: Ie37d6cde263157e6717cc006a0896f0b9ebdaa5d
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Fix the build with a GL ES2 configured Qt.

GLES/gl2.h is included through Qt public headers and the copy of
Chromium is used since its include path comes before /usr/include.
The problem is that this header is incompatible for some reasons,
one of them being that it converts all GL function symbols from
gl* to GLES2*.

Qt layer code should always need to go through GL directly,
so make sure that only GYP targets that depend directly on gpu.gyp,
khronos.gyp or webkit_gpu.gyp will have an include path
pointing to those headers.

Replace all_dependent_settings with direct_dependent_settings and
control which target inherits this include_dirs from its dependencies
by using export_dependent_settings.

Change-Id: I82ae8a5a62f7d968375b971757b2126670a02461
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Hide the definition of MessagePumpX11::GetDefaultXDisplay

This should replace patch 0011 since we do not build GTK code any more.

Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Change-Id: I08ba240fd24e2bd644229458a316fb5886dbd82b
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Add accessors for the Qt delegated renderer integration.

This is needed to fetch the MessageLoop, the MailboxManager and the
SyncPointManager of the GPU in-process host.

Change-Id: I7f38e32b2df11da5b046f16643841d34260c11fb
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Add seams to setup GL contexts sharing with QtQuick.

This will allow us to know right before the first GL context is
instantiated by Chromium so that we can install those contexts to
be shared with QtQuick GL contexts as well.

Change-Id: Id55337a7b42d25ac084698a23dbfab06cb273505
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Declare a Qt IPC message class

This allows Qt-specific IPC messages to be declared in QtWebEngine.

Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Change-Id: I1b401c9c05efc8339c5cacf50f087890447b68a6
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Blacklist the skypebuttons plugin

Even though plugins are disabled it happens that the libraries are
loaded and cause a crash since skypebuttons pulls Qt4 with it on
Linux and creates a dynamic linking error conflicting with Qt5
symbols.

Add the plugin library name to the blacklist to avoid it being
loaded altogether.
We have a similar fix in QtWebKit doing the same thing.

Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Change-Id: I45abf31c4e94a8b61aff85765a91436dabae1b2e
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Remove the Running without renderer sandbox error message

We are currently not planing to enable the sandbox and the error
pollutes the auto tests output.

Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Change-Id: I2675aa2e03394f1c03e4df6bd1b21764ed19206a
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Update clipboard.h to allow building clipboard_qt.cpp on all platforms

Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Change-Id: I5fecc09e245b75d0fec16756f8d6e6b8f71a143e
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Get rid of the gtk/pango/cairo dependency

This also removes the aura dependency to chrome resources
since we repack the needed resources ourselves.

Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Change-Id: I0368bb36948ba9612040ed869ef818d4b8471b9b
<chromium> Cherry-pick https://codereview.chromium.org/137433002 from upstream

This fixes the build with a cross compiler toolchain.
We do not require the functionality of this script but
gyp tries to run it and fails if the specified file
does not exist.

As the upstream issue mentions, this script is "going
away soonish", until then we can keep this patch around.

Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Change-Id: I5de88fcaf750bad4eec2d72a134a86f75a30453e
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> fixup select elements.

We use RenderWidgetHostViewQt, not RWHVMac, even on Mac.
Since some platform decisions seem to have transpired all the way to
the content layer, we should simply use the web ui for select elements
on mac for the time being.

Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Change-Id: Ib430f8686862cf0958ccdbfefb8bfa36af590e97
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Do not directly override libc symbols from the library.

Instead we export _override symbols and add the symbol
renaming directly into the QtWebEngineProcess source.

Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Change-Id: I15049609dd77be6de2a2398f25a37fff1b6f5519
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Adjust gyp defines for eLinux.

- Add Raspberry PI chipset to list of defined platforms.
- Make sure to include sources for xdg support.
- Do not use pkg-config-wrapper, as our sysroot pkg-config
  already returns absolute paths.
- Use openssl for eLinux.
- Use fontconfig and freetype2 for eLinux.

Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Change-Id: Ic5266f818432b4432ed1d8a1ac07f434cb5b86e6
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<chromium> Fix Renderer and GPU threads on windows

These threads are using the UI message loop on Windows per default. This
won't work since the UI message loop is handled by Qt and the Renderer
and GPU threads won't work with it properly.
Force these threads for using the default message loop as they use it on
Linux platform.

Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Change-Id: I8b04ba9070912378cf1d13173ddff48e98f9a49b
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
<third_party/WebKit> Remove leftovers from WebKitSystemInterface

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