OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_BASE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_BASE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_BASE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_BASE_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 // Methods for use by derived classes only. | 91 // Methods for use by derived classes only. |
92 | 92 |
93 // Determine and returns the rightmost selected/highlighted element (node) | 93 // Determine and returns the rightmost selected/highlighted element (node) |
94 // in the bookmark tree view if the tree view is showing, otherwise returns | 94 // in the bookmark tree view if the tree view is showing, otherwise returns |
95 // the original |parentNode_|. If the tree view is showing but nothing is | 95 // the original |parentNode_|. If the tree view is showing but nothing is |
96 // selected then the root node is returned. | 96 // selected then the root node is returned. |
97 - (const BookmarkNode*)selectedNode; | 97 - (const BookmarkNode*)selectedNode; |
98 | 98 |
99 // Expands the set of BookmarkNodes in |nodes|. | 99 // Expands the set of BookmarkNodes in |nodes|. |
100 - (void)expandNodes:(const BookmarkExpandedStateTracker::Nodes&)nodes; | 100 - (void)expandNodes:( |
| 101 const bookmarks::BookmarkExpandedStateTracker::Nodes&)nodes; |
101 | 102 |
102 // Returns the set of expanded BookmarkNodes. | 103 // Returns the set of expanded BookmarkNodes. |
103 - (BookmarkExpandedStateTracker::Nodes)getExpandedNodes; | 104 - (bookmarks::BookmarkExpandedStateTracker::Nodes)getExpandedNodes; |
104 | 105 |
105 // Select/highlight the given node within the browser tree view. If the | 106 // Select/highlight the given node within the browser tree view. If the |
106 // node is nil then select the bookmark bar node. Exposed for unit test. | 107 // node is nil then select the bookmark bar node. Exposed for unit test. |
107 - (void)selectNodeInBrowser:(const BookmarkNode*)node; | 108 - (void)selectNodeInBrowser:(const BookmarkNode*)node; |
108 | 109 |
109 // Notifications called when the BookmarkModel changes out from under me. | 110 // Notifications called when the BookmarkModel changes out from under me. |
110 - (void)nodeRemoved:(const BookmarkNode*)node | 111 - (void)nodeRemoved:(const BookmarkNode*)node |
111 fromParent:(const BookmarkNode*)parent; | 112 fromParent:(const BookmarkNode*)parent; |
112 - (void)modelChangedPreserveSelection:(BOOL)preserve; | 113 - (void)modelChangedPreserveSelection:(BOOL)preserve; |
113 | 114 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 178 |
178 // Select the given bookmark node within the tree view. | 179 // Select the given bookmark node within the tree view. |
179 - (void)selectTestNodeInBrowser:(const BookmarkNode*)node; | 180 - (void)selectTestNodeInBrowser:(const BookmarkNode*)node; |
180 | 181 |
181 // Return the dictionary for the folder selected in the tree. | 182 // Return the dictionary for the folder selected in the tree. |
182 - (BookmarkFolderInfo*)selectedFolder; | 183 - (BookmarkFolderInfo*)selectedFolder; |
183 | 184 |
184 @end | 185 @end |
185 | 186 |
186 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_BASE_CONTROLLER_H_ | 187 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_EDITOR_BASE_CONTROLLER_H_ |
OLD | NEW |