Description[MacViews] Frameless app windows: make content view cover title bar.
AppKit resizes content views when the window resizes by calling
[NSView setFrameSize:], but does not take into account
[NSWindow contentRectForFrameRect:]. We intercept the former and call the
latter. This is similar to the method used by FullSizeContentView.
This CL also adds NativeWidgetMacFramelessNSWindow which overrides
contentRect <-> frameRect conversion.
The frameless NSWindow is used in app windows by overriding
NativeWidgetMac. This is similar to AppWindowDesktopNativeWidgetAuraWin
which provides a specialized WindowTreeHost. BrowserFrameMac (another
NativeWidgetMac subclass) will do the same to draw custom themed frames.
BUG=459877
Committed: https://crrev.com/9b683fa2526a4f26f27f4aa136b92748323aa5b4
Cr-Commit-Position: refs/heads/master@{#321251}
Patch Set 1 #Patch Set 2 : Add some comments. #Patch Set 3 : WIP: Only use non-borderless windows for app and browser windows. #Patch Set 4 : Clean up. #Patch Set 5 : Missed some parts. #Patch Set 6 : Sync and rebase #Patch Set 7 : Add basic test. #Patch Set 8 : Test size of web contents, not content view. #
Total comments: 34
Patch Set 9 : Sync and rebase #Patch Set 10 : Address comments. #
Total comments: 8
Patch Set 11 : Address comments. #Messages
Total messages: 19 (4 generated)
|