Index: chrome/browser/cocoa/bookmark_editor_controller.h |
=================================================================== |
--- chrome/browser/cocoa/bookmark_editor_controller.h (revision 0) |
+++ chrome/browser/cocoa/bookmark_editor_controller.h (revision 0) |
@@ -0,0 +1,54 @@ |
+// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ |
+#define CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ |
+ |
+#import <Cocoa/Cocoa.h> |
+ |
+#include "base/scoped_ptr.h" |
+#include "base/scoped_nsobject.h" |
+#include "chrome/browser/bookmarks/bookmark_editor.h" |
+ |
+// A controller for the bookmark editor, opened with Edit... from the |
+// context menu of a bookmark button. |
+@interface BookmarkEditorController : NSWindowController { |
+ @private |
+ IBOutlet NSTextField* nameField_; |
+ IBOutlet NSTextField* urlField_; |
+ IBOutlet NSBrowser* browser_; |
+ IBOutlet NSButton* newFolderButton_; |
+ |
+ NSWindow* parentWindow_; |
+ Profile* profile_; // weak |
+ const BookmarkNode* parentNode_; // weak; owned by the model |
+ const BookmarkNode* node_; // weak; owned by the model |
+ BookmarkEditor::Configuration configuration_; |
+ scoped_ptr<BookmarkEditor::Handler> handler_; // we take ownership |
+ |
+ scoped_nsobject<NSString> initialName_; |
+ scoped_nsobject<NSString> initialUrl_; |
+} |
+ |
+- (id)initWithParentWindow:(NSWindow*)parentWindow |
+ profile:(Profile*)profile |
+ parent:(const BookmarkNode*)parent |
+ node:(const BookmarkNode*)node |
+ configuration:(BookmarkEditor::Configuration)configuration |
+ handler:(BookmarkEditor::Handler*)handler; |
+ |
+// Actions for the buttons at the bottom of the window. |
+- (IBAction)newFolder:(id)sender; |
+- (IBAction)cancel:(id)sender; |
+- (IBAction)ok:(id)sender; |
+@end |
+ |
+@interface BookmarkEditorController(TestingAPI) |
+@property (assign) NSString* displayName; |
+@property (assign) NSString* displayURL; |
+@end |
+ |
+ |
+#endif /* CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ */ |
+ |
Property changes on: chrome/browser/cocoa/bookmark_editor_controller.h |
___________________________________________________________________ |
Name: svn:eol-style |
+ LF |