1. 10 Nov, 2014 - 1 commit
  2. 29 Oct, 2014 - 1 commit
  3. 07 Oct, 2014 - 1 commit
  4. 26 Sep, 2014 - 1 commit
  5. 15 Aug, 2014 - 1 commit
    • Jocelyn Turcotte's avatar
      Fix uncalled callbacks with findText · 423b399a
      Jocelyn Turcotte authored
      
      Calling findText successively might prevent the previous pending
      FindReply to be sent, which would leak the callback on the
      application side.
      
      This would cause a crash in qupzilla since we empty all pending
      callbacks in the QWebEnginePage's destructor to catch this kind
      of issue.
      
      This also renames lastRequestId to nextRequestId to make it clear
      that this is the ID generator for everything, including findText,
      and that lastFindRequestId is only a tracker.
      
      Change-Id: Ia78d553a58ed31af7237aad8772fa9828560c6d4
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      423b399a
  6. 04 Aug, 2014 - 1 commit
  7. 07 Jul, 2014 - 1 commit
  8. 01 Jul, 2014 - 1 commit
  9. 29 Apr, 2014 - 1 commit
  10. 15 Apr, 2014 - 2 commits
  11. 08 Apr, 2014 - 2 commits
  12. 21 Mar, 2014 - 1 commit
    • Jocelyn Turcotte's avatar
      Base load signals on Blink loader events · f06cb10c
      Jocelyn Turcotte authored
      
      This mainly remove the use of the LoadingStateChanged callback, which
      is tied to DidStartLoading and DidStopLoading.
      Those signals are handled from the browser process side, also wrapping
      the time where the render process is initialized. We can't rely on
      those signals for loadStarted, but afterward rely on the Blink loader
      for loadFinished. We must use the same source for both.
      
      Instead only rely on Blink callbacks ultimately related to network
      events. This gives us a behavior closer to QtWebKit.
      
      The major compromise that this forces us to to accept is that
      loadStarted is now triggered asynchronously. This will basically break
      anything expecting loadStarted to be emitted synchronously from the
      load method.
      
      This also adjust autotests to get a few more passing.
      
      Initial-patch-by: default avatarPierre Rossi <pierre.rossi@digia.com>
      Change-Id: Ib6c0170df891d1b7f8ed4dc1d483985523e267dc
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      f06cb10c
  13. 13 Feb, 2014 - 2 commits
    • Jocelyn Turcotte's avatar
      Implement QWebEnginePage::findText · 324706a5
      Jocelyn Turcotte authored
      
      A few changes to the API:
      - Return the success result asynchronously.
      - FindWrapsAroundDocument and HighlightAllOccurrences are enabled by
        defaults and cannot be disabled.
      - Found text isn't updating the selection on the page like QtWebKit
        did, but triggers a separate state not available. A find count and
        current index could be exposed, but isn't in this case to keep the
        API delta lower.
      
      This also adds the possibility to pass bool results through the
      CallbackDirectory and add a new tst_QWebEnginePage::findTextResult
      test since the old test relied on the selection to be updated when
      the searched text is found.
      
      Change-Id: I8189b5aea8d832df183c6c1ae03e3f08198a9c45
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      324706a5
    • Jocelyn Turcotte's avatar
      Implement QWebEnginePage::selectedText · 9cf0007b
      Jocelyn Turcotte authored
      
      Change-Id: Idebde8da0befbea7ccc5942de1e09fcc61ce16d4
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      9cf0007b
  14. 12 Feb, 2014 - 2 commits
  15. 30 Jan, 2014 - 2 commits
  16. 22 Jan, 2014 - 1 commit
  17. 17 Jan, 2014 - 1 commit
  18. 13 Nov, 2013 - 1 commit
  19. 14 Oct, 2013 - 1 commit
  20. 02 Sep, 2013 - 1 commit
    • Jocelyn Turcotte's avatar
      Implement window creation through QWebEnginePage::createWindow. · 7146fcc1
      Jocelyn Turcotte authored
      
      This makes the necessary changes to handle
      WebContentsDelegateQt::AddNewContents and funnel the callback
      through createWindow in QWebEnginePage and QWebEngineView.
      
      - Expose the AddNewContents callback through WebContentsAdapterClient
      - Allow creating a WebContentsAdapter attached only on the Chromium side,
        leaving the choice to QWebEnginePage to either adopt it and call
        WebContentsAdapter::initialize to attach itself as the client, or
        destroy it if the application isn't handling the call.
      - Delay the InitAsChild handling in RenderWidgetHostViewQt when
        it is called before an adapter client has been attached.
      - Since WebContentsAdapterClient::CreateRenderWidgetHostViewQtDelegate
        is only a factory method, not creating any link with the callee client,
        allow using the creating window's adapter client to create the RWHVQtDelegate.
        This allows an unparented delegate to be created instead of needing to
        add numerous null-checks in RWHVQt.
        Use content::WebContents::CreateParams::context for this purpose,
        which can be used both when creating a WebContents ourselves and when
        a new window's WebContents is created for us.
      
      Change-Id: I032262e867931dc40a7c2eca0c993027a555f56e
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
      7146fcc1
  21. 23 Aug, 2013 - 1 commit
  22. 20 Aug, 2013 - 5 commits