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

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

Issue 1146873002: [MacViews] Enable dragging a window by its caption/draggable areas. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/cocoa/views_nswindow_delegate.h
diff --git a/ui/views/cocoa/views_nswindow_delegate.h b/ui/views/cocoa/views_nswindow_delegate.h
index ec8e6e1378d33c432990b692646094314d6c4cd3..2f8449125324a539fa704608dc2382d549f068ec 100644
--- a/ui/views/cocoa/views_nswindow_delegate.h
+++ b/ui/views/cocoa/views_nswindow_delegate.h
@@ -52,6 +52,13 @@ class BridgedNativeWidget;
returnCode:(NSInteger)returnCode
contextInfo:(void*)contextInfo;
+// Called when the application receives a mouse-down, but before the event
+// is processed by NSWindows. Returns NO if the event should be processed as-is,
+// or YES if the event should be reposted to handle window dragging. Events are
+// reposted at the CGSessionEventTap level because window dragging happens there
+// before the application receives the event.
+- (BOOL)shouldRepostPendingLeftMouseDown:(NSPoint)locationInWindow;
+
@end
#endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698