OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 #include <map> | 10 #include <map> |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 - (IBAction)copyBookmark:(id)sender; | 342 - (IBAction)copyBookmark:(id)sender; |
343 - (IBAction)pasteBookmark:(id)sender; | 343 - (IBAction)pasteBookmark:(id)sender; |
344 - (IBAction)deleteBookmark:(id)sender; | 344 - (IBAction)deleteBookmark:(id)sender; |
345 // From a context menu over the bar, ... | 345 // From a context menu over the bar, ... |
346 - (IBAction)openAllBookmarks:(id)sender; | 346 - (IBAction)openAllBookmarks:(id)sender; |
347 - (IBAction)openAllBookmarksNewWindow:(id)sender; | 347 - (IBAction)openAllBookmarksNewWindow:(id)sender; |
348 - (IBAction)openAllBookmarksIncognitoWindow:(id)sender; | 348 - (IBAction)openAllBookmarksIncognitoWindow:(id)sender; |
349 // Or from a context menu over either the bar or a button. | 349 // Or from a context menu over either the bar or a button. |
350 - (IBAction)addPage:(id)sender; | 350 - (IBAction)addPage:(id)sender; |
351 - (IBAction)addFolder:(id)sender; | 351 - (IBAction)addFolder:(id)sender; |
352 | 352 // Make a relevant tooltip string for node. |
| 353 - (NSString*)tooltipForNode:(const BookmarkNode*)node; |
353 @end | 354 @end |
354 | 355 |
355 // Redirects from BookmarkBarBridge, the C++ object which glues us to | 356 // Redirects from BookmarkBarBridge, the C++ object which glues us to |
356 // the rest of Chromium. Internal to BookmarkBarController. | 357 // the rest of Chromium. Internal to BookmarkBarController. |
357 @interface BookmarkBarController(BridgeRedirect) | 358 @interface BookmarkBarController(BridgeRedirect) |
358 - (void)loaded:(BookmarkModel*)model; | 359 - (void)loaded:(BookmarkModel*)model; |
359 - (void)beingDeleted:(BookmarkModel*)model; | 360 - (void)beingDeleted:(BookmarkModel*)model; |
360 - (void)nodeAdded:(BookmarkModel*)model | 361 - (void)nodeAdded:(BookmarkModel*)model |
361 parent:(const BookmarkNode*)oldParent index:(int)index; | 362 parent:(const BookmarkNode*)oldParent index:(int)index; |
362 - (void)nodeChanged:(BookmarkModel*)model | 363 - (void)nodeChanged:(BookmarkModel*)model |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 400 |
400 // The following are for testing purposes only and are not used internally. | 401 // The following are for testing purposes only and are not used internally. |
401 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; | 402 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; |
402 - (NSMenu*)buttonContextMenu; | 403 - (NSMenu*)buttonContextMenu; |
403 - (void)setButtonContextMenu:(id)menu; | 404 - (void)setButtonContextMenu:(id)menu; |
404 // Set to YES in order to prevent animations. | 405 // Set to YES in order to prevent animations. |
405 - (void)setIgnoreAnimations:(BOOL)ignore; | 406 - (void)setIgnoreAnimations:(BOOL)ignore; |
406 @end | 407 @end |
407 | 408 |
408 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ | 409 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ |
OLD | NEW |