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

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

Issue 345045: Bookmark context menu "Edit" starts with current name, not "New Folder".... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
Index: chrome/browser/cocoa/bookmark_name_folder_controller.h
===================================================================
--- chrome/browser/cocoa/bookmark_name_folder_controller.h (revision 30683)
+++ chrome/browser/cocoa/bookmark_name_folder_controller.h (working copy)
@@ -11,8 +11,8 @@
#include "base/scoped_nsobject.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
-// A controller for dialog to let the user creating a new folder or
-// renaming an existing folder. Accessible from a context menu on a
+// A controller for dialog to let the user create a new folder or
+// rename an existing folder. Accessible from a context menu on a
// bookmark button or the bookmark bar.
@interface BookmarkNameFolderController : NSWindowController {
@private
@@ -24,6 +24,8 @@
const BookmarkNode* node_; // weak; owned by the model
scoped_nsobject<NSString> initialName_;
}
+// If |node| is NULL, this is an "add folder" request.
+// Else it is a "rename an existing folder" request.
- (id)initWithParentWindow:(NSWindow*)window
profile:(Profile*)profile
node:(const BookmarkNode*)node;
@@ -33,6 +35,7 @@
@end
@interface BookmarkNameFolderController(TestingAPI)
+- (NSString*)folderName;
- (void)setFolderName:(NSString*)name;
- (NSButton*)okButton;
@end
« no previous file with comments | « chrome/browser/cocoa/bookmark_bar_controller.mm ('k') | chrome/browser/cocoa/bookmark_name_folder_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698