| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_NAME_FOLDER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_NAME_FOLDER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_NAME_FOLDER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_NAME_FOLDER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "chrome/browser/bookmarks/bookmark_model.h" | |
| 13 | 12 |
| 14 class BookmarkModelObserverForCocoa; | 13 class BookmarkModelObserverForCocoa; |
| 14 class BookmarkNode; |
| 15 class Profile; |
| 15 | 16 |
| 16 // A controller for dialog to let the user create a new folder or | 17 // A controller for dialog to let the user create a new folder or |
| 17 // rename an existing folder. Accessible from a context menu on a | 18 // rename an existing folder. Accessible from a context menu on a |
| 18 // bookmark button or the bookmark bar. | 19 // bookmark button or the bookmark bar. |
| 19 @interface BookmarkNameFolderController : NSWindowController { | 20 @interface BookmarkNameFolderController : NSWindowController { |
| 20 @private | 21 @private |
| 21 IBOutlet NSTextField* nameField_; | 22 IBOutlet NSTextField* nameField_; |
| 22 IBOutlet NSButton* okButton_; | 23 IBOutlet NSButton* okButton_; |
| 23 | 24 |
| 24 NSWindow* parentWindow_; // weak | 25 NSWindow* parentWindow_; // weak |
| (...skipping 29 matching lines...) Expand all Loading... |
| 54 - (IBAction)ok:(id)sender; | 55 - (IBAction)ok:(id)sender; |
| 55 @end | 56 @end |
| 56 | 57 |
| 57 @interface BookmarkNameFolderController(TestingAPI) | 58 @interface BookmarkNameFolderController(TestingAPI) |
| 58 - (NSString*)folderName; | 59 - (NSString*)folderName; |
| 59 - (void)setFolderName:(NSString*)name; | 60 - (void)setFolderName:(NSString*)name; |
| 60 - (NSButton*)okButton; | 61 - (NSButton*)okButton; |
| 61 @end | 62 @end |
| 62 | 63 |
| 63 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_NAME_FOLDER_CONTROLLER_H_ | 64 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_NAME_FOLDER_CONTROLLER_H_ |
| OLD | NEW |