RESOLVED FIXED119067
CoordinatedGraphics: Add API to get and set the active state of a WebView
https://bugs.webkit.org/show_bug.cgi?id=119067
Summary CoordinatedGraphics: Add API to get and set the active state of a WebView
Sergio Correia (qrwteyrutiyoup)
Reported 2013-07-24 15:48:09 PDT
Add API for getting and setting the active state of a CoordinatedGraphicsScene
Attachments
Patch (18.31 KB, patch)
2013-07-24 15:50 PDT, Sergio Correia (qrwteyrutiyoup)
no flags
Patch (17.43 KB, patch)
2013-07-29 07:15 PDT, Sergio Correia (qrwteyrutiyoup)
noam: review+
noam: commit-queue-
Patch (17.48 KB, patch)
2013-07-29 08:38 PDT, Sergio Correia (qrwteyrutiyoup)
no flags
Sergio Correia (qrwteyrutiyoup)
Comment 1 2013-07-24 15:50:32 PDT
Sergio Correia (qrwteyrutiyoup)
Comment 2 2013-07-24 15:52:13 PDT
A view being in the "active" state generally means that it is not in the "background", although this definition can vary depending on the platform under consideration. This patch adds the following APIs: - bool WKCoordinatedSceneIsActive(WKCoordinatedScene) This API accepts a WKCoordinatedScene as parameter and returns a boolean indicating whether the given scene is active. - void WKCoordinatedSceneSetActive(WKCoordinatedScene, bool) This API accepts a WKCoordinatedScene and a boolean as parameter, and it sets the active state of given scene to the boolean argument. Additionally, this patch adds enablers to get the WKCoordinatedScene from a WKView.
Noam Rosenthal
Comment 3 2013-07-25 08:21:11 PDT
Comment on attachment 207416 [details] Patch This doesn't belong in WKCoordinatedScene, as it needs to send a message to WebPageProxy/WebPage as well (something like viewStateDidChange), so that the focus controller is aware of the page being deactivated. See how it's done in QRawWebView or QQuickWebPage|View.
Sergio Correia (qrwteyrutiyoup)
Comment 4 2013-07-29 07:15:03 PDT
Created attachment 207651 [details] Patch Updated as per Noam's feedback.
Mikhail Pozdnyakov
Comment 5 2013-07-29 07:20:40 PDT
Comment on attachment 207651 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=207651&action=review looks good > Source/WebKit2/UIProcess/CoordinatedGraphics/WebView.h:60 > + bool isActive(); const method?
Noam Rosenthal
Comment 6 2013-07-29 07:29:39 PDT
Comment on attachment 207651 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=207651&action=review >> Source/WebKit2/UIProcess/CoordinatedGraphics/WebView.h:60 >> + bool isActive(); > > const method? Please make const before submitting.
Sergio Correia (qrwteyrutiyoup)
Comment 7 2013-07-29 08:38:03 PDT
Created attachment 207659 [details] Patch Marking WebView::isActive() const
WebKit Commit Bot
Comment 8 2013-07-29 09:23:57 PDT
Comment on attachment 207659 [details] Patch Clearing flags on attachment: 207659 Committed r153428: <http://trac.webkit.org/changeset/153428>
Note You need to log in before you can comment on or make changes to this bug.