Index: chrome/browser/cocoa/status_bubble_mac.h |
diff --git a/chrome/browser/cocoa/status_bubble_mac.h b/chrome/browser/cocoa/status_bubble_mac.h |
index de305dee2c59c0262a7f81bb186fae7c3e20d58f..9dc177d2f7c4746591b4f6e368f9aaca14bc5519 100644 |
--- a/chrome/browser/cocoa/status_bubble_mac.h |
+++ b/chrome/browser/cocoa/status_bubble_mac.h |
@@ -26,6 +26,11 @@ class StatusBubbleMac : public StatusBubble { |
virtual void MouseMoved(); |
virtual void UpdateDownloadShelfVisibility(bool visible); |
+ // Mac-specific method: Update the size and position of the status bubble to |
+ // match the parent window. Safe to call even when the status bubble does not |
+ // exist. |
+ void UpdateSizeAndPosition(); |
+ |
private: |
friend class StatusBubbleMacTest; |
@@ -38,6 +43,9 @@ class StatusBubbleMac : public StatusBubble { |
void FadeIn(); |
void FadeOut(); |
+ // Calculate the appropriate frame for the status bubble window. |
+ NSRect CalculateWindowFrame(); |
+ |
// The window we attach ourselves to. |
NSWindow* parent_; // WEAK |