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

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

Issue 343042: Original discussion in CL for 337010. See http://codereview.chromium.org/337... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/nibs/BookmarkEditor.xib ('k') | chrome/browser/cocoa/bookmark_editor_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/bookmark_editor_controller.h
===================================================================
--- chrome/browser/cocoa/bookmark_editor_controller.h (revision 30403)
+++ chrome/browser/cocoa/bookmark_editor_controller.h (working copy)
@@ -12,13 +12,15 @@
#include "base/scoped_nsobject.h"
#include "chrome/browser/bookmarks/bookmark_editor.h"
+@class BookmarkTreeBrowserCell;
+
// A controller for the bookmark editor, opened with Edit... from the
// context menu of a bookmark button.
@interface BookmarkEditorController : NSWindowController<NSTextFieldDelegate> {
@private
IBOutlet NSTextField* nameField_;
IBOutlet NSTextField* urlField_;
- IBOutlet NSBrowser* browser_;
+ IBOutlet NSBrowser* folderBrowser_;
IBOutlet NSButton* okButton_;
IBOutlet NSButton* newFolderButton_;
@@ -31,6 +33,7 @@
scoped_nsobject<NSString> initialName_;
scoped_nsobject<NSString> initialUrl_;
+ scoped_nsobject<BookmarkTreeBrowserCell> currentEditCell_;
}
- (id)initWithParentWindow:(NSWindow*)parentWindow
@@ -43,8 +46,11 @@
// Run the bookmark editor as a modal sheet. Does not block.
- (void)runAsModalSheet;
+// Create a new folder at the end of the selected parent folder, give it
+// an untitled name, and put it into editing mode.
+- (IBAction)newFolder:(id)sender;
+
// Actions for the buttons at the bottom of the window.
-- (IBAction)newFolder:(id)sender;
- (IBAction)cancel:(id)sender;
- (IBAction)ok:(id)sender;
@end
@@ -56,6 +62,4 @@
- (void)selectTestNodeInBrowser:(const BookmarkNode*)node;
@end
-
#endif /* CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ */
-
« no previous file with comments | « chrome/app/nibs/BookmarkEditor.xib ('k') | chrome/browser/cocoa/bookmark_editor_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698