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

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

Issue 1259913003: MacViews: Implement Tab Dragging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20150529-ViewsBrowser-DisableCertificateDialog
Patch Set: update comments, still a TODO Created 5 years, 4 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.mm ('k') | ui/views/widget/native_widget_mac.mm » ('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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // windowDidExitFullScreen:. Also, failing to exit fullscreen just dumps the 72 // windowDidExitFullScreen:. Also, failing to exit fullscreen just dumps the
73 // window out of fullscreen without an animation; still sending the expected, 73 // window out of fullscreen without an animation; still sending the expected,
74 // windowDidExitFullScreen: notification. So, again, nothing to do here. 74 // windowDidExitFullScreen: notification. So, again, nothing to do here.
75 DCHECK(!parent_->target_fullscreen_state()); 75 DCHECK(!parent_->target_fullscreen_state());
76 } 76 }
77 77
78 - (void)windowDidResize:(NSNotification*)notification { 78 - (void)windowDidResize:(NSNotification*)notification {
79 parent_->OnSizeChanged(); 79 parent_->OnSizeChanged();
80 } 80 }
81 81
82 - (void)windowDidMove:(NSNotification*)notification {
83 // Note: windowDidMove: is sent only once at the end of a window drag. There
84 // is also windowWillMove: sent at the start, also once. Live updates are
85 // provided by BridgedNativeWidget only during RunMoveLoop().
86 parent_->OnPositionChanged();
87 }
88
82 - (void)windowDidBecomeKey:(NSNotification*)notification { 89 - (void)windowDidBecomeKey:(NSNotification*)notification {
83 parent_->OnWindowKeyStatusChangedTo(true); 90 parent_->OnWindowKeyStatusChangedTo(true);
84 } 91 }
85 92
86 - (void)windowDidResignKey:(NSNotification*)notification { 93 - (void)windowDidResignKey:(NSNotification*)notification {
87 parent_->OnWindowKeyStatusChangedTo(false); 94 parent_->OnWindowKeyStatusChangedTo(false);
88 } 95 }
89 96
90 - (void)windowWillClose:(NSNotification*)notification { 97 - (void)windowWillClose:(NSNotification*)notification {
91 DCHECK([parent_->ns_window() isEqual:[notification object]]); 98 DCHECK([parent_->ns_window() isEqual:[notification object]]);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // screen in fullscreen mode. This only happens when 131 // screen in fullscreen mode. This only happens when
125 // -[NSWindow toggleFullscreen:] is called since non-resizable windows have no 132 // -[NSWindow toggleFullscreen:] is called since non-resizable windows have no
126 // fullscreen button. Without this they would only enter fullscreen at their 133 // fullscreen button. Without this they would only enter fullscreen at their
127 // current size. 134 // current size.
128 - (NSSize)window:(NSWindow*)window 135 - (NSSize)window:(NSWindow*)window
129 willUseFullScreenContentSize:(NSSize)proposedSize { 136 willUseFullScreenContentSize:(NSSize)proposedSize {
130 return proposedSize; 137 return proposedSize;
131 } 138 }
132 139
133 @end 140 @end
OLDNEW
« no previous file with comments | « ui/views/cocoa/bridged_native_widget.mm ('k') | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698