| Index: chrome/browser/cocoa/status_bubble_mac.mm
|
| ===================================================================
|
| --- chrome/browser/cocoa/status_bubble_mac.mm (revision 24577)
|
| +++ chrome/browser/cocoa/status_bubble_mac.mm (working copy)
|
| @@ -149,6 +149,13 @@
|
| NSRect window_frame = [window_ frame];
|
| window_frame.origin = [parent_ frame].origin;
|
|
|
| + // Adjust the position to sit on top of download shelf.
|
| + // |delegate_| can be nil during unit tests.
|
| + if (is_download_shelf_visible_) {
|
| + if ([delegate_ respondsToSelector:@selector(verticalOffsetForStatusBubble)])
|
| + window_frame.origin.y += [delegate_ verticalOffsetForStatusBubble];
|
| + }
|
| +
|
| // Get the cursor position relative to the popup.
|
| cursor_location.x -= NSMaxX(window_frame);
|
| cursor_location.y -= NSMaxY(window_frame);
|
| @@ -187,12 +194,6 @@
|
| [[window_ contentView] setStyle:STYLE_STANDARD];
|
| }
|
|
|
| - // |delegate_| can be nil during unit tests.
|
| - if (is_download_shelf_visible_) {
|
| - if ([delegate_ respondsToSelector:@selector(verticalOffsetForStatusBubble)])
|
| - window_frame.origin.y += [delegate_ verticalOffsetForStatusBubble];
|
| - }
|
| -
|
| [window_ setFrame:window_frame display:YES];
|
| }
|
|
|
|
|