| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 275 |
| 276 // Called by our view when it is moved to a window. | 276 // Called by our view when it is moved to a window. |
| 277 - (void)viewDidMoveToWindow; | 277 - (void)viewDidMoveToWindow; |
| 278 | 278 |
| 279 // Import bookmarks from another browser. | 279 // Import bookmarks from another browser. |
| 280 - (IBAction)importBookmarks:(id)sender; | 280 - (IBAction)importBookmarks:(id)sender; |
| 281 | 281 |
| 282 // Provide a favIcon for a bookmark node. May return nil. | 282 // Provide a favIcon for a bookmark node. May return nil. |
| 283 - (NSImage*)favIconForNode:(const BookmarkNode*)node; | 283 - (NSImage*)favIconForNode:(const BookmarkNode*)node; |
| 284 | 284 |
| 285 // Move bookmark buttons out of the way during drag operations |
| 286 - (void)performPeriodicDraggingUpdates:(id<NSDraggingInfo>)info; |
| 287 |
| 285 // Used for situations where the bookmark bar folder menus should no longer | 288 // Used for situations where the bookmark bar folder menus should no longer |
| 286 // be actively popping up. Called when the window loses focus, a click has | 289 // be actively popping up. Called when the window loses focus, a click has |
| 287 // occured outside the menus or a bookmark has been activated. (Note that this | 290 // occured outside the menus or a bookmark has been activated. (Note that this |
| 288 // differs from the behavior of the -[BookmarkButtonControllerProtocol | 291 // differs from the behavior of the -[BookmarkButtonControllerProtocol |
| 289 // closeAllBookmarkFolders] method in that the latter does not terminate menu | 292 // closeAllBookmarkFolders] method in that the latter does not terminate menu |
| 290 // tracking since it may be being called in response to actions (such as | 293 // tracking since it may be being called in response to actions (such as |
| 291 // dragging) where a 'stale' menu presentation should first be collapsed before | 294 // dragging) where a 'stale' menu presentation should first be collapsed before |
| 292 // presenting a new menu.) | 295 // presenting a new menu.) |
| 293 - (void)closeFolderAndStopTrackingMenus; | 296 - (void)closeFolderAndStopTrackingMenus; |
| 294 | 297 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 | 367 |
| 365 // 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. |
| 366 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; | 369 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; |
| 367 - (NSMenu*)buttonContextMenu; | 370 - (NSMenu*)buttonContextMenu; |
| 368 - (void)setButtonContextMenu:(id)menu; | 371 - (void)setButtonContextMenu:(id)menu; |
| 369 // Set to YES in order to prevent animations. | 372 // Set to YES in order to prevent animations. |
| 370 - (void)setIgnoreAnimations:(BOOL)ignore; | 373 - (void)setIgnoreAnimations:(BOOL)ignore; |
| 371 @end | 374 @end |
| 372 | 375 |
| 373 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 376 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
| OLD | NEW |