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

Unified Diff: chrome/browser/cocoa/bookmark_bar_state_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/browser_prefs.cc ('k') | chrome/browser/cocoa/bookmark_bar_state_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/bookmark_bar_state_controller.h
===================================================================
--- chrome/browser/cocoa/bookmark_bar_state_controller.h (revision 0)
+++ chrome/browser/cocoa/bookmark_bar_state_controller.h (revision 0)
@@ -0,0 +1,36 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_STATE_CONTROLLER_H_
+#define CHROME_BROWSER_COCOA_BOOKMARK_BAR_STATE_CONTROLLER_H_
+
+#import <Cocoa/Cocoa.h>
+
+class Browser;
+
+// A class to manage bookmark bar state (visible or not). State is
+// shared among all tabs and saved in a preference.
+@interface BookmarkBarStateController : NSObject {
+ @private
+ Browser* browser_;
+ BOOL visible_;
+}
+
+- (id)initWithBrowser:(Browser *)browser;
+
+// Return YES or NO reflecting visibility state of the bookmark bar.
+- (BOOL)visible;
+
+// Toggle (on or off) the bookmark bar visibility.
+- (void)toggleBookmarkBar;
+
+@end // BookmarkBarStateController
+
+
+@interface BookmarkBarStateController (Private)
+// Internal method exposed for unit test convenience.
+- (void)togglePreference;
+@end
+
+#endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_STATE_CONTROLLER_H_
« no previous file with comments | « chrome/browser/browser_prefs.cc ('k') | chrome/browser/cocoa/bookmark_bar_state_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698