summaryrefslogtreecommitdiff
path: root/lib/qwebcontentsview.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Split out the Widgets and QtQuick integrationPierre Rossi2013-07-311-164/+0
| | | | | | | | | | | | | | | This is the first step to making proper Qt Modules out of QtWebEngine. The Widgets integration becomes a proper C++ Qt Module while we make the QtQuick side a QML plugin for now (could probably be promoted if the need arises). Code-wise, this means the introduction of a WebContentsAdapterClient interface that is subclassed by the private implementation of our API classes for delegation of things that are UI specific. Functionality from WebContents and the like is exposed via the WebContentsAdapter. Change-Id: I4ca3395b9fe8502a24e36002cfd5af44067bb6e8 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Fix linking of QtWebEngineProcessAndras Becsi2013-07-041-1/+0
| | | | | | | | | | | | | | 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>
* Deduplicate data in private view classesAndras Becsi2013-06-251-7/+1
| | | | | | | | Move common data from WebContentsView private classes to the common base class WebContentsViewQtClient. Change-Id: I77484691a24d14403c8a6e434d6fb33ac557637e Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Use QStackedLayout instead of QVBoxLayout.Jocelyn Turcotte2013-06-191-4/+3
| | | | | | | | When navigating a page, a new RenderWidgetHostViewQtDelegate will be added to our layout to swap the current one out. This leads QVBoxLayout to momentarily split-layout both views in the container, causing a resize of the views and triggering an unneeded BackingStore creation and re-paint.
* Move RenderWidgetHostViewQt out of the content namespace.Jocelyn Turcotte2013-06-191-1/+1
|
* Use Q_PRIVATE_SLOT for QWebContentsViewPrivate.Jocelyn Turcotte2013-06-191-2/+4
| | | | | | | | | Fix the gyp generator to allow including the moc file directly in qwebcontentsview.cpp to be able to use Q_PRIVATE_SLOT instead of having the private object deriving from QObject. This also removes the use of MOCABLE_SOURCES whose entries were added to 'sources' without moc being run on them first.
* Allow the API class to provide the page widget rendering implementation.Jocelyn Turcotte2013-06-191-6/+15
| | | | | | | - Rename NativeViewQt to RenderWidgetHostViewQtDelegate to keep the context obvious. - Use an interface to handle the parenting instead of the NativeViewContainerQt mechanism that was needed with the Shell.
* Remove an unused member from WebContentsDelegateQt.Jocelyn Turcotte2013-06-191-1/+1
|
* Hide the p-impl pointer the same way as QObject to be able to use Q_D and Q_Q.Jocelyn Turcotte2013-06-191-4/+33
|
* define CONTENT_IMPLEMENTATION directly in the common .gypi filePierre Rossi2013-06-191-3/+0
|
* Disable the back/forward buttons when appropriate.Zeno Albisser2013-06-181-0/+10
|
* Add initial API layer for widgets.Zeno Albisser2013-06-181-7/+18
|
* Add initial API layer for QtQuick and connect the signals accordingly.Zeno Albisser2013-06-181-1/+1
|
* cleaner content margins for the nested layoutsPierre Rossi2013-06-181-0/+1
| | | | also remove QQUICKWEBENGINE env var
* Quick cleanup.Jocelyn Turcotte2013-06-121-4/+1
|
* Start simplifying WebContentsDelegateQtPierre Rossi2013-06-121-1/+8
| | | | Mostly removing duplicated code so far.
* Get rid of BlinqApplication.Jocelyn Turcotte2013-06-111-0/+4
| | | | | | | | Rename the class to WebEngineContext and keep it as a ref-counted member of pages instead. Also: - Change the user-agent product to QtWebEngine - Don't pass actual command line arguments to Chromium anymore - Allow attaching to the event loop through Before/AfterRun instead of blocking
* And shell is out !Pierre Rossi2013-06-101-2/+2
| | | | | | | Introduce a few more bits of our own very basic implementations (URLRequestContextGetter and NetworkDelegate subclasses). Still need to figure out the appropriate dependancies in blinq.gypi
* Cleanup unneeded global variables.Jocelyn Turcotte2013-06-101-7/+0
|
* Replace Shell with WebContentsDelegateQt.Zeno Albisser2013-06-101-15/+11
|
* Call WebContents directly in API classes instead of delegating through ShellJocelyn Turcotte2013-06-061-4/+13
|
* Properly implement a QWidget and QtQuick APIJocelyn Turcotte2013-06-061-0/+107
This layers things properly to be able to implement the UI in the example application instead of directly in shell_qt.cpp. This is still using global variables to allow the Shell platform code to do callbacks to the API classes. This should go away once we properly implemented a WebContentsDelegate.