OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_STATE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_STATE_CONTROLLER_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 class Browser; |
| 11 |
| 12 // A class to manage bookmark bar state (visible or not). State is |
| 13 // shared among all tabs and saved in a preference. |
| 14 @interface BookmarkBarStateController : NSObject { |
| 15 @private |
| 16 Browser* browser_; |
| 17 BOOL visible_; |
| 18 } |
| 19 |
| 20 - (id)initWithBrowser:(Browser *)browser; |
| 21 |
| 22 // Return YES or NO reflecting visibility state of the bookmark bar. |
| 23 - (BOOL)visible; |
| 24 |
| 25 // Toggle (on or off) the bookmark bar visibility. |
| 26 - (void)toggleBookmarkBar; |
| 27 |
| 28 @end // BookmarkBarStateController |
| 29 |
| 30 |
| 31 @interface BookmarkBarStateController (Private) |
| 32 // Internal method exposed for unit test convenience. |
| 33 - (void)togglePreference; |
| 34 @end |
| 35 |
| 36 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_STATE_CONTROLLER_H_ |
OLD | NEW |