Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

bookmark_tree_browser_cell.h

// 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_

Generated by  Doxygen 1.6.0   Back to index