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

Unified Diff: ui/views/cocoa/views_nswindow_delegate.mm

Issue 1747803003: MacViews: Implement Tab Dragging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove CGEvent-generating code from ui_controls_mac.mm Created 4 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 side-by-side diff with in-line comments
Download patch
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 75346a6a8076dadb929abc2f858e5a2cf57e6892..ea6945b2e65f528a67d24eec0208fd4dd61394e9 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. When window is being
+ // moved by the WindowServer live updates are not provided.
+ parent_->OnPositionChanged();
+}
+
- (void)windowDidBecomeKey:(NSNotification*)notification {
parent_->OnWindowKeyStatusChangedTo(true);
}

Powered by Google App Engine
This is Rietveld 408576698