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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d8f1a8230ab989930baca03a532e22e620ec40be..3ee13514bae3da986a3e2b2cc33967b02d98c19f 100644
--- a/ui/views/cocoa/views_nswindow_delegate.mm
+++ b/ui/views/cocoa/views_nswindow_delegate.mm
@@ -79,6 +79,13 @@
parent_->OnSizeChanged();
}
+- (void)windowDidMove:(NSNotification*)notification {
+ // Note: windowDidMove: is sent only once at the end of a window drag. There
+ // is also windowWillMove: sent at the start, also once. Live updates are
+ // provided by BridgedNativeWidget only during RunMoveLoop().
+ parent_->OnPositionChanged();
+}
+
- (void)windowDidBecomeKey:(NSNotification*)notification {
parent_->OnWindowKeyStatusChangedTo(true);
}
« 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