summaryrefslogtreecommitdiffstats
path: root/lib/web_contents_view_qt.h
Commit message (Collapse)AuthorAgeFilesLines
* Avoid keeping a RWHVDelegate pointer in WebContentsViewQt.Jocelyn Turcotte2013-08-121-1/+0
| | | | | | | | | There can be multiple RWHVDelegates within one WebContentsViewQt during navigation. Avoid keeping a pointer by sending the focus call to the client directly, which fits the purpose better. Change-Id: I863c174e9a2567f3580f3cb525bc5353ab2a4417 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Fix some style inconsistencies in the header file.Michael Brüning2013-08-071-3/+3
| | | | | | | Changed the header #defines to UPPERCASE_CLASS_NAME_H. Change-Id: I49dec91d7a97808c1b9618df6d985939fd84babb Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Split out the Widgets and QtQuick integrationPierre Rossi2013-07-311-12/+3
| | | | | | | | | | | | | | | 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>
* Cleanup after chromium update.Zeno Albisser2013-07-241-2/+2
| | | | | | | | | | | | | | | | | | | - Implement recently added pure virtual members: BrowserContextQt::GetPath() const BrowserContextQt::RequestMIDISysExPermission(...) - Remove obsolete function GetSpeechRecognitionPreferences. - Rename usage of GetActiveURL() to GetVisibleURL(). - Update namespace for usage of type WebPluginGeometry. - Adjust parameters of RenderWidgetHostViewQt::TextInputChanged. - Rename RenderWidgetHostViewQt::RenderViewGone to RenderProcessGone - set_http_server_properties now takes a scoped_ptr. - Rename WebDropData to content::DropData. - Rename WebMenuItem to content::MenuItem. - webkit/support/webkit_support.gyp has been moved to webkit/webkit_resources.gyp. Change-Id: I6d5d281b797a8f6197ecb53a08798bd1f6845754 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Fix linking of QtWebEngineProcessAndras Becsi2013-07-041-1/+1
| | | | | | | | | | | | | | 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>
* Stop using OverrideCreateWebContentsView for creating the contents viewAndras Becsi2013-07-041-1/+1
| | | | | | | | Use the content::CreateWebContentsView factory function to create the contents view since we already have to implement it. Change-Id: Ib60cb29604ac84877e154a47ae27f44672284726 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Get rid of some more QT_NOT_YET_IMPLEMENTEDAndras Becsi2013-07-031-3/+3
| | | | | Change-Id: I4fb120592eccfd1e75db32c76ddcbdad77762106 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Implement focus handling functionsAndras Becsi2013-07-021-4/+5
| | | | | | | | | Add setKeyboardFocus and hasKeyboardFocus members to the render widget host view delegates and use them for focus handling. Change-Id: Id117298bccc5fdbbb940869e64d925f3708e808c Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Add function stubs required to be reimplemented on Mac.Zeno Albisser2013-06-271-0/+7
| | | | | | | | | This commit only adds empty function stubs. All of these should be reevaluated and the QT_NOT_YET_IMPLEMENTED macro should be removed. Change-Id: I181fd89628cf84a421f54bbc5c31a544e04cf944 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Implement WebContentsViewQt::GetContainerBoundsAndras Becsi2013-06-271-1/+1
| | | | | | | | This is based on other ports' implementations and seems to be used for sizing / positioning popup menus. Change-Id: I96fa89529157a774571f252d751879b7e61119d0 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Use WebContentsViewQt::SetPageTitle for title change notificationsAndras Becsi2013-06-251-1/+1
| | | | | | | | | | Using the NotificationObserver mechanism for this purpose seams to be a bit of overkill so remove the inheritance from WebContentsDelegateQt. We can re-add it later if we find useful notifications. Change-Id: I4dff59f66893cd36ed8c0700fa492a3eeb99f87b Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Deduplicate data in private view classesAndras Becsi2013-06-251-8/+7
| | | | | | | | Move common data from WebContentsView private classes to the common base class WebContentsViewQtClient. Change-Id: I77484691a24d14403c8a6e434d6fb33ac557637e Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Move RenderWidgetHostViewQt out of the content namespace.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.
* Allow the API class to provide the page widget rendering implementation.Jocelyn Turcotte2013-06-191-8/+14
| | | | | | | - 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.
* Fix undefined symbols in debug builds.Jocelyn Turcotte2013-06-101-3/+4
| | | | | | | process uses the same code as lib and decides at runtime which code to run. Fix the debug build by making sure that all infrastructure code is available in both process and lib by building common code not shared directly through chromium sources in a separate static lib.
* Implement support for QtQuick2.Zeno Albisser2013-06-051-4/+4
| | | | | | | | | | | | | | | | | The current preliminary implementation uses the QQuickPaintedItem. The RasterWindow is being replaced by an abstract NativeViewQt class, which can be instantiated as QWidgetNativeView or QQuickNativeView. The NativeViewContainerQt builds a wrapper around an instance of these classes and serves as a common api towards chromium. Due to the current design where the view is being created by the shell, we introduce a browser_window.qml which provides a very basic browser UI. The content is then being injected into an item within that browser window. Just executing the example the "regular" way will launch the Widgets example. To launch the QtQuick2 example, the environment variable QQUICKWEBENGINE must be defined.
* Add standard license boilerplateSimon Hausmann2013-05-311-1/+42
|
* Integrate the event loop with QApplication.Jocelyn Turcotte2013-05-311-0/+1
|
* Create the RasterWindowContainer in WebContentsViewQt.Zeno Albisser2013-05-311-4/+3
|
* Remove WebContentsViewGtk dependency.Zeno Albisser2013-05-311-3/+45
|
* Make use of OverrideCreateWebContentsView.Zeno Albisser2013-05-311-155/+30
|
* make the backingstore use a QPixmap instead of QBackingStoreZeno Albisser2013-05-311-1/+2
|
* Introduce RasterWindowContainer to allow reusing the container with ↵Zeno Albisser2013-05-221-0/+156
different child views. Pass the view to BackingStoreQt::displayBuffer instead of creating it implicitly. Rename RenderWidgetHostView to RenderWidgetHostViewQt and move it into namespace content. Copy in web_contents_view from gtk to allow for modifications outside of the chromium tree. Remove the ViewHostFactory, as it is meant to be used for testing only.