Merge "Support Device orientation and window orientation event." into devel/master