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

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

Issue 155706: Fix the URL status bubble overlapping the Mac download shelf (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « chrome/browser/cocoa/download_shelf_mac.mm ('k') | chrome/browser/cocoa/status_bubble_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/status_bubble_mac.h
===================================================================
--- chrome/browser/cocoa/status_bubble_mac.h (revision 21184)
+++ chrome/browser/cocoa/status_bubble_mac.h (working copy)
@@ -16,7 +16,7 @@
class StatusBubbleMac : public StatusBubble {
public:
- StatusBubbleMac(NSWindow* parent);
+ StatusBubbleMac(NSWindow* parent, id delegate);
virtual ~StatusBubbleMac();
// StatusBubble implementation.
@@ -41,6 +41,9 @@
// The window we attach ourselves to.
NSWindow* parent_; // WEAK
+ // The object that we query about our vertical offset for positioning.
+ id delegate_; // WEAK
+
// The window we own.
NSWindow* window_;
@@ -52,6 +55,16 @@
// How vertically offset the bubble is from its root position.
int offset_;
+
+ // Is the download shelf visible.
+ bool is_download_shelf_visible_;
};
+// Delegate interface that allows the StatusBubble to query its delegate about
+// the vertical offset (if any) that should be applied to the StatusBubble's
+// position.
+@interface NSObject(StatusBubbleDelegate)
+- (float)verticalOffsetForStatusBubble;
+@end
+
#endif // #ifndef CHROME_BROWSER_COCOA_STATUS_BUBBLE_MAC_H_
« no previous file with comments | « chrome/browser/cocoa/download_shelf_mac.mm ('k') | chrome/browser/cocoa/status_bubble_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698