BASELINE: Update chromium to 40.0.2214.28 and ninja to 1.5.3.

Change-Id: I759465284fd64d59ad120219cbe257f7402c4181
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Use the .gitattributes from the modules for the submodule as well.

This should prevent the .gitattributes file ending up in the src
snapshot.

Task-number: QTBUG-41607
Change-Id: I1735331dcbb5f57d30951f942e18bd9c40c803df
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
<third_party/icu> Do not use icu-config on eLinux

We require that the icu libs are in the default library seach path.

Change-Id: Ia4981781f4239617831909da1250a61191a8c7dd
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
<chromium> Add WebEngineContext to RunLoop's friends.

Change-Id: I2bb2600637ac5a3473273789cd61c257d682b702
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
<tools/gyp> Fix build with toplevel-dir

Change-Id: I3fcbf166978cf20f7a07d7e6bda135864054e9c1
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
<tools/gyp> Add support for libc++ to xcode_emulation.py

Change-Id: Ifbe063950d14d8388e3c8c1d6cebdfae5cbdb8ae
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
<chromium> Mac: Use libc++ instead of stdlibc++.

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.

Change-Id: Ief9e8901d0463f2bb62a5960cde03543b3999be1
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.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: Andras Becsi <andras.becsi@theqtcompany.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: Andras Becsi <andras.becsi@theqtcompany.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: Andras Becsi <andras.becsi@theqtcompany.com>
<chromium> Allow overriding GetXDisplay

This allows Chromium to fetch the XDisplay owned by Qt instead of a
new one. We were previously overriding MessagePumpForUI::GetDefaultXDisplay
but this was removed along with the switch to Aura.

Change-Id: I9fb53c8cc955f124d88ad0e6ca690f88e816847e
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.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: Andras Becsi <andras.becsi@theqtcompany.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: Andras Becsi <andras.becsi@theqtcompany.com>
<chromium> Declare a Qt IPC message class

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

Change-Id: I1b401c9c05efc8339c5cacf50f087890447b68a6
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.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.

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

Change-Id: I5fecc09e245b75d0fec16756f8d6e6b8f71a143e
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.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.

Change-Id: I0368bb36948ba9612040ed869ef818d4b8471b9b
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.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.

Change-Id: Ib430f8686862cf0958ccdbfefb8bfa36af590e97
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.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.

Change-Id: I15049609dd77be6de2a2398f25a37fff1b6f5519
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.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.

Change-Id: Ic5266f818432b4432ed1d8a1ac07f434cb5b86e6
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>