diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 23:57:19 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 23:57:19 +0000 |
commit | ee01535e43949832b8fb57a74d892390e01d36dd (patch) | |
tree | 630574b28df21ef914369b9a16c0bfdca1b74527 /chrome/browser/cocoa/bookmark_bar_controller.h | |
parent | d7aef10706a8e8b5da86d48113136887b3ca97a1 (diff) | |
download | chromium_src-ee01535e43949832b8fb57a74d892390e01d36dd.zip chromium_src-ee01535e43949832b8fb57a74d892390e01d36dd.tar.gz chromium_src-ee01535e43949832b8fb57a74d892390e01d36dd.tar.bz2 |
Implement bookmark editor. No tree display or hierarchy movement, but
name/url editing works. Get to the edotir from a context menu (Edit,
Add Page). Also Implement Open All Bookmarks menu item.
BUG=http://crbug.com/8381, http://crbug.com/17006
TEST=Add some bookmarks.
Right-click on a bookmark and pick Edit.
Test editing the name and URL. Make sure you can't add a bogus URL.
Right-click on a bookmark or the bar and Add Page.
Fill in name and URL fields to add a new bookmark.
Right-click Open All Bookmarks and make sure it hoses your machine.
Review URL: http://codereview.chromium.org/155874
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21241 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 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_controller.h b/chrome/browser/cocoa/bookmark_bar_controller.h index 662da61..6e57bfa 100644 --- a/chrome/browser/cocoa/bookmark_bar_controller.h +++ b/chrome/browser/cocoa/bookmark_bar_controller.h @@ -29,9 +29,9 @@ class PrefService; // and hiding based on the preference in the given profile. @interface BookmarkBarController : NSViewController { @private + Profile* profile_; // weak BookmarkModel* bookmarkModel_; // weak; part of the profile owned by the // top-level Browser object. - PrefService* preferences_; // (ditto) // Currently these two are always the same when not in fullscreen // mode, but they mean slightly different things. @@ -83,13 +83,20 @@ class PrefService; // if needed. For fullscreen mode. - (void)setBookmarkBarEnabled:(BOOL)enabled; -// Actions for opening bookmarks. From a button, ... +// Actions for manipulating bookmarks. +// From a button, ... - (IBAction)openBookmark:(id)sender; -// ... or from a context menu over the button. +// From a context menu over the button, ... - (IBAction)openBookmarkInNewForegroundTab:(id)sender; - (IBAction)openBookmarkInNewWindow:(id)sender; - (IBAction)openBookmarkInIncognitoWindow:(id)sender; +- (IBAction)editBookmark:(id)sender; - (IBAction)deleteBookmark:(id)sender; +// From a context menu over the bar, ... +- (IBAction)openAllBookmarks:(id)sender; +// Or from a context menu over either the bar or a button. +- (IBAction)addPage:(id)sender; + @end |