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

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

Issue 159776: Rewrites the Mac view resizing logic to have the BrowserWindowController... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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/infobar_container_controller.h
===================================================================
--- chrome/browser/cocoa/infobar_container_controller.h (revision 22499)
+++ chrome/browser/cocoa/infobar_container_controller.h (working copy)
@@ -6,9 +6,9 @@
#include "base/scoped_nsobject.h"
#include "base/scoped_ptr.h"
+#import "chrome/browser/cocoa/view_resizer.h"
#include "chrome/common/notification_registrar.h"
-@class BrowserWindowController;
class InfoBarDelegate;
class InfoBarNotificationObserver;
class TabContents;
@@ -22,8 +22,8 @@
// adding/removing infobars when needed.
@interface InfoBarContainerController : NSViewController {
@private
- // Needed to send infoBarResized: messages when infobars are added or removed.
- BrowserWindowController* browserController_; // weak, owns us.
+ // Needed to send resize messages when infobars are added or removed.
+ id<ViewResizer> resizeDelegate_; // weak
// The TabContents we are currently showing infobars for.
TabContents* currentTabContents_; // weak
@@ -42,7 +42,7 @@
}
- (id)initWithTabStripModel:(TabStripModel*)model
- browserWindowController:(BrowserWindowController*)controller;
+ resizeDelegate:(id<ViewResizer>)resizeDelegate;
// Informs the selected TabContents that the infobars for the given
// |delegate| need to be removed. Does not remove any infobar views
« no previous file with comments | « chrome/browser/cocoa/find_bar_cocoa_controller.mm ('k') | chrome/browser/cocoa/infobar_container_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698