| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #import "base/mac/cocoa_protocols.h" | 7 #import "base/mac/cocoa_protocols.h" |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h" | 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h" |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Ping me when other Chrome things change out from under us. | 38 // Ping me when other Chrome things change out from under us. |
| 39 scoped_ptr<BookmarkBubbleNotificationBridge> chrome_observer_; | 39 scoped_ptr<BookmarkBubbleNotificationBridge> chrome_observer_; |
| 40 | 40 |
| 41 IBOutlet NSTextField* bigTitle_; // "Bookmark" or "Bookmark Added!" | 41 IBOutlet NSTextField* bigTitle_; // "Bookmark" or "Bookmark Added!" |
| 42 IBOutlet NSTextField* nameTextField_; | 42 IBOutlet NSTextField* nameTextField_; |
| 43 IBOutlet NSPopUpButton* folderPopUpButton_; | 43 IBOutlet NSPopUpButton* folderPopUpButton_; |
| 44 IBOutlet InfoBubbleView* bubble_; // to set arrow position | 44 IBOutlet InfoBubbleView* bubble_; // to set arrow position |
| 45 } | 45 } |
| 46 | 46 |
| 47 @property (readonly, nonatomic) const BookmarkNode* node; | 47 @property(readonly, nonatomic) const BookmarkNode* node; |
| 48 | 48 |
| 49 // |node| is the bookmark node we edit in this bubble. | 49 // |node| is the bookmark node we edit in this bubble. |
| 50 // |alreadyBookmarked| tells us if the node was bookmarked before the | 50 // |alreadyBookmarked| tells us if the node was bookmarked before the |
| 51 // user clicked on the star. (if NO, this is a brand new bookmark). | 51 // user clicked on the star. (if NO, this is a brand new bookmark). |
| 52 // The owner of this object is responsible for showing the bubble if | 52 // The owner of this object is responsible for showing the bubble if |
| 53 // it desires it to be visible on the screen. It is not shown by the | 53 // it desires it to be visible on the screen. It is not shown by the |
| 54 // init routine. Closing of the window happens implicitly on dealloc. | 54 // init routine. Closing of the window happens implicitly on dealloc. |
| 55 - (id)initWithParentWindow:(NSWindow*)parentWindow | 55 - (id)initWithParentWindow:(NSWindow*)parentWindow |
| 56 model:(BookmarkModel*)model | 56 model:(BookmarkModel*)model |
| 57 node:(const BookmarkNode*)node | 57 node:(const BookmarkNode*)node |
| (...skipping 14 matching lines...) Expand all Loading... |
| 72 // Exposed only for unit testing. | 72 // Exposed only for unit testing. |
| 73 @interface BookmarkBubbleController(ExposedForUnitTesting) | 73 @interface BookmarkBubbleController(ExposedForUnitTesting) |
| 74 - (void)addFolderNodes:(const BookmarkNode*)parent | 74 - (void)addFolderNodes:(const BookmarkNode*)parent |
| 75 toPopUpButton:(NSPopUpButton*)button | 75 toPopUpButton:(NSPopUpButton*)button |
| 76 indentation:(int)indentation; | 76 indentation:(int)indentation; |
| 77 - (void)setTitle:(NSString*)title parentFolder:(const BookmarkNode*)parent; | 77 - (void)setTitle:(NSString*)title parentFolder:(const BookmarkNode*)parent; |
| 78 - (void)setParentFolderSelection:(const BookmarkNode*)parent; | 78 - (void)setParentFolderSelection:(const BookmarkNode*)parent; |
| 79 + (NSString*)chooseAnotherFolderString; | 79 + (NSString*)chooseAnotherFolderString; |
| 80 - (NSPopUpButton*)folderPopUpButton; | 80 - (NSPopUpButton*)folderPopUpButton; |
| 81 @end | 81 @end |
| OLD | NEW |