diff options
author | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 01:37:07 +0000 |
---|---|---|
committer | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 01:37:07 +0000 |
commit | a54d402c3bf0a74aff9e4fa04f86b8818c6ebe3a (patch) | |
tree | a9bda009f5fba50cf09d4b7edc8f9763c22f8f63 /chrome/browser/cocoa/bookmark_bar_controller.h | |
parent | 61dd7efa16c8f62d07588aaca7163ad3052bb99e (diff) | |
download | chromium_src-a54d402c3bf0a74aff9e4fa04f86b8818c6ebe3a.zip chromium_src-a54d402c3bf0a74aff9e4fa04f86b8818c6ebe3a.tar.gz chromium_src-a54d402c3bf0a74aff9e4fa04f86b8818c6ebe3a.tar.bz2 |
Mac: Allow dragging bookmarks to trash
This patch allows users to delete bookmarks by dragging them to the trash icon on the Mac OS dock.
Note: Original patch http://codereview.chromium.org/3342023 proposed by fnepal@gmail.com.
BUG=54727
TEST=Dragged bookmarks to trash. Verified that the bookmark was deleted. Verified that the poof animation was draw centered over the mouse cursor. Verified that the same thing worked for bookmarks inside folders.
Review URL: http://codereview.chromium.org/3333026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_bar_controller.h')
-rw-r--r-- | chrome/browser/cocoa/bookmark_bar_controller.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_controller.h b/chrome/browser/cocoa/bookmark_bar_controller.h index 020e8cf..9c57ee0 100644 --- a/chrome/browser/cocoa/bookmark_bar_controller.h +++ b/chrome/browser/cocoa/bookmark_bar_controller.h @@ -294,6 +294,9 @@ willAnimateFromState:(bookmarks::VisualState)oldState // presenting a new menu.) - (void)closeFolderAndStopTrackingMenus; +// Checks if operations such as edit or delete are allowed. +- (BOOL)canEditBookmark:(const BookmarkNode*)node; + // Actions for manipulating bookmarks. // Open a normal bookmark or folder from a button, ... - (IBAction)openBookmark:(id)sender; @@ -346,7 +349,7 @@ willAnimateFromState:(bookmarks::VisualState)oldState - (NSMenu*)offTheSideMenu; - (NSButton*)offTheSideButton; - (BOOL)offTheSideButtonIsHidden; -- (NSButton*)otherBookmarksButton; +- (BookmarkButton*)otherBookmarksButton; - (BookmarkBarFolderController*)folderController; - (id)folderTarget; - (int)displayedButtonCount; |