| 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 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_TREE_BROWSER_CELL_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_TREE_BROWSER_CELL_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_TREE_BROWSER_CELL_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_TREE_BROWSER_CELL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| 11 class BookmarkNode; | 11 class BookmarkNode; |
| 12 | 12 |
| 13 // Provides a custom cell as used in the BookmarkEditor.xib's folder tree | 13 // Provides a custom cell as used in the BookmarkEditor.xib's folder tree |
| 14 // browser view. This cell customization adds target and action support | 14 // browser view. This cell customization adds target and action support |
| 15 // not provided by the NSBrowserCell as well as contextual information | 15 // not provided by the NSBrowserCell as well as contextual information |
| 16 // identifying the bookmark node being edited and the column matrix | 16 // identifying the bookmark node being edited and the column matrix |
| 17 // control in which is contained the cell. | 17 // control in which is contained the cell. |
| 18 @interface BookmarkTreeBrowserCell : NSBrowserCell { | 18 @interface BookmarkTreeBrowserCell : NSBrowserCell { |
| 19 @private | 19 @private |
| 20 const BookmarkNode* bookmarkNode_; // weak | 20 const BookmarkNode* bookmarkNode_; // weak |
| 21 NSMatrix* matrix_; // weak | 21 NSMatrix* matrix_; // weak |
| 22 id target_; // weak | 22 id target_; // weak |
| 23 SEL action_; | 23 SEL action_; |
| 24 } | 24 } |
| 25 | 25 |
| 26 @property (nonatomic, assign) NSMatrix* matrix; | 26 @property(nonatomic, assign) NSMatrix* matrix; |
| 27 @property (nonatomic, assign) id target; | 27 @property(nonatomic, assign) id target; |
| 28 @property (nonatomic, assign) SEL action; | 28 @property(nonatomic, assign) SEL action; |
| 29 | 29 |
| 30 - (const BookmarkNode*)bookmarkNode; | 30 - (const BookmarkNode*)bookmarkNode; |
| 31 - (void)setBookmarkNode:(const BookmarkNode*)bookmarkNode; | 31 - (void)setBookmarkNode:(const BookmarkNode*)bookmarkNode; |
| 32 | 32 |
| 33 @end | 33 @end |
| 34 | 34 |
| 35 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_TREE_BROWSER_CELL_H_ | 35 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_TREE_BROWSER_CELL_H_ |
| OLD | NEW |