Support Device orientation and window orientation event.
Supporting Device orientation and Window Orienation event when device orientation is changed or window orientation is changed.
Window orientation event is emitted by display server.
To emit the Window Orientation event, AddAvailableOrientation() or SetPreferredOrientation() should be called before the device is rotated.
Otherwise, Device Orientation event is emitted by Application framework and any condition is not needed.
Change-Id: I78e8854e74810f31e7aa7403b8e913f50b67f3d2
13 files changed: