summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_tree_browser_cell.h
diff options
context:
space:
mode:
authormrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 22:10:32 +0000
committermrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 22:10:32 +0000
commitfbc93b36cbe62f4777c3f07f87ea113afbd2f348 (patch)
treef79f85acb61b6615d2b555ed75aecaa082e16854 /chrome/browser/cocoa/bookmark_tree_browser_cell.h
parent094302f1c1fbd9815b03dc23769315e4b2875e40 (diff)
downloadchromium_src-fbc93b36cbe62f4777c3f07f87ea113afbd2f348.zip
chromium_src-fbc93b36cbe62f4777c3f07f87ea113afbd2f348.tar.gz
chromium_src-fbc93b36cbe62f4777c3f07f87ea113afbd2f348.tar.bz2
Original discussion in CL for 337010. See http://codereview.chromium.org/337010/show/.
BUG=25099 TEST=See 337010. Review URL: http://codereview.chromium.org/343042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30523 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_tree_browser_cell.h')
-rw-r--r--chrome/browser/cocoa/bookmark_tree_browser_cell.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_tree_browser_cell.h b/chrome/browser/cocoa/bookmark_tree_browser_cell.h
new file mode 100644
index 0000000..acdc5cb
--- /dev/null
+++ b/chrome/browser/cocoa/bookmark_tree_browser_cell.h
@@ -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_