1. Oct 28, 2015
  2. Oct 27, 2015
  3. Oct 09, 2015
    • Joerg Bornemann's avatar
      add RequestClose web action · 2e9c6cd0
      Joerg Bornemann authored
      
      Web pages can set the onbeforeunload handler to let the user confirm
      whether to leave the page or not. Until now, only when leaving the
      page via a link, a confirmation was shown.
      Before actually closing a web page, applications can now trigger
      the RequestClose web action. This will give the use the chance to
      confirm or deny the close request.
      If the request is confirmed, the signal windowCloseRequested is
      emitted.
      
      Task-number: QTBUG-36155
      Change-Id: Icc1fabc37a2ac537f674c2f00bc8966e4dc4e610
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>
      2e9c6cd0
  4. Sep 10, 2015
  5. Jul 30, 2015
  6. Jul 06, 2015
  7. May 07, 2015
  8. Mar 30, 2015
  9. Mar 16, 2015
  10. Mar 09, 2015
  11. Mar 04, 2015
  12. Feb 18, 2015
    • Pierre Rossi's avatar
      Move navigationHistory out of experimental · 6717d581
      Pierre Rossi authored
      
      Add an offset role to the models.
      Implement goBackAndForward that uses this offset.
      
      Also add a complete model, items, that includes current
      navigation entry (at offset 0) to allow for the Firefox-style
      single menu, and add that one to the nano browser example.
      
      The models are now instantiated lazily as it's unlikely the
      three models will be used by the same app.
      
      Change-Id: Ib551738611497c7eb9c501f045cda315968a2ada
      Reviewed-by: default avatarAndras Becsi <andras.becsi@theqtcompany.com>
      6717d581
  13. Feb 16, 2015
  14. Feb 09, 2015
  15. Feb 02, 2015
  16. Jan 23, 2015
  17. Nov 05, 2014
  18. Oct 13, 2014
  19. Aug 12, 2014
  20. May 19, 2014
  21. May 16, 2014
  22. May 05, 2014
  23. Mar 19, 2014
    • Jocelyn Turcotte's avatar
      Fork the quicknanobrowser as tests/quicktestbrowser · c117207e
      Jocelyn Turcotte authored
      
      This also removed experimental API uses from the quicknanobrowser example,
      which should be used mainly for documentation purposes.
      
      The quicktestbrowser should be the one that we use from now on as a raw testbed
      of new APIs.
      
      As with other targets in the tests directory, it will only be built by default
      if Qt is configured with -developer-build (and without -nomake tests).
      
      Change-Id: Ib4461c898cd3227bbb810493daac4d841d0d8f3e
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
      c117207e
    • Jocelyn Turcotte's avatar
      Rename example directories to match the source install destination · 482a89fb
      Jocelyn Turcotte authored
      
      To match other modules example directory structures we should deploy our
      examples in a directory matching the module name, webengine and
      webenginewidgets in our case.
      
      qmake uses the relative directory of each example up to the upper "examples"
      directory to decide where they will be deployed when running the sources
      install target.
      
      Change-Id: I59ce7ff8a30f98fad20064c7eecf72b784f1d275
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
      482a89fb
  24. Mar 06, 2014
  25. Feb 13, 2014
    • Jocelyn Turcotte's avatar
      QQuickWebEngineView new window API refactoring · b81a337a
      Jocelyn Turcotte authored
      
      Improve the code and API in a few ways:
      - Expose a more discoverable "request" argument in the signal.
      - Use the request as the carrier of the backend WebContentsAdapter
        and get rid of our handle.
      - Put the adoption method (renamed to openIn) on the request object
        and keep the view API clean of a context-specific adoptHandle method.
      - Use an enum instead of strings for the new view destination.
      - Do not let JavaScript own the request object since it won't be
        necessary until we want to support asynchronous view attachment.
        We can create the request object on the heap and let the JavaScript
        engine own the object once we want to support it.
      - Move the request class to its own header.
      - Replace tabs.currentView by currentWebView in the quicknanobrowser
        qml code since we now need this property on the root object anyway.
      
      Change-Id: I40d7d15255f516ead9f3e414dd587bf345e6ca4b
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      b81a337a
  26. Feb 11, 2014
    • Zeno Albisser's avatar
      Implement requestFullscreen for QQuickWebEngineView. · fcd08904
      Zeno Albisser authored
      
      This patch adds a property isFullScreen and a signal
      fullScreenRequested to QQuickWebEngineViewExperimental.
      The signal fullScreenRequested is emitted when some web content
      requests fullscreen through the javascript API.
      The property isFullScreen is supposed to be set
      programmatically when the view is being shown fullscreen.
      This information is then available to the WebContentsDelegateQt
      when checking if the fullscreen request has been accepted.
      
      Change-Id: I04cbb45f263a188d26cc87d70ac53b0fbab63936
      Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
      fcd08904
  27. Feb 10, 2014
  28. Feb 06, 2014
  29. Jan 28, 2014
  30. Jan 15, 2014
    • Pierre Rossi's avatar
      Pave the way for our UI delegation strategy. · e4688691
      Pierre Rossi authored
      
      Starting with the context Menus for QtQuick.
      Add default UI delegates as a subproject. We allow ourselves to use
      Qt Quick Controls there for in order to get a nice "out of the box"
      experience for things like context menus, dialogs, etc while leaving
      the door open for system embedders to override this.
      
      Opting out of the deployment of these QML files is still very primitive
      but can be done by passing WEBENGINE_CONFIG+=no_ui_delegates at qmake
      time.
      
      Customization of context menus could be done via a qml component, which
      is probably best kept in experimental for now while we address its
      shortcomings.
      
      Change-Id: I0705b20d5ddd3bb010f9371b65a181c6b02a03e1
      Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
      e4688691
  31. Dec 23, 2013
    • Zeno Albisser's avatar
      quicknanobrowser: reset progress bar when reaching 100% · bac17d00
      Zeno Albisser authored
      
      Change-Id: I146df83948017b5ad72e40d16a8cc7105691c309
      Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
      bac17d00
    • Jocelyn Turcotte's avatar
      createWindow QML API for QQuickWebEngineView · 7d39fa4a
      Jocelyn Turcotte authored
      
      This implements adoptNewWindow for QQuickWebEngineView.
      The API is only intended to be used through QML to avoid delegating
      the QQuickWebEngineViewHandle ownership through a signal parameter.
      
      Another limitation of the implementation is currently to fail the
      handle adoption unless it is done synchronously within the
      adoptNewWindow call. To support this we would need to delay the call
      to WebContentsAdapter::initialize which will leave the adapter
      without a client when returning to the event loop and would require
      putting null checks everywhere it is used.
      So I would prefer to keep the API limited and avoid potential crashes.
      If we want to support asynchronous Loader elements or QML files
      fetched from the network in the future, the API should be able to
      scale to the task once we've adjusted the implementation.
      
      This also adds basic tabs support in the quicknanobrowser example.
      The url property is now set imperatively to avoid overwriting the
      adopted WebContentsAdapter's loading URL.
      
      Change-Id: Iba5c5dc3ffa21045f356be131ca15c01b9aee7c8
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
      Reviewed-by: default avatarZeno Albisser <zeno.albisser@digia.com>
      7d39fa4a
  32. Oct 11, 2013
  33. Oct 04, 2013
  34. Oct 03, 2013
    • Arvid Nilsson's avatar
      Quick: Add Favicon API · ef6cb53a
      Arvid Nilsson authored
      
      Adds a favicon API modelled after the WebKit2 QQuickWebView API, but
      using an http(s) URL instead of a custom protocol, because there's no
      icondatabase yet.
      
      The icon URL lingers even when a new load is committed, until the load
      finishes. It might be more prudent to clear the icon when committing a
      new load, but I opted to let the app take care of that detail if
      desired. Many browsers show a spinner instead of the favicon while
      loading, for example.
      
      There's no widget API implementation for favicons yet, because that API
      only makes sense if we have a full-fledged icon database (case in
      point: QWebEngineSettings::iconForUrl()).
      
      Change-Id: I1e7b85104c80de2ae46a5fe9a273104d43a5c71f
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      ef6cb53a