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

Unified Diff: chrome/browser/browser.cc

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/browser.h ('k') | chrome/browser/cocoa/status_bubble_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 7b728e361c0966db3f2c9c3f9c1e0b6dc4829c3f..ebca6656fa3757af450ba6be2db65e86da6ce3c0 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -7,6 +7,7 @@
#include "app/animation.h"
#include "app/l10n_util.h"
#include "base/command_line.h"
+#include "base/gfx/point.h"
#include "base/keyboard_codes.h"
#include "base/logging.h"
#include "base/string_util.h"
@@ -2020,16 +2021,15 @@ void Browser::URLStarredChanged(TabContents* source, bool starred) {
window_->SetStarredState(starred);
}
-void Browser::ContentsMouseEvent(TabContents* source, bool motion) {
+void Browser::ContentsMouseEvent(
+ TabContents* source, const gfx::Point& location, bool motion) {
if (!GetStatusBubble())
return;
if (source == GetSelectedTabContents()) {
- if (motion) {
- GetStatusBubble()->MouseMoved();
- } else {
+ GetStatusBubble()->MouseMoved(location, !motion);
+ if (!motion)
GetStatusBubble()->SetURL(GURL(), std::wstring());
- }
}
}
« no previous file with comments | « chrome/browser/browser.h ('k') | chrome/browser/cocoa/status_bubble_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698