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

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

Issue 2096993002: MacViews: Fix failing mouse capture unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mouse_capture_lifetime
Patch Set: Enable tests. 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
« no previous file with comments | « ui/views/cocoa/bridged_native_widget.mm ('k') | ui/views/cocoa/cocoa_mouse_capture.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/cocoa_mouse_capture.h
diff --git a/ui/views/cocoa/cocoa_mouse_capture.h b/ui/views/cocoa/cocoa_mouse_capture.h
index 247caa4e82caa1200f224959b48fdb826bf5e9db..9b170e4a7e9c41b1b48c91dc31868cdb26bdb54c 100644
--- a/ui/views/cocoa/cocoa_mouse_capture.h
+++ b/ui/views/cocoa/cocoa_mouse_capture.h
@@ -10,6 +10,8 @@
#include "base/macros.h"
#include "ui/views/views_export.h"
+@class NSWindow;
+
namespace views {
class CocoaMouseCaptureDelegate;
@@ -24,6 +26,10 @@ class VIEWS_EXPORT CocoaMouseCapture {
explicit CocoaMouseCapture(CocoaMouseCaptureDelegate* delegate);
~CocoaMouseCapture();
+ // Returns the NSWindow with capture or nil if no window has capture
+ // currently.
+ static NSWindow* GetGlobalCaptureWindow();
+
// True if the event tap is active (i.e. not stolen by a later instance).
bool IsActive() const { return !!active_handle_; }
« no previous file with comments | « ui/views/cocoa/bridged_native_widget.mm ('k') | ui/views/cocoa/cocoa_mouse_capture.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698