Index: chrome/browser/ui/cocoa/nsview_additions.mm |
diff --git a/chrome/browser/ui/cocoa/nsview_additions.mm b/chrome/browser/ui/cocoa/nsview_additions.mm |
index 636837ca086300db0f9850059a0f2a6bff9f3515..1eaf596376e748c07dde3d026856c9c525b3037d 100644 |
--- a/chrome/browser/ui/cocoa/nsview_additions.mm |
+++ b/chrome/browser/ui/cocoa/nsview_additions.mm |
@@ -10,4 +10,10 @@ |
return 1.0 / [self convertSizeToBase:NSMakeSize(1, 1)].width; |
} |
+- (BOOL)cr_isMouseInView { |
+ NSPoint mouseLoc = [[self window] mouseLocationOutsideOfEventStream]; |
+ mouseLoc = [[self superview] convertPoint:mouseLoc fromView:nil]; |
+ return [self hitTest:mouseLoc] == self; |
+} |
+ |
@end |