[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ | ||||
6 | #define CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ | ||||
7 | |||||
[email protected] | a5971dc | 2009-11-06 03:24:29 | [diff] [blame^] | 8 | #import "chrome/browser/cocoa/bookmark_editor_base_controller.h" |
[email protected] | fbc93b36 | 2009-10-29 22:10:32 | [diff] [blame] | 9 | |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 10 | // A controller for the bookmark editor, opened with Edit... from the |
11 | // context menu of a bookmark button. | ||||
[email protected] | a5971dc | 2009-11-06 03:24:29 | [diff] [blame^] | 12 | @interface BookmarkEditorController : BookmarkEditorBaseController { |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 13 | @private |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 14 | const BookmarkNode* node_; // weak; owned by the model |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 15 | scoped_nsobject<NSString> initialUrl_; |
[email protected] | a5971dc | 2009-11-06 03:24:29 | [diff] [blame^] | 16 | NSString* displayURL_; // Bound to a text field in the dialog. |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 17 | } |
18 | |||||
[email protected] | a5971dc | 2009-11-06 03:24:29 | [diff] [blame^] | 19 | @property (copy) NSString* displayURL; |
20 | |||||
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 21 | - (id)initWithParentWindow:(NSWindow*)parentWindow |
22 | profile:(Profile*)profile | ||||
23 | parent:(const BookmarkNode*)parent | ||||
24 | node:(const BookmarkNode*)node | ||||
25 | configuration:(BookmarkEditor::Configuration)configuration | ||||
26 | handler:(BookmarkEditor::Handler*)handler; | ||||
27 | |||||
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 28 | @end |
29 | |||||
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 30 | #endif /* CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ */ |