Unify mustash display closing code paths.
There are currently two ways a display can be closed in mustash. First, the NDD can update and indicated the display is gone. Second, when running off device the user can close the platform window. This CL unifies the two code paths. When running off device and the platform window calls PlatformWindowDelegate::OnRequestClose() the request is forwarded to PlatformScreen. PlatformScreen then tells the NDD to remove the fake display. The display configuration will update and the display will be gone. This allows the same display removed code path to get used in all cases. This also fixes PlatformScreen not knowing about the user closing a display. BUG=641012 Review-Url: https://codereview.chromium.org/2345043003 Cr-Commit-Position: refs/heads/master@{#419563}
Showing
Please register or sign in to comment