summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/bookmark_button.h')
-rw-r--r--chrome/browser/cocoa/bookmark_button.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_button.h b/chrome/browser/cocoa/bookmark_button.h
new file mode 100644
index 0000000..79c878a
--- /dev/null
+++ b/chrome/browser/cocoa/bookmark_button.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import <Cocoa/Cocoa.h>
+
+// Class for bookmark bar buttons that can be drag sources.
+@interface BookmarkButton : NSButton {
+ @private
+ BOOL draggable_;
+ BOOL beingDragged_; // are we being dragged?
+
+ // Initial mouse-down to prevent a hair-trigger drag.
+ NSPoint initialMouseDownLocation_;
+}
+
+// Enable or disable dragability for special buttons like "Other Bookmarks".
+@property BOOL draggable;
+
+@end
+
+extern NSString* kBookmarkButtonDragType;
+