[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / bookmarks / bookmark_tree_browser_cell.h
blob7083ed28d9ba36e0cc23562698922db25857b5a3
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_TREE_BROWSER_CELL_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_TREE_BROWSER_CELL_H_
8 #import <Cocoa/Cocoa.h>
10 class BookmarkNode;
12 // Provides a custom cell as used in the BookmarkEditor.xib's folder tree
13 // browser view. This cell customization adds target and action support
14 // not provided by the NSBrowserCell as well as contextual information
15 // identifying the bookmark node being edited and the column matrix
16 // control in which is contained the cell.
17 @interface BookmarkTreeBrowserCell : NSBrowserCell {
18 @private
19 const BookmarkNode* bookmarkNode_; // weak
20 NSMatrix* matrix_; // weak
21 id target_; // weak
22 SEL action_;
25 @property(nonatomic, assign) NSMatrix* matrix;
26 @property(nonatomic, assign) id target;
27 @property(nonatomic, assign) SEL action;
29 - (const BookmarkNode*)bookmarkNode;
30 - (void)setBookmarkNode:(const BookmarkNode*)bookmarkNode;
32 @end
34 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_TREE_BROWSER_CELL_H_