Chromium Code Reviews

Unified Diff: chrome/browser/cocoa/bookmark_bar_controller.h

Issue 155874: Implement bookmark editor (no tree yet) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/app/nibs/BookmarkEditor.xib ('k') | chrome/browser/cocoa/bookmark_bar_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/bookmark_bar_controller.h
===================================================================
--- chrome/browser/cocoa/bookmark_bar_controller.h (revision 21121)
+++ chrome/browser/cocoa/bookmark_bar_controller.h (working copy)
@@ -29,9 +29,9 @@
// 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,14 +83,21 @@
// 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
// Redirects from BookmarkBarBridge, the C++ object which glues us to
« no previous file with comments | « chrome/app/nibs/BookmarkEditor.xib ('k') | chrome/browser/cocoa/bookmark_bar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine