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

Unified Diff: ui/base/cocoa/base_view.h

Issue 941543002: Mac: Speculative fix for tracking area crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bgv
Patch Set: Fix for thakis Created 5 years, 10 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/base/cocoa/base_view.h
diff --git a/ui/base/cocoa/base_view.h b/ui/base/cocoa/base_view.h
index 642ada2011d0812a58ed8c8ace2895b803b850cf..65e889ae7724aa25b87be67d6641077129498192 100644
--- a/ui/base/cocoa/base_view.h
+++ b/ui/base/cocoa/base_view.h
@@ -28,8 +28,17 @@ UI_BASE_EXPORT
ui::ScopedCrTrackingArea trackingArea_;
BOOL dragging_;
base::scoped_nsobject<NSEvent> pendingExitEvent_;
+ id eventTap_;
}
+// NSTrackingInVisibleRect doesn't work correctly with Lion's window resizing,
+// http://crbug.com/176725 / http://openradar.appspot.com/radar?id=2773401 .
+// Setting |wantsReliableMouseEvents| to YES will avoid using the tracking area
+// for mouse moved handling, and will instead tap it from the application's
+// event stream.
+- (instancetype)initWithFrame:(NSRect)frame
+ wantsReliableMouseEvents:(BOOL)wantsReliableMouseEvents;
+
// Override these methods (mouseEvent, keyEvent) in a subclass.
- (void)mouseEvent:(NSEvent *)theEvent;

Powered by Google App Engine
This is Rietveld 408576698