| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 // A controller for the bookmark bar in the browser window. Handles showing | 125 // A controller for the bookmark bar in the browser window. Handles showing |
| 126 // and hiding based on the preference in the given profile. | 126 // and hiding based on the preference in the given profile. |
| 127 @interface BookmarkBarController : | 127 @interface BookmarkBarController : |
| 128 NSViewController<BookmarkBarState, | 128 NSViewController<BookmarkBarState, |
| 129 BookmarkBarToolbarViewController, | 129 BookmarkBarToolbarViewController, |
| 130 BookmarkButtonDelegate, | 130 BookmarkButtonDelegate, |
| 131 BookmarkButtonControllerProtocol, | 131 BookmarkButtonControllerProtocol, |
| 132 CrApplicationEventHookProtocol, | 132 CrApplicationEventHookProtocol, |
| 133 NSUserInterfaceValidations> { | 133 NSUserInterfaceValidations> { |
| 134 @private | 134 @public // FIXME |
| 135 // The visual state of the bookmark bar. If an animation is running, this is | 135 // The visual state of the bookmark bar. If an animation is running, this is |
| 136 // set to the "destination" and |lastVisualState_| is set to the "original" | 136 // set to the "destination" and |lastVisualState_| is set to the "original" |
| 137 // state. This is set to |kInvalidState| on initialization (when the | 137 // state. This is set to |kInvalidState| on initialization (when the |
| 138 // appropriate state is not yet known). | 138 // appropriate state is not yet known). |
| 139 bookmarks::VisualState visualState_; | 139 bookmarks::VisualState visualState_; |
| 140 | 140 |
| 141 // The "original" state of the bookmark bar if an animation is running, | 141 // The "original" state of the bookmark bar if an animation is running, |
| 142 // otherwise it should be |kInvalidState|. | 142 // otherwise it should be |kInvalidState|. |
| 143 bookmarks::VisualState lastVisualState_; | 143 bookmarks::VisualState lastVisualState_; |
| 144 | 144 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 366 |
| 367 // The following are for testing purposes only and are not used internally. | 367 // The following are for testing purposes only and are not used internally. |
| 368 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; | 368 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; |
| 369 - (NSMenu*)buttonContextMenu; | 369 - (NSMenu*)buttonContextMenu; |
| 370 - (void)setButtonContextMenu:(id)menu; | 370 - (void)setButtonContextMenu:(id)menu; |
| 371 // Set to YES in order to prevent animations. | 371 // Set to YES in order to prevent animations. |
| 372 - (void)setIgnoreAnimations:(BOOL)ignore; | 372 - (void)setIgnoreAnimations:(BOOL)ignore; |
| 373 @end | 373 @end |
| 374 | 374 |
| 375 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 375 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
| OLD | NEW |