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

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: Change to single repost and [NSWindow setMovableByWindowBackground]. 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 dc0b2016b21ecfdf3918d53ecae46460735f56e6..7dc64b662366a1cd4dafa54627f7bcc339e2f133 100644
--- a/ui/views/cocoa/views_nswindow_delegate.h
+++ b/ui/views/cocoa/views_nswindow_delegate.h
@@ -59,6 +59,13 @@ VIEWS_EXPORT
- (void)windowDidFailToEnterFullScreen:(NSWindow*)window;
- (void)windowDidFailToExitFullScreen:(NSWindow*)window;
+// 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