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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 @end | 122 @end |
123 | 123 |
124 // A controller for the bookmark bar in the browser window. Handles showing | 124 // A controller for the bookmark bar in the browser window. Handles showing |
125 // and hiding based on the preference in the given profile. | 125 // and hiding based on the preference in the given profile. |
126 @interface BookmarkBarController : | 126 @interface BookmarkBarController : |
127 NSViewController<BookmarkBarState, | 127 NSViewController<BookmarkBarState, |
128 BookmarkBarToolbarViewController, | 128 BookmarkBarToolbarViewController, |
129 BookmarkButtonDelegate, | 129 BookmarkButtonDelegate, |
130 BookmarkButtonControllerProtocol, | 130 BookmarkButtonControllerProtocol, |
131 CrApplicationEventHookProtocol> { | 131 CrApplicationEventHookProtocol, |
| 132 NSUserInterfaceValidations> { |
132 @private | 133 @private |
133 // The visual state of the bookmark bar. If an animation is running, this is | 134 // The visual state of the bookmark bar. If an animation is running, this is |
134 // set to the "destination" and |lastVisualState_| is set to the "original" | 135 // set to the "destination" and |lastVisualState_| is set to the "original" |
135 // state. This is set to |kInvalidState| on initialization (when the | 136 // state. This is set to |kInvalidState| on initialization (when the |
136 // appropriate state is not yet known). | 137 // appropriate state is not yet known). |
137 bookmarks::VisualState visualState_; | 138 bookmarks::VisualState visualState_; |
138 | 139 |
139 // The "original" state of the bookmark bar if an animation is running, | 140 // The "original" state of the bookmark bar if an animation is running, |
140 // otherwise it should be |kInvalidState|. | 141 // otherwise it should be |kInvalidState|. |
141 bookmarks::VisualState lastVisualState_; | 142 bookmarks::VisualState lastVisualState_; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 365 |
365 // The following are for testing purposes only and are not used internally. | 366 // The following are for testing purposes only and are not used internally. |
366 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; | 367 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; |
367 - (NSMenu*)buttonContextMenu; | 368 - (NSMenu*)buttonContextMenu; |
368 - (void)setButtonContextMenu:(id)menu; | 369 - (void)setButtonContextMenu:(id)menu; |
369 // Set to YES in order to prevent animations. | 370 // Set to YES in order to prevent animations. |
370 - (void)setIgnoreAnimations:(BOOL)ignore; | 371 - (void)setIgnoreAnimations:(BOOL)ignore; |
371 @end | 372 @end |
372 | 373 |
373 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 374 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
OLD | NEW |