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) |