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