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