summaryrefslogtreecommitdiffstats
path: root/shared/shared_globals.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use our own implementation of GetDefaultXDisplay.Jocelyn Turcotte2013-11-111-0/+24
| | | | | | | | This allows the Chromium GL code to initialize on the display created by Qt. Change-Id: I3d21f56c3792d6e99cb94690f56d7dd5c542045a Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Return the physical screen's geometryPierre Rossi2013-10-241-2/+2
| | | | | | | | | 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>
* Centralize type conversion functions.Jocelyn Turcotte2013-08-201-0/+5
| | | | | | | | | | | | | This adds the common GURL->QUrl and string16->QString conversions into a common header and use those functions throughout the code. Move the qStringToStringType into the same header and rename it to a name consistent with the others. This also cleans up shared_globals.h by moving content:: forward declarations in the cpp, where they are used. Change-Id: I19527ea7de1f6047aae8b44c97eb4d7c3e5a0e54 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Fix linking of QtWebEngineProcessAndras Becsi2013-07-041-0/+6
| | | | | | | | | | | | | | Since the global factory function content::CreateWebContentsView is also needed by the web process and we exclude all implementations we have to place the definition of it in the shared static lib. However, to prevent the need for moving platform layer classes back to the shared static lib we have to revert back to use ContentBrowserClient::OverrideCreateWebContentsView in the API layer to create our platform WebContentsViewQt and make the global factory function definition empty. Change-Id: I9d46524b22458b26a043c80df02b4a5fa7d91a55 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Fix the build without c++11Andras Becsi2013-06-281-2/+2
| | | | | | | Use NULL instead of nullptr. Change-Id: I3294cecdc13054011f036a7645d5f97d23f71e0b Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* CreateViewForWidget must return a value.Zeno Albisser2013-06-271-0/+1
| | | | | Change-Id: I4057758500b01ba3b55f7521c9b6384f94ed4255 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Fix the build.Jocelyn Turcotte2013-06-191-2/+2
|
* Move API layer-only classes back from the shared static lib.Jocelyn Turcotte2013-06-191-1/+1
| | | | | | | Since ContentBrowserClientQt::OverrideCreateWebContentsView now takes care of using our Qt layer at runtime without relying on the static RenderWidgetHostView::CreateViewForWidget, we can now avoid linking this layer into the render process.
* Move symbols that we left out from the Chromium build in a separate file.Jocelyn Turcotte2013-06-191-0/+79