Index: chrome/browser/cocoa/sidebar_controller.h |
=================================================================== |
--- chrome/browser/cocoa/sidebar_controller.h (revision 64775) |
+++ chrome/browser/cocoa/sidebar_controller.h (working copy) |
@@ -8,6 +8,7 @@ |
#import <Foundation/Foundation.h> |
+#import "chrome/browser/cocoa/tab_contents_controller.h" |
pink (ping after 24hrs)
2010/11/12 17:34:26
alphabetize
Aleksey Shlyapnikov
2010/11/13 01:37:11
Done.
|
#include "base/scoped_nsobject.h" |
@class NSSplitView; |
@@ -23,11 +24,11 @@ |
// A view hosting sidebar contents. |
scoped_nsobject<NSSplitView> splitView_; |
- // Currently displayed sidebar contents. |
- TabContents* sidebarContents_; // weak. |
+ // Manages currently displayed sidebar contents. |
+ scoped_nsobject<TabContentsViewController> contentsController_; |
} |
-- (id)init; |
+- (id)initWithDelegate:(id<TabContentsViewControllerDelegate>)delegate; |
// This controller's view. |
- (NSSplitView*)view; |
@@ -41,6 +42,10 @@ |
// the actual resize). |
- (void)updateSidebarForTabContents:(TabContents*)contents; |
+// Call when the sidebar view is properly sized and the render widget host view |
+// should be put into the view hierarchy. |
+- (void)ensureContentsVisible; |
+ |
@end |
#endif // CHROME_BROWSER_COCOA_SIDEBAR_CONTROLLER_H_ |