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

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

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
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller.h ('k') | chrome/browser/cocoa/status_bubble_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm
index 542d5d2b47450e3213ac77db5cad41a3271c697e..6832c31d2c5cc80cd5ba5c22ec828596986a5bf5 100644
--- a/chrome/browser/cocoa/browser_window_controller.mm
+++ b/chrome/browser/cocoa/browser_window_controller.mm
@@ -638,7 +638,7 @@ willPositionSheet:(NSWindow*)sheet
return [toolbarController_ locationBar];
}
-- (StatusBubble*)statusBubble {
+- (StatusBubbleMac*)statusBubble {
return statusBubble_.get();
}
@@ -1070,6 +1070,14 @@ willPositionSheet:(NSWindow*)sheet
bookmarkBubbleController_.reset(nil);
}
+// Delegate method called when window is resized.
+- (void)windowDidResize:(NSNotification*)notification {
+ // Resize (and possibly move) the status bubble. Note that we may get called
+ // when the status bubble does not exist.
+ if(statusBubble_.get())
pink (ping after 24hrs) 2009/10/09 14:03:27 space between if and paren.
+ statusBubble_->UpdateSizeAndPosition();
+}
+
@end
@implementation BrowserWindowController (Private)
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller.h ('k') | chrome/browser/cocoa/status_bubble_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698