| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 initialWidth:(CGFloat)initialWidth | 299 initialWidth:(CGFloat)initialWidth |
| 300 delegate:(id<BookmarkBarControllerDelegate>)delegate | 300 delegate:(id<BookmarkBarControllerDelegate>)delegate |
| 301 resizeDelegate:(id<ViewResizer>)resizeDelegate; | 301 resizeDelegate:(id<ViewResizer>)resizeDelegate; |
| 302 | 302 |
| 303 // The Browser corresponding to this BookmarkBarController. | 303 // The Browser corresponding to this BookmarkBarController. |
| 304 - (Browser*)browser; | 304 - (Browser*)browser; |
| 305 | 305 |
| 306 // The controller for all bookmark bar context menus. | 306 // The controller for all bookmark bar context menus. |
| 307 - (BookmarkContextMenuCocoaController*)menuController; | 307 - (BookmarkContextMenuCocoaController*)menuController; |
| 308 | 308 |
| 309 // Called by BrowserWindowController when the Browser is being destroyed. |
| 310 - (void)browserWillBeDestroyed; |
| 311 |
| 309 // Updates the bookmark bar (from its current, possibly in-transition) state to | 312 // Updates the bookmark bar (from its current, possibly in-transition) state to |
| 310 // the new state. | 313 // the new state. |
| 311 - (void)updateState:(BookmarkBar::State)newState | 314 - (void)updateState:(BookmarkBar::State)newState |
| 312 changeType:(BookmarkBar::AnimateChangeType)changeType; | 315 changeType:(BookmarkBar::AnimateChangeType)changeType; |
| 313 | 316 |
| 314 // Update the visible state of the bookmark bar. | 317 // Update the visible state of the bookmark bar. |
| 315 - (void)updateVisibility; | 318 - (void)updateVisibility; |
| 316 | 319 |
| 317 // Update the visible state of the extra buttons on the bookmark bar: the | 320 // Update the visible state of the extra buttons on the bookmark bar: the |
| 318 // apps shortcut, the managed bookmarks folder, and the supervised bookmarks | 321 // apps shortcut, the managed bookmarks folder, and the supervised bookmarks |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; | 425 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; |
| 423 - (BOOL)isEventAnExitEvent:(NSEvent*)event; | 426 - (BOOL)isEventAnExitEvent:(NSEvent*)event; |
| 424 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX; | 427 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX; |
| 425 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node; | 428 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node; |
| 426 | 429 |
| 427 // The following are for testing purposes only and are not used internally. | 430 // The following are for testing purposes only and are not used internally. |
| 428 - (NSMenu *)menuForFolderNode:(const bookmarks::BookmarkNode*)node; | 431 - (NSMenu *)menuForFolderNode:(const bookmarks::BookmarkNode*)node; |
| 429 @end | 432 @end |
| 430 | 433 |
| 431 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ | 434 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ |
| OLD | NEW |