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

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

Issue 3228003: Sidebar view, implementation for Mac. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller.mm ('k') | chrome/browser/cocoa/tab_contents_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/tab_contents_controller.h
===================================================================
--- chrome/browser/cocoa/tab_contents_controller.h (revision 57723)
+++ chrome/browser/cocoa/tab_contents_controller.h (working copy)
@@ -24,8 +24,10 @@
@private
TabContentsCommandObserver* observer_; // nil if |commands_| is nil
TabContents* contents_; // weak
+ TabContents* sidebarContents_; // weak
IBOutlet NSSplitView* contentsContainer_;
+ IBOutlet NSSplitView* devToolsContainer_;
}
// Create the contents of a tab represented by |contents| and loaded from the
@@ -60,6 +62,17 @@
// Returns the height required by devtools and divider, or 0 if no devtools are
// docked to the tab.
- (CGFloat)devToolsHeight;
+
+// Shows |sidebarContents| in a split view, or removes the right view in the
+// split view if |sidebarContents| is NULL.
+// TODO(thakis): Either move this to tab_window or move infobar handling to here
+// too -- http://crbug.com/31633 .
+- (void)showSidebarContents:(TabContents*)sidebarContents;
+
+// Returns contents of the currently displayed sidebar; returns NULL if there
+// isn't any.
+- (TabContents*)sidebarContents;
+
@end
#endif // CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_H_
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller.mm ('k') | chrome/browser/cocoa/tab_contents_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698