summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix BrowserContextQt::GetPath() to return path to user data directoryAndras Becsi2013-07-263-40/+43
| | | | | | | | | Besides returning a proper application specific user data directory, this patch removes the duplicate definition of GetPath() which was added by accident with the recent chromium update. Change-Id: Ia30d598e3ef99eb88000498ef3a00ccae0593ff8 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Silence compiler warningsAndras Becsi2013-07-263-3/+2
| | | | | | | | Remove unused variables, add missing return and avoid comparing unsigned integers with signed ones. Change-Id: I9b295a5dc10927ec89471a424c93cf3b168cf078 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Cleanup after chromium update.Zeno Albisser2013-07-247-13/+24
| | | | | | | | | | | | | | | | | | | - 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>
* [Mac] Buildfix: reintroduce ResourceBundle::GetLocaleFilePath.Zeno Albisser2013-07-191-0/+9
| | | | | | | | | As this function is excluded using a !defined(OS_MACOSX) in resource_bundle.cc, we have to add a replacement for it in resource_bundle_qt.cpp using the inverted logic. Change-Id: I9b19977c61113280d2af75ba51a5466ecfc0e033 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Fix the duplicate symbols build failure.Jocelyn Turcotte2013-07-191-5/+0
| | | | | | | | | resource_bundle_*.cc weren't excluded properly and ResourceBundle::GetLocaleFilePath is in resource_bundle.cc rather than resource_bundle_gtk.cc. Change-Id: I9e56a7d88e859354a4d7115a61b99f7487fc7a39 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Add a python script to generate the chromium .pak resource files.Zeno Albisser2013-07-182-3/+4
| | | | | | | | This is necessary, because the pak files must be available when qmake checks for the dependencies for RESOURCES in lib.pro. Change-Id: Ia173c70746402b2fee09bfa035a9f8780e88cc94 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Add support for file and data url scheme.Zeno Albisser2013-07-167-1/+201
| | | | | | | | | | | | | | | | | | | | | | | | | Local file and data url support can simply be added by registering the appropriate ProtocolHandlers. Displaying the contents of a directory is slightly more complex. This requires access to some html resource files that can be used to list the contents in rows. For Chromium such resource files are usually contained in a .pak file which is shipped with the binary. Since deploying additional files is very complicated for Qt, we want to use the Qt Resource System to bundle .pak files. Therefore this patch adds handling of rcc content generated from a .qrc file to our gyp_generator.prf. Further it replaces the regular ResourceBundle implementation with a Qt specific one. And it also implements a DataPackQt class that allows using DataPack instances with data from a QByteArray and therefore from the Qt Resource System. Change-Id: Ic41e34fbd9aec8596cbc85666a762ecdaa604edc Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Set up TransportSecurityState for UrlRequestContext.Michael Brüning2013-07-121-0/+4
| | | | | | | | | | Trying to connect to an ssl socket will trigger an assertion now if there is no valid TransportSecurityState specified. Hence, we create one now and pass it with the HttpNetworkSession::Params. Change-Id: I61cda2d0b662a95d32085092e74e0499c008c57f Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Add missing header for ThreadRestrictions.Zeno Albisser2013-07-111-0/+1
| | | | | Change-Id: Iac3ea8525bb70f6f6bc442f486b72dad16e3f545 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Remove unneeded code from BrowserMainPartsQtAndras Becsi2013-07-092-21/+4
| | | | | | | | Remove code that would only be needed for content_browsertests that we do not require for now. Change-Id: I2cabbcfe63bcc0da838462eb97ab8c7eaf7289c7 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Do not leak singletons in WebEngineContextAndras Becsi2013-07-092-14/+20
| | | | | | | | | Prevent leaking ContentMainDelegateQt, ContentMainRunner and BrowserMainRunner in WebEngineContext so that resources are cleaned up and corresponding notifications are executed. Change-Id: Ib4a13b5e739ed0e60c90bf721a943a3ad19c206c Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Refactor process initialization codeAndras Becsi2013-07-092-119/+124
| | | | | | | | | Move parts of the initialization from the WebEngineContext ctor to ContentMainDelegateQt and BrowserMainPartsQt members so that they are executed in their respective stages of startup. Change-Id: Iefa288c6bf775ac530f183c0dcfebb6a3230d68d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Get rid of or upstream chrome_path patch for zygoteAndras Becsi2013-07-091-28/+21
| | | | | | | | | | | | | Override base::FILE_EXE in ContentMainDelegateQt::PreSandboxStartup() with the path to our child process and get rid of the command line argument and the content::CHILD_PROCESS_EXE override. This reduces 0001-My-local-fixes.patch to export ContentMainRunner so the patch can be renamed to better reflect it's purpose. This hunk is still needed since we need to access ContentMainRunner's Initialize() to set our ContentMainDelegate. Change-Id: I808cb114100300a33f8cb1b154c6cde89cbf5d98 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Get rid of the need to export content::GetContentClient()Andras Becsi2013-07-093-2/+27
| | | | | | | | | | | ContentBrowserClientQt is a singleton which makes it possible to access it from WebContentsViewQt and removes the need for patching chromium. This is similar to how ShellContentBrowserClient is managed in the content shell. Change-Id: I67f35520935388888c7230806ad543a58b3211c3 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Cleanup include mechanismPierre Rossi2013-07-041-0/+1
| | | | | | | | | Add proper support for GYPINCLUDES in gyp_generation. Rename the exclusion gypi to a more generic name so we can use it for more intrusive changes (we'll need it for mac). Change-Id: Ie26f579c33d5e35b8c904fab9f448cde11bf0072 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Fix linking of QtWebEngineProcessAndras Becsi2013-07-046-14/+10
| | | | | | | | | | | | | | 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>
* Disable plugins for nowAndras Becsi2013-07-041-0/+1
| | | | | | | | Do not start the plugin process since pages with flash content do not load. We need to look into plugin support at some point. Change-Id: Ia888fc07531d1b904d43dd4e1e97b7a0f5dcf443 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Stop using OverrideCreateWebContentsView for creating the contents viewAndras Becsi2013-07-044-13/+11
| | | | | | | | 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>
* Uncomment and fix implementation of CopyFromBackingStore.Zeno Albisser2013-07-031-17/+33
| | | | | | | | | | | | | | This was commented out when we were using QBackingStore. But since we switched back to using a simple QPixmap, this code can be reinserted. However the copy part of the code required some fixes. We copy rect.height() number of lines with rect.width()*bytesPerPixel length each, and then apply an offset of m_backingStore.width()*bytesPerPixel to get the start of the next copy rect line. Change-Id: I0979fab969b6237b847ce82e95a3dd3478f3cf7b Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Get rid of some more QT_NOT_YET_IMPLEMENTEDAndras Becsi2013-07-033-16/+8
| | | | | Change-Id: I4fb120592eccfd1e75db32c76ddcbdad77762106 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Implement CreateWebContentsView and exclude web_contents_view_* from build.Zeno Albisser2013-07-021-0/+4
| | | | | Change-Id: I1b5259d7e35631c9cce93b61426846cfb0b92882 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Implement focus handling functionsAndras Becsi2013-07-028-11/+46
| | | | | | | | | 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>
* [Mac] Make sure old style check macros are not exported by AssertMacros.h.Zeno Albisser2013-07-021-0/+9
| | | | | Change-Id: Id57534d47cd932f9aed75ccb5ed33ebe8c28a8cb Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Include header for skia::PlatformBitmap.Zeno Albisser2013-07-011-0/+1
| | | | | Change-Id: Iacf9e37b5bfe8df9eb061073103d90c79832eca1 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Fix potential null pointer dereference crashAndras Becsi2013-06-281-1/+1
| | | | | | Change-Id: I88588a34cb857cecd8dbe95ca87510443a4524fd Reviewed-by: Matt Broadstone <mbroadst@gmail.com> Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Update include path for string_util.h.Zeno Albisser2013-06-281-1/+1
| | | | | | | | Suggested by mbroadst. Change-Id: I536da2bd57ad3467538f7e83070a9641f6ed5993 Reviewed-by: Matt Broadstone <mbroadst@gmail.com> Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Avoild calls to RenderWidgetHostViewQt::GetNativeView()Andras Becsi2013-06-282-5/+27
| | | | | | | | | | | | | Override RenderWidgetHostView::GetPhysicalBackingSize() since the implementation in RenderWidgetHostViewBase calls GetNativeView only to get the device scale factor of the screen. This way we can avoid calls to GetNativeView for now. Add a new macro QT_NOT_USED to mark evaluated and currently unused and possibly unneded functions and mark gfx::NativeView related functions in our render widget host view implementation as unused. Change-Id: I32011334fe06618cb47ea649d2f6e4393310dc13 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Add function stubs required to be reimplemented on Mac.Zeno Albisser2013-06-272-0/+22
| | | | | | | | | 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-272-1/+10
| | | | | | | | 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>
* Replace include by forward declaration in the private headersAndras Becsi2013-06-274-5/+4
| | | | | | | Also remove some unneeded includes. Change-Id: I335bfb1d8c74b2e44d7bf576c3b76f6c32af35c3 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Deduplicate RenderWidgetHostViewQt member in delegatesAndras Becsi2013-06-275-7/+8
| | | | | | | | | Move RWHV member to common base class RWHVDelegate instead of declaring it in both the widget and quick implementations, and do not leak it. Change-Id: I72d692e10128a6b4cb5c2e3c3817d6dca078c2bc Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Use WebContentsViewQt::SetPageTitle for title change notificationsAndras Becsi2013-06-254-18/+7
| | | | | | | | | | 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-257-32/+72
| | | | | | | | Move common data from WebContentsView private classes to the common base class WebContentsViewQtClient. Change-Id: I77484691a24d14403c8a6e434d6fb33ac557637e Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Extract QQuickWebContentsViewPrivate declaration into its own headerAndras Becsi2013-06-253-14/+65
| | | | | Change-Id: Iad87d10b1dca699a9b6b0ab60a4b90b19f515434 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Adding some missing license headersSergio Ahumada2013-06-251-0/+41
| | | | | Change-Id: If41e2991be7877060f7739877f756acf2679b688 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Fix build with ToTAndras Becsi2013-06-241-1/+1
|
* Fix the regression introduced by the previous build fix.Michael Brüning2013-06-212-15/+4
| | | | Methods signatures were changed, not new methods added.
* Fix build due to new pure virtuals in RenderWidgetHostView.Michael Brüning2013-06-212-0/+11
|
* 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.
* Fix the build.Jocelyn Turcotte2013-06-191-0/+1
|
* Move RenderWidgetHostViewQt out of the content namespace.Jocelyn Turcotte2013-06-1910-29/+13
|
* Use Q_PRIVATE_SLOT for QWebContentsViewPrivate.Jocelyn Turcotte2013-06-193-8/+8
| | | | | | | | | 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.
* Add missing license headers.Jocelyn Turcotte2013-06-194-0/+164
|
* Move API layer-only classes back from the shared static lib.Jocelyn Turcotte2013-06-1913-9/+1525
| | | | | | | 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.
* Simplify the BackingStore handling.Jocelyn Turcotte2013-06-194-38/+18
| | | | | | | | | | | | | This patch removes the black borders around the widget when resizing. - No need to resize the BackingStore direcly, RenderWidgetHostImpl::WasResized takes care of allocating a new one with the correct size. - Get the backing store just before painting instead of pushing it when scheduling an update. Getting the backing store has side effects that assumes it is done that way. - Remove the about_to_validate_and_paint_ check as all our painting updates are scheduled back to the event loop and that we are now only fetching the BackingStore at this point.
* Allow the API class to provide the page widget rendering implementation.Jocelyn Turcotte2013-06-1910-25/+377
| | | | | | | - 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-194-7/+4
|
* Hide the p-impl pointer the same way as QObject to be able to use Q_D and Q_Q.Jocelyn Turcotte2013-06-195-27/+66
|
* define CONTENT_IMPLEMENTATION directly in the common .gypi filePierre Rossi2013-06-192-6/+0
|
* Disable the back/forward buttons when appropriate.Zeno Albisser2013-06-182-0/+12
|