RESOLVED FIXED 108122
[EFL] Add Toggle fullscreen (F11) to MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=108122
Summary [EFL] Add Toggle fullscreen (F11) to MiniBrowser
Bruno Abinader (history only)
Reported 2013-01-28 15:36:00 PST
This bug intends to implement the ewk_view_fullscreen_enter() function as part of UIProcess' ewk_view API. This enables application to request for fullscreen (i.e. user triggered F11 key).
Attachments
Patch (4.36 KB, patch)
2013-01-28 19:55 PST, Bruno Abinader (history only)
no flags
Patch (1.69 KB, patch)
2013-01-29 07:24 PST, Bruno Abinader (history only)
no flags
Bruno Abinader (history only)
Comment 1 2013-01-28 19:55:48 PST
Created attachment 185138 [details] Patch Proposed patch (requires patch from bug 108121).
EFL EWS Bot
Comment 2 2013-01-28 22:57:20 PST
Chris Dumez
Comment 3 2013-01-28 23:36:14 PST
Comment on attachment 185138 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=185138&action=review > Source/WebKit2/UIProcess/API/efl/ewk_view.cpp:944 > + impl->page()->fullScreenManager()->requestEnterFullScreen(); Please use C API in new patches. We are in the process of porting everything to the C API. > Source/WebKit2/UIProcess/API/efl/ewk_view.h:802 > +EAPI Eina_Bool ewk_view_fullscreen_enter(Evas_Object *o); Missing API test.
Bruno Abinader (history only)
Comment 4 2013-01-29 07:24:28 PST
Created attachment 185241 [details] Patch Simpler approach using native API suggested by Christophe
Chris Dumez
Comment 5 2013-01-29 07:49:52 PST
Comment on attachment 185241 [details] Patch Did you make sure that pressing "ESC" does not exit fullscreen if it has been triggered using F11?
Bruno Abinader (history only)
Comment 6 2013-01-29 07:54:24 PST
(In reply to comment #5) > (From update of attachment 185241 [details]) > Did you make sure that pressing "ESC" does not exit fullscreen if it has been triggered using F11? You're right, the browser crashes if ESC is pressed (my bad). However to avoid checking for FullScreen API directly, I'll add a boolean that specifies whether the fullscreen mode was activated by F11 or JS user gesture. Do you agree on this approach?
Chris Dumez
Comment 7 2013-01-29 08:07:50 PST
Hmm, ewk_view_fullscreen_exit() should not crash if full screen was not triggered by fullscreen API. We should probably fix ewk_view_fullscreen_exit() instead of adding a boolean.
Bruno Abinader (history only)
Comment 8 2013-01-29 09:09:09 PST
(In reply to comment #7) > Hmm, ewk_view_fullscreen_exit() should not crash if full screen was not triggered by fullscreen API. We should probably fix ewk_view_fullscreen_exit() instead of adding a boolean. Agreed, so this bug's implementation is correct. This crash is now handled on bug 108201.
Chris Dumez
Comment 9 2013-01-29 09:26:06 PST
Comment on attachment 185241 [details] Patch LGTM.
Antonio Gomes
Comment 10 2013-01-29 12:38:50 PST
Comment on attachment 185241 [details] Patch Trivial enough. r+
WebKit Review Bot
Comment 11 2013-01-29 13:06:18 PST
Comment on attachment 185241 [details] Patch Clearing flags on attachment: 185241 Committed r141152: <http://trac.webkit.org/changeset/141152>
WebKit Review Bot
Comment 12 2013-01-29 13:06:24 PST
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.