mozilla-b2g/gaia — pull request #5278 by davidflanagan (2012-09-27 06:29:21+00:00)
Title: full-screen gallery

This pull request modifies the Gallery app to allow viewing of photos in fullscreen mode.

When you first click on a thumbnail, you see the image in non-fullscreen, with the system status bar on top and the gallery image toolbar below. (This toolbar is no longer an overlay above the image, but a real bar that takes up space).

When you tap on the image, the display converts to fullscreen and animates the toolbar away so the image now occupies the entire screen. Tapping again (or pressing home) exits fullscreen and restores the toolbar.

A bonus side effect is that in order to make this work, I had to write code that could handle resize events without altering the zoom level of a photo. So now when you rotate the phone on a zoomed in image, the image rotates and retains its zoom level.