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

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

Issue 2096993002: MacViews: Fix failing mouse capture unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mouse_capture_lifetime
Patch Set: Rebase Created 4 years, 6 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/cocoa_mouse_capture_delegate.h
diff --git a/ui/views/cocoa/cocoa_mouse_capture_delegate.h b/ui/views/cocoa/cocoa_mouse_capture_delegate.h
index af362e048621e84221ae392fa3cb6d04dc86e187..9e6d2a0e4ea994d465a4e39ba08a27f8504cdc07 100644
--- a/ui/views/cocoa/cocoa_mouse_capture_delegate.h
+++ b/ui/views/cocoa/cocoa_mouse_capture_delegate.h
@@ -6,6 +6,7 @@
#define UI_VIEWS_COCOA_COCOA_MOUSE_CAPTURE_DELEGATE_H_
@class NSEvent;
+@class NSWindow;
namespace views {
@@ -20,6 +21,9 @@ class CocoaMouseCaptureDelegate {
// Called once. When another window acquires capture, or when the
// CocoaMouseCapture is destroyed.
virtual void OnMouseCaptureLost() = 0;
+
+ // Returns the associated NSWindow.
+ virtual NSWindow* GetWindow() const = 0;
};
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698