| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import "chrome/browser/cocoa/bookmark_editor_base_controller.h" | 8 #import "chrome/browser/cocoa/bookmark_editor_base_controller.h" |
| 9 | 9 |
| 10 // A controller for the bookmark editor, opened with Edit... from the | 10 // A controller for the bookmark editor, opened by 1) Edit... from the |
| 11 // context menu of a bookmark button. | 11 // context menu of a bookmark button, and 2) Bookmark this Page...'s Edit |
| 12 // button. |
| 12 @interface BookmarkEditorController : BookmarkEditorBaseController { | 13 @interface BookmarkEditorController : BookmarkEditorBaseController { |
| 13 @private | 14 @private |
| 14 const BookmarkNode* node_; // weak; owned by the model | 15 const BookmarkNode* node_; // weak; owned by the model |
| 15 scoped_nsobject<NSString> initialUrl_; | 16 scoped_nsobject<NSString> initialUrl_; |
| 16 NSString* displayURL_; // Bound to a text field in the dialog. | 17 NSString* displayURL_; // Bound to a text field in the dialog. |
| 17 } | 18 } |
| 18 | 19 |
| 19 @property (copy) NSString* displayURL; | 20 @property (copy) NSString* displayURL; |
| 20 | 21 |
| 21 - (id)initWithParentWindow:(NSWindow*)parentWindow | 22 - (id)initWithParentWindow:(NSWindow*)parentWindow |
| 22 profile:(Profile*)profile | 23 profile:(Profile*)profile |
| 23 parent:(const BookmarkNode*)parent | 24 parent:(const BookmarkNode*)parent |
| 24 node:(const BookmarkNode*)node | 25 node:(const BookmarkNode*)node |
| 25 configuration:(BookmarkEditor::Configuration)configuration | 26 configuration:(BookmarkEditor::Configuration)configuration |
| 26 handler:(BookmarkEditor::Handler*)handler; | 27 handler:(BookmarkEditor::Handler*)handler; |
| 27 | 28 |
| 28 @end | 29 @end |
| 29 | 30 |
| 30 #endif /* CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ */ | 31 #endif /* CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ */ |
| OLD | NEW |