Chromium Code Reviews
DescriptionImplement a bubble that appears at the top of the screen when a tab enters
fullscreen mode via webkitRequestFullScreen(), telling the user how to exit
fullscreen.
This is implemented as an NSView rather than an NSWindow because the floating
chrome that appears in presentation mode should overlap the bubble.
Content-initiated fullscreen mode makes use of 'presentation mode' on the Mac:
the mode in which the UI is hidden, accessible by moving the cursor to the top
of the screen. On Snow Leopard, this mode is synonymous with fullscreen mode.
On Lion, however, fullscreen mode does not imply presentation mode: in
non-presentation fullscreen mode, the chrome is permanently shown. It is
possible to switch between presentation mode and fullscreen mode using the
presentation mode UI control.
When a tab initiates fullscreen mode on Lion, we enter presentation mode if not
in presentation mode already. When the user exits fullscreen mode using Chrome
UI (i.e. keyboard shortcuts, menu items, buttons, switching tabs, etc.) we
return the user to the mode they were in before the tab entered fullscreen.
BUG=14471
TEST=Enter fullscreen mode using webkitRequestFullScreen. You should see a bubble pop down from the top of the screen.
Need to test the Lion logic somehow, with no Lion trybots.
BUG=96883
Patch Set 1 #
Total comments: 1
Patch Set 2 : fix size calc a bit #Patch Set 3 : ready for review #
Total comments: 66
Patch Set 4 : review comments #Patch Set 5 : add test #
Total comments: 10
Patch Set 6 : changes for lion #Patch Set 7 : oops, syntax error #Patch Set 8 : fix build on linux #
Total comments: 2
Patch Set 9 : browser tests #
Total comments: 2
Patch Set 10 : remove lion test; comments. #Patch Set 11 : doh #Patch Set 12 : fix build on mac #Patch Set 13 : fix url? #Messages
Total messages: 10 (0 generated)
|