Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: ui/views/cocoa/views_nswindow_delegate.mm

Issue 1109493002: [MacViews] Fix behavior of non-resizable windows in fullscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert to Patch Set 7 Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/cocoa/bridged_native_widget_interactive_uitest.mm ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ui/views/cocoa/views_nswindow_delegate.h" 5 #import "ui/views/cocoa/views_nswindow_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "ui/views/cocoa/bridged_content_view.h" 8 #import "ui/views/cocoa/bridged_content_view.h"
9 #import "ui/views/cocoa/bridged_native_widget.h" 9 #import "ui/views/cocoa/bridged_native_widget.h"
10 #include "ui/views/widget/native_widget_mac.h" 10 #include "ui/views/widget/native_widget_mac.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 109 }
110 110
111 - (void)windowWillExitFullScreen:(NSNotification*)notification { 111 - (void)windowWillExitFullScreen:(NSNotification*)notification {
112 parent_->OnFullscreenTransitionStart(false); 112 parent_->OnFullscreenTransitionStart(false);
113 } 113 }
114 114
115 - (void)windowDidExitFullScreen:(NSNotification*)notification { 115 - (void)windowDidExitFullScreen:(NSNotification*)notification {
116 parent_->OnFullscreenTransitionComplete(false); 116 parent_->OnFullscreenTransitionComplete(false);
117 } 117 }
118 118
119 // Allow non-resizable windows (without NSResizableWindowMask) to fill the
120 // screen in fullscreen mode. This only happens when
121 // -[NSWindow toggleFullscreen:] is called since non-resizable windows have no
122 // fullscreen button. Without this they would only enter fullscreen at their
123 // current size.
124 - (NSSize)window:(NSWindow*)window
125 willUseFullScreenContentSize:(NSSize)proposedSize {
126 return proposedSize;
127 }
128
119 @end 129 @end
OLDNEW
« no previous file with comments | « ui/views/cocoa/bridged_native_widget_interactive_uitest.mm ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698