| 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_FOLDER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // If you wanted to clear the type-select buffer. Currently only used | 161 // If you wanted to clear the type-select buffer. Currently only used |
| 162 // internally. | 162 // internally. |
| 163 - (void)clearInputText; | 163 - (void)clearInputText; |
| 164 | 164 |
| 165 // Gets notified when a fav icon asynchronously loads, so we can now use the | 165 // Gets notified when a fav icon asynchronously loads, so we can now use the |
| 166 // real icon instead of a generic placeholder. | 166 // real icon instead of a generic placeholder. |
| 167 - (void)faviconLoadedForNode:(const BookmarkNode*)node; | 167 - (void)faviconLoadedForNode:(const BookmarkNode*)node; |
| 168 | 168 |
| 169 - (void)setSelectedButtonByIndex:(int)index; | 169 - (void)setSelectedButtonByIndex:(int)index; |
| 170 | 170 |
| 171 // Offset our folder menu window. This is usually needed in response to a | |
| 172 // parent folder menu window or the bookmark bar changing position due to | |
| 173 // the dragging of a bookmark node from the parent into this folder menu. | |
| 174 - (void)offsetFolderMenuWindow:(NSSize)offset; | |
| 175 | |
| 176 // Re-layout the window menu in case some buttons were added or removed, | 171 // Re-layout the window menu in case some buttons were added or removed, |
| 177 // specifically as a result of the bookmark bar changing configuration | 172 // specifically as a result of the bookmark bar changing configuration |
| 178 // and altering the contents of the off-the-side folder. | 173 // and altering the contents of the off-the-side folder. |
| 179 - (void)reconfigureMenu; | 174 - (void)reconfigureMenu; |
| 180 | 175 |
| 181 // Passed up by a child view to tell us of a desire to scroll. | 176 // Passed up by a child view to tell us of a desire to scroll. |
| 182 - (void)scrollWheel:(NSEvent *)theEvent; | 177 - (void)scrollWheel:(NSEvent *)theEvent; |
| 183 | 178 |
| 184 - (void)mouseDragged:(NSEvent*)theEvent; | 179 - (void)mouseDragged:(NSEvent*)theEvent; |
| 185 | 180 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 206 - (NSView*)visibleView; | 201 - (NSView*)visibleView; |
| 207 - (NSScrollView*)scrollView; | 202 - (NSScrollView*)scrollView; |
| 208 - (NSView*)folderView; | 203 - (NSView*)folderView; |
| 209 | 204 |
| 210 - (IBAction)openBookmarkFolderFromButton:(id)sender; | 205 - (IBAction)openBookmarkFolderFromButton:(id)sender; |
| 211 | 206 |
| 212 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; | 207 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; |
| 213 @end | 208 @end |
| 214 | 209 |
| 215 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ | 210 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ |
| OLD | NEW |