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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 147 |
148 // Open all of the nodes for the given node with disposition. | 148 // Open all of the nodes for the given node with disposition. |
149 - (void)openAll:(const BookmarkNode*)node | 149 - (void)openAll:(const BookmarkNode*)node |
150 disposition:(WindowOpenDisposition)disposition; | 150 disposition:(WindowOpenDisposition)disposition; |
151 | 151 |
152 // There are several operations which may affect the contents of a bookmark | 152 // There are several operations which may affect the contents of a bookmark |
153 // button controller after it has been created, primary of which are | 153 // button controller after it has been created, primary of which are |
154 // cut/paste/delete and drag/drop. Such changes may involve coordinating | 154 // cut/paste/delete and drag/drop. Such changes may involve coordinating |
155 // the bookmark button contents of two controllers (such as when a bookmark is | 155 // the bookmark button contents of two controllers (such as when a bookmark is |
156 // dragged from one folder to another). The bookmark bar controller | 156 // dragged from one folder to another). The bookmark bar controller |
157 // coordinates in response to notifications propogated by the bookmark model | 157 // coordinates in response to notifications propagated by the bookmark model |
158 // through BookmarkBarBridge calls. The following three functions are | 158 // through BookmarkBarBridge calls. The following three functions are |
159 // implemented by the controllers and are dispatched by the bookmark bar | 159 // implemented by the controllers and are dispatched by the bookmark bar |
160 // controller in response to notifications coming in from the BookmarkBarBridge. | 160 // controller in response to notifications coming in from the BookmarkBarBridge. |
161 | 161 |
162 // Add a button for the given node to the bar or folder menu. This is safe | 162 // Add a button for the given node to the bar or folder menu. This is safe |
163 // to call when a folder menu window is open as that window will be updated. | 163 // to call when a folder menu window is open as that window will be updated. |
164 // And index of -1 means to append to the end (bottom). | 164 // And index of -1 means to append to the end (bottom). |
165 - (void)addButtonForNode:(const BookmarkNode*)node | 165 - (void)addButtonForNode:(const BookmarkNode*)node |
166 atIndex:(NSInteger)buttonIndex; | 166 atIndex:(NSInteger)buttonIndex; |
167 | 167 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 // Key for userInfo dict of a kPulseBookmarkButtonNotification. | 261 // Key for userInfo dict of a kPulseBookmarkButtonNotification. |
262 // Value is a [NSValue valueWithPointer:]; pointer is a (const BookmarkNode*). | 262 // Value is a [NSValue valueWithPointer:]; pointer is a (const BookmarkNode*). |
263 extern NSString* const kBookmarkKey; | 263 extern NSString* const kBookmarkKey; |
264 | 264 |
265 // Key for userInfo dict of a kPulseBookmarkButtonNotification. | 265 // Key for userInfo dict of a kPulseBookmarkButtonNotification. |
266 // Value is a [NSNumber numberWithBool:] to turn pulsing on or off. | 266 // Value is a [NSNumber numberWithBool:] to turn pulsing on or off. |
267 extern NSString* const kBookmarkPulseFlagKey; | 267 extern NSString* const kBookmarkPulseFlagKey; |
268 | 268 |
269 }; | 269 }; |
OLD | NEW |