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

Unified Diff: chrome/browser/cocoa/bookmark_tree_browser_cell.h

Issue 343042: Original discussion in CL for 337010. See http://codereview.chromium.org/337... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/bookmark_tree_browser_cell.h
===================================================================
--- chrome/browser/cocoa/bookmark_tree_browser_cell.h (revision 0)
+++ chrome/browser/cocoa/bookmark_tree_browser_cell.h (revision 0)
@@ -0,0 +1,34 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_COCOA_BOOKMARK_TREE_BROWSER_CELL_H_
+#define CHROME_BROWSER_COCOA_BOOKMARK_TREE_BROWSER_CELL_H_
+
+#import <Cocoa/Cocoa.h>
+
+class BookmarkNode;
+
+// Provides a custom cell as used in the BookmarkEditor.xib's folder tree
+// browser view. This cell customization adds target and action support
+// not provided by the NSBrowserCell as well as contextual information
+// identifying the bookmark node being edited and the column matrix
+// control in which is contained the cell.
+@interface BookmarkTreeBrowserCell : NSBrowserCell {
+ @private
+ const BookmarkNode* bookmarkNode_; // weak
+ NSMatrix* matrix_; // weak
+ id target_; // weak
+ SEL action_;
+}
+
+@property (assign) NSMatrix* matrix;
+@property (assign) id target;
+@property (assign) SEL action;
+
+- (const BookmarkNode*)bookmarkNode;
+- (void)setBookmarkNode:(const BookmarkNode*)bookmarkNode;
+
+@end
+
+#endif // CHROME_BROWSER_COCOA_BOOKMARK_TREE_BROWSER_CELL_H_
« no previous file with comments | « chrome/browser/cocoa/bookmark_editor_controller_unittest.mm ('k') | chrome/browser/cocoa/bookmark_tree_browser_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698