| Index: chrome/browser/tab_contents/tab_contents_view_mac.mm
|
| diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.mm b/chrome/browser/tab_contents/tab_contents_view_mac.mm
|
| index 9a06d66b3cae0ec4f8bbc8a7f1f3f6df84dbd120..60bc43a9508dd030c1a51b6ed4a125e359eedf8e 100644
|
| --- a/chrome/browser/tab_contents/tab_contents_view_mac.mm
|
| +++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm
|
| @@ -406,10 +406,13 @@ void TabContentsViewMac::Observe(NotificationType type,
|
| - (void)mouseEvent:(NSEvent *)theEvent {
|
| TabContents* tabContents = [self tabContents];
|
| if (tabContents->delegate()) {
|
| + NSPoint location = [NSEvent mouseLocation];
|
| if ([theEvent type] == NSMouseMoved)
|
| - tabContents->delegate()->ContentsMouseEvent(tabContents, true);
|
| + tabContents->delegate()->ContentsMouseEvent(
|
| + tabContents, gfx::Point(location.x, location.y), true);
|
| if ([theEvent type] == NSMouseExited)
|
| - tabContents->delegate()->ContentsMouseEvent(tabContents, false);
|
| + tabContents->delegate()->ContentsMouseEvent(
|
| + tabContents, gfx::Point(location.x, location.y), false);
|
| }
|
| }
|
|
|
|
|