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

Unified Diff: chrome/browser/tab_contents/tab_contents_view_mac.mm

Issue 392007: gtk: Hide the status bubble when the mouse nears it. (Closed)
Patch Set: merge again Created 11 years, 1 month 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 | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/browser/views/status_bubble_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/browser/views/status_bubble_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698