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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 #include <vector> | 6 #include <vector> |
7 #import "chrome/browser/ui/cocoa/draggable_button.h" | 7 #import "chrome/browser/ui/cocoa/draggable_button.h" |
8 #include "webkit/glue/window_open_disposition.h" | 8 #include "webkit/glue/window_open_disposition.h" |
9 | 9 |
10 @class BookmarkBarFolderController; | 10 @class BookmarkBarFolderController; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 // Used to tell the controller that room should be made for a drop. | 127 // Used to tell the controller that room should be made for a drop. |
128 - (void)setDropInsertionPos:(CGFloat)where; | 128 - (void)setDropInsertionPos:(CGFloat)where; |
129 | 129 |
130 // Used to tell the controller to stop making room for a drop. | 130 // Used to tell the controller to stop making room for a drop. |
131 - (void)clearDropInsertionPos; | 131 - (void)clearDropInsertionPos; |
132 | 132 |
133 // Return the theme provider associated with this browser window. | 133 // Return the theme provider associated with this browser window. |
134 - (ui::ThemeProvider*)themeProvider; | 134 - (ui::ThemeProvider*)themeProvider; |
135 | 135 |
| 136 // Called just before a child folder puts itself on screen. |
| 137 - (void)childFolderWillShow:(id<BookmarkButtonControllerProtocol>)child; |
| 138 |
| 139 // Called just before a child folder closes. |
| 140 - (void)childFolderWillClose:(id<BookmarkButtonControllerProtocol>)child; |
| 141 |
136 // Return a controller's folder controller for a subfolder, or nil. | 142 // Return a controller's folder controller for a subfolder, or nil. |
137 - (BookmarkBarFolderController*)folderController; | 143 - (BookmarkBarFolderController*)folderController; |
138 | 144 |
139 // Add a new folder controller as triggered by the given folder button. | 145 // Add a new folder controller as triggered by the given folder button. |
140 // If there is a current folder controller, close it. | 146 // If there is a current folder controller, close it. |
141 - (void)addNewFolderControllerWithParentButton:(BookmarkButton*)parentButton; | 147 - (void)addNewFolderControllerWithParentButton:(BookmarkButton*)parentButton; |
142 | 148 |
143 // Open all of the nodes for the given node with disposition. | 149 // Open all of the nodes for the given node with disposition. |
144 - (void)openAll:(const BookmarkNode*)node | 150 - (void)openAll:(const BookmarkNode*)node |
145 disposition:(WindowOpenDisposition)disposition; | 151 disposition:(WindowOpenDisposition)disposition; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 259 |
254 // Key for userInfo dict of a kPulseBookmarkButtonNotification. | 260 // Key for userInfo dict of a kPulseBookmarkButtonNotification. |
255 // Value is a [NSValue valueWithPointer:]; pointer is a (const BookmarkNode*). | 261 // Value is a [NSValue valueWithPointer:]; pointer is a (const BookmarkNode*). |
256 extern NSString* const kBookmarkKey; | 262 extern NSString* const kBookmarkKey; |
257 | 263 |
258 // Key for userInfo dict of a kPulseBookmarkButtonNotification. | 264 // Key for userInfo dict of a kPulseBookmarkButtonNotification. |
259 // Value is a [NSNumber numberWithBool:] to turn pulsing on or off. | 265 // Value is a [NSNumber numberWithBool:] to turn pulsing on or off. |
260 extern NSString* const kBookmarkPulseFlagKey; | 266 extern NSString* const kBookmarkPulseFlagKey; |
261 | 267 |
262 }; | 268 }; |
OLD | NEW |