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

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

Issue 266018: Mac: Resize status bubble when window is resized. (Closed)
Patch Set: Updated per Avi's comments (more or less). Created 11 years, 2 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
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

Powered by Google App Engine
This is Rietveld 408576698