Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: chrome/browser/cocoa/bookmark_button.h

Issue 437055: Mac: fix Esc-key cancellation of bookmark bar button drags. (Closed)
Patch Set: Updated/eliminated some comments. Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/cocoa/bookmark_button.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/bookmark_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698