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

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

Issue 46078: Mac bookmark work. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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/tab_contents_controller.mm ('k') | chrome/browser/cocoa/tab_strip_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/tab_strip_controller.h
===================================================================
--- chrome/browser/cocoa/tab_strip_controller.h (revision 11933)
+++ chrome/browser/cocoa/tab_strip_controller.h (working copy)
@@ -7,9 +7,13 @@
#import <Cocoa/Cocoa.h>
+@class TabStripView;
+@class BookmarkBarStateController;
+
+class BookmarkModel;
+class Browser;
class CommandUpdater;
class LocationBar;
-@class TabStripView;
class TabStripBridge;
class TabStripModel;
class TabContents;
@@ -34,6 +38,7 @@
TabStripBridge* bridge_;
TabStripModel* tabModel_; // weak
ToolbarModel* toolbarModel_; // weak, one per browser
+ BookmarkModel* bookmarkModel_; // weak, one per profile (= one per Browser*)
CommandUpdater* commands_; // weak, may be nil
// access to the TabContentsControllers (which own the parent view
// for the toolbar and associated tab contents) given an index. This needs
@@ -43,15 +48,15 @@
// an array of TabControllers which manage the actual tab views. As above,
// this is kept in the same order as the tab strip model.
NSMutableArray* tabArray_;
+
+ // Controller for bookmark bar state, shared among all TabContents.
+ BookmarkBarStateController* bookmarkBarStateController_;
}
-// Initialize the controller with a view, model, and command updater for
-// tracking what's enabled and disabled. |commands| may be nil if no updating
-// is desired.
+// Initialize the controller with a view and browser that contains
+// everything else we'll need.
- (id)initWithView:(TabStripView*)view
- tabModel:(TabStripModel*)tabModel
- toolbarModel:(ToolbarModel*)toolbarModel
- commands:(CommandUpdater*)commands;
+ browser:(Browser*)browser;
// Get the C++ bridge object representing the location bar for the current tab.
- (LocationBar*)locationBar;
@@ -76,6 +81,13 @@
// Make the location bar the first responder, if possible.
- (void)focusLocationBar;
+// Return a boolean (ObjC BOOL, not C++ bool) to say if the bookmark
+// bar is visible.
+- (BOOL)isBookmarkBarVisible;
+
+// Turn on or off the bookmark bar for *ALL* tabs.
+- (void)toggleBookmarkBar;
+
@end
#endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_
« no previous file with comments | « chrome/browser/cocoa/tab_contents_controller.mm ('k') | chrome/browser/cocoa/tab_strip_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698