• Raine Makelainen's avatar
    [embedlite-components] Send content orientation changed message to chrome. Fixes JB#35447 · 01951df1
    Raine Makelainen authored
    Send "embed:contentOrientationChanged" message to chrome after
    content has been resized after orientation change. Changing orientation
    between mirrored orientations (primary to secondary or other way
    round) is cheap and does not trigger reflow. Thus, those can
    be send back to chrome immediately.
    There is a 200ms fallback timer that guarantees that we send the
    orientation change eventually. Noticed for instance that full
    screen video playback orientation change did not always trigger
    resizing while it should have been triggered.
    This is inspited by B2G's OrientationChangeHandler.jsm.
Makefile.am 771 Bytes