| 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 #include <vector> | 6 #include <vector> |
| 7 #import "chrome/browser/cocoa/draggable_button.h" | 7 #import "chrome/browser/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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 - (BOOL)isFolder; | 191 - (BOOL)isFolder; |
| 192 | 192 |
| 193 // At this time we represent an empty folder (e.g. the string | 193 // At this time we represent an empty folder (e.g. the string |
| 194 // '(empty)') as a disabled button with no associated node. | 194 // '(empty)') as a disabled button with no associated node. |
| 195 // | 195 // |
| 196 // TODO(jrg): improve; things work but are slightly ugly since "empty" | 196 // TODO(jrg): improve; things work but are slightly ugly since "empty" |
| 197 // and "one disabled button" are not the same thing. | 197 // and "one disabled button" are not the same thing. |
| 198 // http://crbug.com/35967 | 198 // http://crbug.com/35967 |
| 199 - (BOOL)isEmpty; | 199 - (BOOL)isEmpty; |
| 200 | 200 |
| 201 // Turn on or off pulsing of a bookmark button. |
| 202 // Triggered by the bookmark bubble. |
| 203 - (void)setIsContinuousPulsing:(BOOL)flag; |
| 204 |
| 205 // Return continuous pulse state. |
| 206 - (BOOL)isContinuousPulsing; |
| 207 |
| 201 @end // @interface BookmarkButton | 208 @end // @interface BookmarkButton |
| 202 | 209 |
| 203 | 210 |
| 204 @interface BookmarkButton(TestingAPI) | 211 @interface BookmarkButton(TestingAPI) |
| 205 - (void)beginDrag:(NSEvent*)event; | 212 - (void)beginDrag:(NSEvent*)event; |
| 206 @end | 213 @end |
| 207 | 214 |
| 215 namespace bookmark_button { |
| 216 |
| 217 // Notifications for pulsing of bookmarks. |
| 218 extern const NSString* kPulseBookmarkButtonNotification; |
| 219 |
| 220 // Key for userInfo dict of a kPulseBookmarkButtonNotification. |
| 221 // Value is a [NSValue valueWithPointer:]; pointer is a (const BookmarkNode*). |
| 222 extern const NSString* kBookmarkKey; |
| 223 |
| 224 // Key for userInfo dict of a kPulseBookmarkButtonNotification. |
| 225 // Value is a [NSNumber numberWithBool:] to turn pulsing on or off. |
| 226 extern const NSString* kBookmarkPulseFlagKey; |
| 227 |
| 228 }; |
| OLD | NEW |