Merge "Support to generate screen rotation events."