[email protected] | 5f3b0f4 | 2010-04-29 06:03:48 | [diff] [blame] | 1 | // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 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] | 487bd7a0 | 2009-11-19 00:06:04 | [diff] [blame] | 10 | // A controller for the bookmark editor, opened by 1) Edit... from the |
11 | // context menu of a bookmark button, and 2) Bookmark this Page...'s Edit | ||||
12 | // button. | ||||
[email protected] | a5971dc | 2009-11-06 03:24:29 | [diff] [blame] | 13 | @interface BookmarkEditorController : BookmarkEditorBaseController { |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 14 | @private |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 15 | const BookmarkNode* node_; // weak; owned by the model |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 16 | scoped_nsobject<NSString> initialUrl_; |
[email protected] | a5971dc | 2009-11-06 03:24:29 | [diff] [blame] | 17 | NSString* displayURL_; // Bound to a text field in the dialog. |
[email protected] | 690aa5c | 2010-03-30 01:33:35 | [diff] [blame] | 18 | IBOutlet NSTextField* urlField_; |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 19 | } |
20 | |||||
[email protected] | a866cc2 | 2010-06-15 17:34:59 | [diff] [blame] | 21 | @property (nonatomic, copy) NSString* displayURL; |
[email protected] | a5971dc | 2009-11-06 03:24:29 | [diff] [blame] | 22 | |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 23 | - (id)initWithParentWindow:(NSWindow*)parentWindow |
24 | profile:(Profile*)profile | ||||
25 | parent:(const BookmarkNode*)parent | ||||
26 | node:(const BookmarkNode*)node | ||||
[email protected] | 5f3b0f4 | 2010-04-29 06:03:48 | [diff] [blame] | 27 | configuration:(BookmarkEditor::Configuration)configuration; |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 28 | |
[email protected] | ee01535e | 2009-07-21 23:57:19 | [diff] [blame] | 29 | @end |
30 | |||||
[email protected] | 690aa5c | 2010-03-30 01:33:35 | [diff] [blame] | 31 | @interface BookmarkEditorController (UnitTesting) |
32 | - (NSColor *)urlFieldColor; | ||||
33 | @end | ||||
34 | |||||
[email protected] | 5f3b0f4 | 2010-04-29 06:03:48 | [diff] [blame] | 35 | #endif // CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ |