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 <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
| 10 #import "base/cocoa_protocols_mac.h" |
10 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
11 #include "base/scoped_nsobject.h" | 12 #include "base/scoped_nsobject.h" |
12 #include "chrome/browser/bookmarks/bookmark_editor.h" | 13 #include "chrome/browser/bookmarks/bookmark_editor.h" |
13 | 14 |
14 // A controller for the bookmark editor, opened with Edit... from the | 15 // A controller for the bookmark editor, opened with Edit... from the |
15 // context menu of a bookmark button. | 16 // context menu of a bookmark button. |
16 @interface BookmarkEditorController : NSWindowController { | 17 @interface BookmarkEditorController : NSWindowController<NSTextFieldDelegate> { |
17 @private | 18 @private |
18 IBOutlet NSTextField* nameField_; | 19 IBOutlet NSTextField* nameField_; |
19 IBOutlet NSTextField* urlField_; | 20 IBOutlet NSTextField* urlField_; |
20 IBOutlet NSBrowser* browser_; | 21 IBOutlet NSBrowser* browser_; |
21 IBOutlet NSButton* okButton_; | 22 IBOutlet NSButton* okButton_; |
22 IBOutlet NSButton* newFolderButton_; | 23 IBOutlet NSButton* newFolderButton_; |
23 | 24 |
24 NSWindow* parentWindow_; | 25 NSWindow* parentWindow_; |
25 Profile* profile_; // weak | 26 Profile* profile_; // weak |
26 const BookmarkNode* parentNode_; // weak; owned by the model | 27 const BookmarkNode* parentNode_; // weak; owned by the model |
(...skipping 23 matching lines...) Expand all Loading... |
50 | 51 |
51 @interface BookmarkEditorController(TestingAPI) | 52 @interface BookmarkEditorController(TestingAPI) |
52 @property (assign) NSString* displayName; | 53 @property (assign) NSString* displayName; |
53 @property (assign) NSString* displayURL; | 54 @property (assign) NSString* displayURL; |
54 @property (readonly) BOOL okButtonEnabled; | 55 @property (readonly) BOOL okButtonEnabled; |
55 @end | 56 @end |
56 | 57 |
57 | 58 |
58 #endif /* CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ */ | 59 #endif /* CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ */ |
59 | 60 |
OLD | NEW |