Index: ui/views/cocoa/views_nswindow_delegate.mm |
diff --git a/ui/views/cocoa/views_nswindow_delegate.mm b/ui/views/cocoa/views_nswindow_delegate.mm |
index 6a344a38fa330e02742142f85982dc5cdfd6ee76..65c34485dfa56c0bf03354f24c6b8d30deb08baf 100644 |
--- a/ui/views/cocoa/views_nswindow_delegate.mm |
+++ b/ui/views/cocoa/views_nswindow_delegate.mm |
@@ -116,4 +116,13 @@ |
parent_->OnFullscreenTransitionComplete(false); |
} |
+// Allow non-resizable windows (without NSResizableWindowMask) to enter |
+// fullscreen by passing through the full size in willUseFullScreenContentSize. |
+// This only happens when -[NSWindow toggleFullscreen:] is called since |
+// non-resizable windows have no fullscreen button. |
+- (NSSize)window:(NSWindow*)window |
+ willUseFullScreenContentSize:(NSSize)proposedSize { |
tapted
2015/05/06 06:20:41
Can you explain this change?
And, e.g., could we
jackhou1
2015/05/13 04:27:53
Yes (and doing the same with size constraints). Bu
|
+ return proposedSize; |
+} |
+ |
@end |