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; |