| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // Class for bookmark bar buttons that can be drag sources. | 7 // Class for bookmark bar buttons that can be drag sources. |
| 8 @interface BookmarkButton : NSButton { | 8 @interface BookmarkButton : NSButton { |
| 9 @private | 9 @private |
| 10 BOOL draggable_; | 10 BOOL draggable_; // Is this a draggable type of button? |
| 11 BOOL beingDragged_; // are we being dragged? | 11 BOOL mayDragStart_; // Set to YES on mouse down, NO on up or drag. |
| 12 BOOL beingDragged_; |
| 12 | 13 |
| 13 // Initial mouse-down to prevent a hair-trigger drag. | 14 // Initial mouse-down to prevent a hair-trigger drag. |
| 14 NSPoint initialMouseDownLocation_; | 15 NSPoint initialMouseDownLocation_; |
| 15 } | 16 } |
| 16 | 17 |
| 17 // Enable or disable dragability for special buttons like "Other Bookmarks". | 18 // Enable or disable dragability for special buttons like "Other Bookmarks". |
| 18 @property BOOL draggable; | 19 @property BOOL draggable; |
| 19 | 20 |
| 20 @end | 21 @end |
| 21 | 22 |
| 22 extern NSString* kBookmarkButtonDragType; | 23 extern NSString* kBookmarkButtonDragType; |
| 23 | 24 |
| OLD | NEW |