| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h" | 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h" |
| 10 | 10 |
| 11 // A controller for the bookmark editor, opened by 1) Edit... from the | 11 // A controller for the bookmark editor, opened by 1) Edit... from the |
| 12 // context menu of a bookmark button, and 2) Bookmark this Page...'s Edit | 12 // context menu of a bookmark button, and 2) Bookmark this Page...'s Edit |
| 13 // button. | 13 // button. |
| 14 @interface BookmarkEditorController : BookmarkEditorBaseController { | 14 @interface BookmarkEditorController : BookmarkEditorBaseController { |
| 15 @private | 15 @private |
| 16 const BookmarkNode* node_; // weak; owned by the model | 16 const BookmarkNode* node_; // weak; owned by the model |
| 17 scoped_nsobject<NSString> initialUrl_; | 17 scoped_nsobject<NSString> initialUrl_; |
| 18 NSString* displayURL_; // Bound to a text field in the dialog. | 18 NSString* displayURL_; // Bound to a text field in the dialog. |
| 19 IBOutlet NSTextField* urlField_; | 19 IBOutlet NSTextField* urlField_; |
| 20 } | 20 } |
| 21 | 21 |
| 22 @property (nonatomic, copy) NSString* displayURL; | 22 @property(nonatomic, copy) NSString* displayURL; |
| 23 | 23 |
| 24 - (id)initWithParentWindow:(NSWindow*)parentWindow | 24 - (id)initWithParentWindow:(NSWindow*)parentWindow |
| 25 profile:(Profile*)profile | 25 profile:(Profile*)profile |
| 26 parent:(const BookmarkNode*)parent | 26 parent:(const BookmarkNode*)parent |
| 27 node:(const BookmarkNode*)node | 27 node:(const BookmarkNode*)node |
| 28 configuration:(BookmarkEditor::Configuration)configuration; | 28 configuration:(BookmarkEditor::Configuration)configuration; |
| 29 | 29 |
| 30 @end | 30 @end |
| 31 | 31 |
| 32 @interface BookmarkEditorController (UnitTesting) | 32 @interface BookmarkEditorController (UnitTesting) |
| 33 - (NSColor *)urlFieldColor; | 33 - (NSColor *)urlFieldColor; |
| 34 @end | 34 @end |
| 35 | 35 |
| 36 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_ | 36 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_CONTROLLER_H_ |
| OLD | NEW |