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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h

Issue 335453004: Move BookmarkExpandedStateTracker into bookmarks namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698