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

Side by Side Diff: chrome/browser/cocoa/bookmark_groups_controller.h

Issue 501073: Native Cocoa bookmark manager, part 1 (Closed)
Patch Set: Style fixes, and copy/paste unit tests Created 10 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2009 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.
4
5 #import <Cocoa/Cocoa.h>
6
7 @class BookmarkManagerController;
8 class BookmarkModel;
9 class BookmarkNode;
10
11
12 // Controller for the bookmark group list (the left pane).
13 @interface BookmarkGroupsController : NSObject {
14 @private
15 IBOutlet NSTableView* groupsTable_;
16 IBOutlet BookmarkManagerController* manager_;
17
18 NSMutableArray* groups_; // array of node items ('id's)
19 id selectedGroup_; // selected item from groups
20 }
21
22 // The ordered list of groups shown in the table view. Observable.
23 // Each item is an 'id', as vended by BookmarkManagerController's -itemFromNode:
24 @property (copy) NSArray* groups;
25 // The item in -groups currently selected in the table view. Observable.
26 @property (retain) id selectedGroup;
27
28 // Called by the table view when a row is clicked.
29 - (IBAction)tableClicked:(id)sender;
30
31 // Reloads the groups property and table contents from the data model.
32 - (void)reload;
33
34 // Called by BookmarkManagerController to notify that the data model's changed.
35 - (void)nodeChanged:(const BookmarkNode*)node
36 childrenChanged:(BOOL)childrenChanged;
37
38 @end
39
40
41 // Exposed only for unit tests.
42 @interface BookmarkGroupsController (UnitTesting)
43
44 @property (readonly) NSTableView* groupsTable;
45
46 @end
47
48
49
50 // Table view for bookmark group list; handles Cut/Copy/Paste and Delete key.
51 @interface BookmarksTableView : NSTableView
52 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698