| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 @end | 143 @end |
| 144 | 144 |
| 145 // A controller for the bookmark bar in the browser window. Handles showing | 145 // A controller for the bookmark bar in the browser window. Handles showing |
| 146 // and hiding based on the preference in the given profile. | 146 // and hiding based on the preference in the given profile. |
| 147 @interface BookmarkBarController : | 147 @interface BookmarkBarController : |
| 148 NSViewController<BookmarkBarState, | 148 NSViewController<BookmarkBarState, |
| 149 BookmarkBarToolbarViewController, | 149 BookmarkBarToolbarViewController, |
| 150 BookmarkButtonDelegate, | 150 BookmarkButtonDelegate, |
| 151 BookmarkButtonControllerProtocol, | 151 BookmarkButtonControllerProtocol, |
| 152 CrApplicationEventHookProtocol, | 152 CrEventHookProtocol, |
| 153 NSUserInterfaceValidations, | 153 NSUserInterfaceValidations, |
| 154 NSDraggingDestination> { | 154 NSDraggingDestination> { |
| 155 @private | 155 @private |
| 156 // The state of the bookmark bar. If an animation is running, this is set to | 156 // The state of the bookmark bar. If an animation is running, this is set to |
| 157 // the "destination" and |lastState_| is set to the "original" state. | 157 // the "destination" and |lastState_| is set to the "original" state. |
| 158 BookmarkBar::State state_; | 158 BookmarkBar::State state_; |
| 159 | 159 |
| 160 // The "original" state of the bookmark bar if an animation is running. | 160 // The "original" state of the bookmark bar if an animation is running. |
| 161 BookmarkBar::State lastState_; | 161 BookmarkBar::State lastState_; |
| 162 | 162 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 | 407 |
| 408 // The following are for testing purposes only and are not used internally. | 408 // The following are for testing purposes only and are not used internally. |
| 409 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; | 409 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; |
| 410 - (NSMenu*)buttonContextMenu; | 410 - (NSMenu*)buttonContextMenu; |
| 411 - (void)setButtonContextMenu:(id)menu; | 411 - (void)setButtonContextMenu:(id)menu; |
| 412 // Set to YES in order to prevent animations. | 412 // Set to YES in order to prevent animations. |
| 413 - (void)setIgnoreAnimations:(BOOL)ignore; | 413 - (void)setIgnoreAnimations:(BOOL)ignore; |
| 414 @end | 414 @end |
| 415 | 415 |
| 416 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ | 416 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ |
| OLD | NEW |