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

Unified Diff: chrome/browser/cocoa/status_bubble_mac.mm

Issue 200135: Committing original patch http://codereview.chromium.org/178036... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/status_bubble_mac.mm
===================================================================
--- chrome/browser/cocoa/status_bubble_mac.mm (revision 26235)
+++ chrome/browser/cocoa/status_bubble_mac.mm (working copy)
@@ -127,6 +127,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);
@@ -168,12 +175,6 @@
[[window_ contentView] setCornerFlags:kRoundedTopRightCorner];
}
- // |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];
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698