MacViews: NativeWidget -> Widget notifications: fullscreen, activation.
Fullscreen is asynchronous on Mac, so NativeWidgetMac needs to coordinate with the ViewsNSWindowDelegate to behave in the manner views code expects. Part of this is maintaining the restored bounds, which Cocoa doesn't provide access to. Activation also goes through the ViewsNSWindowDelegate. It's simpler but needs an interactive_ui_test, which is added. Other NSWindowDelegate messages are deferred to a follow-up. Maximize is "implemented" as a no-op on Mac, since it's indistinguishable from a large window (whereas views code typically expects maximize to remove window borders). This CL gets the following views_unittests passing: WidgetTest.GetRestoredBounds WidgetTest.ExitFullscreenRestoreState WidgetTest.FullscreenFrameLayout Many Cocoa-native tests are also added to ensure user-initiated operations are correctly observed. BUG=403679, 378134 Review URL: https://codereview.chromium.org/388453002 Cr-Commit-Position: refs/heads/master@{#299263}
Showing
Please register or sign in to comment