DescriptionUnify 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
Committed: https://crrev.com/0f1a2fab593f627a168e95b1cfec1b241c129133
Cr-Commit-Position: refs/heads/master@{#419563}
Patch Set 1 #Patch Set 2 : Add missing newline back. #
Total comments: 1
Patch Set 3 : Rebase. #
Depends on Patchset: Messages
Total messages: 15 (8 generated)
|