Bug 877903 (Part 3) - Refactor setAppSize and rotateTransition to AppWindow.