RESOLVED FIXED 70076
[chromium] Make it possible for plugins to get current fullscreen element.
https://bugs.webkit.org/show_bug.cgi?id=70076
Summary [chromium] Make it possible for plugins to get current fullscreen element.
polina
Reported 2011-10-13 17:03:44 PDT
WebCore::Document already has webkitCurrentFullScreenElement(). Add a wrapper for it in WebKit::WebDocument.
Attachments
Patch (2.86 KB, patch)
2011-10-13 17:16 PDT, polina
no flags
Patch (3.16 KB, patch)
2011-10-13 23:33 PDT, polina
no flags
Patch (3.12 KB, patch)
2011-10-14 00:12 PDT, polina
no flags
polina
Comment 1 2011-10-13 17:16:19 PDT
WebKit Review Bot
Comment 2 2011-10-13 17:18:34 PDT
Please wait for approval from fishd@chromium.org before submitting because this patch contains changes to the Chromium public API.
polina
Comment 3 2011-10-13 18:50:52 PDT
Darin Fisher (:fishd, Google)
Comment 4 2011-10-13 21:51:13 PDT
Comment on attachment 110939 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=110939&action=review thanks for fixing those style issues! > Source/WebKit/chromium/public/WebDocument.h:102 > + WEBKIT_EXPORT WebElement fullScreenElement(); nit: like the other getters, this should be a 'const' method. > Source/WebKit/chromium/src/WebDocument.cpp:197 > + return WebElement(fullScreenElement); nit: should be indented by 4 spaces
polina
Comment 5 2011-10-13 23:33:10 PDT
Darin Fisher (:fishd, Google)
Comment 6 2011-10-13 23:52:59 PDT
Comment on attachment 110969 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=110969&action=review > Source/WebKit/chromium/src/WebDocument.cpp:195 > + Element* fullScreenElement = constUnwrap<Document>()->webkitCurrentFullScreenElement(); I believe the following should work too: return WebElement(constUnwrap<Document>()->webkitCurrentFullScreenElement()); It can handle being initialized with a NULL Element.
polina
Comment 7 2011-10-14 00:12:29 PDT
WebKit Review Bot
Comment 8 2011-10-14 01:03:59 PDT
Comment on attachment 110972 [details] Patch Clearing flags on attachment: 110972 Committed r97447: <http://trac.webkit.org/changeset/97447>
WebKit Review Bot
Comment 9 2011-10-14 01:04:04 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.