| Index: chrome/browser/cocoa/status_bubble_mac.mm
|
| diff --git a/chrome/browser/cocoa/status_bubble_mac.mm b/chrome/browser/cocoa/status_bubble_mac.mm
|
| index 9305100c964c9b7af47147ec6e4f44d6b068d4d5..55b57df6d3832e638325322fc775fc427e865598 100644
|
| --- a/chrome/browser/cocoa/status_bubble_mac.mm
|
| +++ b/chrome/browser/cocoa/status_bubble_mac.mm
|
| @@ -8,6 +8,7 @@
|
|
|
| #include "app/gfx/text_elider.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/gfx/point.h"
|
| #include "base/message_loop.h"
|
| #include "base/string_util.h"
|
| #include "base/sys_string_conversions.h"
|
| @@ -206,10 +207,15 @@ void StatusBubbleMac::Hide() {
|
| url_text_ = nil;
|
| }
|
|
|
| -void StatusBubbleMac::MouseMoved() {
|
| +void StatusBubbleMac::MouseMoved(
|
| + const gfx::Point& location, bool left_content) {
|
| + if (left_content)
|
| + return;
|
| +
|
| if (!window_)
|
| return;
|
|
|
| + // TODO(thakis): Use 'location' here instead of NSEvent.
|
| NSPoint cursor_location = [NSEvent mouseLocation];
|
| --cursor_location.y; // docs say the y coord starts at 1 not 0; don't ask why
|
|
|
| @@ -330,7 +336,7 @@ void StatusBubbleMac::Create() {
|
| Attach();
|
|
|
| [view setCornerFlags:kRoundedTopRightCorner];
|
| - MouseMoved();
|
| + MouseMoved(gfx::Point(), false);
|
| }
|
|
|
| void StatusBubbleMac::Attach() {
|
|
|