Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: chrome/browser/cocoa/bookmark_editor_controller.h

Issue 209004: Use delegate protocols present in the 10.6 SDK (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/bookmark_button_cell.h ('k') | chrome/browser/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698