| 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "base/scoped_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
| 8 #import "chrome/browser/cocoa/bookmark_button.h" | 8 #import "chrome/browser/cocoa/bookmark_button.h" |
| 9 | 9 |
| 10 @class BookmarkBarController; | 10 @class BookmarkBarController; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 // Return the parent button that owns the bookmark folder we represent. | 110 // Return the parent button that owns the bookmark folder we represent. |
| 111 - (BookmarkButton*)parentButton; | 111 - (BookmarkButton*)parentButton; |
| 112 | 112 |
| 113 // Actions from a context menu over a button or folder. | 113 // Actions from a context menu over a button or folder. |
| 114 - (IBAction)cutBookmark:(id)sender; | 114 - (IBAction)cutBookmark:(id)sender; |
| 115 - (IBAction)copyBookmark:(id)sender; | 115 - (IBAction)copyBookmark:(id)sender; |
| 116 - (IBAction)pasteBookmark:(id)sender; | 116 - (IBAction)pasteBookmark:(id)sender; |
| 117 - (IBAction)deleteBookmark:(id)sender; | 117 - (IBAction)deleteBookmark:(id)sender; |
| 118 | 118 |
| 119 // Passed up by a child view to tell us of a desire to scroll. |
| 120 - (void)scrollWheel:(NSEvent *)theEvent; |
| 121 |
| 119 // Forwarded to the associated BookmarkBarController. | 122 // Forwarded to the associated BookmarkBarController. |
| 120 - (IBAction)addFolder:(id)sender; | 123 - (IBAction)addFolder:(id)sender; |
| 121 - (IBAction)addPage:(id)sender; | 124 - (IBAction)addPage:(id)sender; |
| 122 - (IBAction)editBookmark:(id)sender; | 125 - (IBAction)editBookmark:(id)sender; |
| 123 - (IBAction)openAllBookmarks:(id)sender; | 126 - (IBAction)openAllBookmarks:(id)sender; |
| 124 - (IBAction)openAllBookmarksIncognitoWindow:(id)sender; | 127 - (IBAction)openAllBookmarksIncognitoWindow:(id)sender; |
| 125 - (IBAction)openAllBookmarksNewWindow:(id)sender; | 128 - (IBAction)openAllBookmarksNewWindow:(id)sender; |
| 126 - (IBAction)openBookmarkInIncognitoWindow:(id)sender; | 129 - (IBAction)openBookmarkInIncognitoWindow:(id)sender; |
| 127 - (IBAction)openBookmarkInNewForegroundTab:(id)sender; | 130 - (IBAction)openBookmarkInNewForegroundTab:(id)sender; |
| 128 - (IBAction)openBookmarkInNewWindow:(id)sender; | 131 - (IBAction)openBookmarkInNewWindow:(id)sender; |
| 132 |
| 129 @end | 133 @end |
| 130 | 134 |
| 131 @interface BookmarkBarFolderController(TestingAPI) | 135 @interface BookmarkBarFolderController(TestingAPI) |
| 132 - (NSView*)mainView; | 136 - (NSView*)mainView; |
| 133 - (NSPoint)windowTopLeft; | 137 - (NSPoint)windowTopLeft; |
| 134 - (NSArray*)buttons; | 138 - (NSArray*)buttons; |
| 135 - (BookmarkBarFolderController*)folderController; | 139 - (BookmarkBarFolderController*)folderController; |
| 136 - (id)folderTarget; | 140 - (id)folderTarget; |
| 137 - (void)configureWindowLevel; | 141 - (void)configureWindowLevel; |
| 138 - (void)performOneScroll:(CGFloat)delta; | 142 - (void)performOneScroll:(CGFloat)delta; |
| 139 @end | 143 @end |
| 140 | 144 |
| OLD | NEW |