| 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 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 scoped_nsobject<NSString> initialUrl_; | 32 scoped_nsobject<NSString> initialUrl_; |
| 33 } | 33 } |
| 34 | 34 |
| 35 - (id)initWithParentWindow:(NSWindow*)parentWindow | 35 - (id)initWithParentWindow:(NSWindow*)parentWindow |
| 36 profile:(Profile*)profile | 36 profile:(Profile*)profile |
| 37 parent:(const BookmarkNode*)parent | 37 parent:(const BookmarkNode*)parent |
| 38 node:(const BookmarkNode*)node | 38 node:(const BookmarkNode*)node |
| 39 configuration:(BookmarkEditor::Configuration)configuration | 39 configuration:(BookmarkEditor::Configuration)configuration |
| 40 handler:(BookmarkEditor::Handler*)handler; | 40 handler:(BookmarkEditor::Handler*)handler; |
| 41 | 41 |
| 42 // Run the bookmark editor as a modal sheet. Does not block. |
| 43 - (void)runAsModalSheet; |
| 44 |
| 42 // Actions for the buttons at the bottom of the window. | 45 // Actions for the buttons at the bottom of the window. |
| 43 - (IBAction)newFolder:(id)sender; | 46 - (IBAction)newFolder:(id)sender; |
| 44 - (IBAction)cancel:(id)sender; | 47 - (IBAction)cancel:(id)sender; |
| 45 - (IBAction)ok:(id)sender; | 48 - (IBAction)ok:(id)sender; |
| 46 @end | 49 @end |
| 47 | 50 |
| 48 @interface BookmarkEditorController(TestingAPI) | 51 @interface BookmarkEditorController(TestingAPI) |
| 49 @property (assign) NSString* displayName; | 52 @property (assign) NSString* displayName; |
| 50 @property (assign) NSString* displayURL; | 53 @property (assign) NSString* displayURL; |
| 51 @property (readonly) BOOL okButtonEnabled; | 54 @property (readonly) BOOL okButtonEnabled; |
| 52 @end | 55 @end |
| 53 | 56 |
| 54 | 57 |
| 55 #endif /* CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ */ | 58 #endif /* CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ */ |
| 56 | 59 |
| OLD | NEW |