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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_editor_view.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
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_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // editing on the new gorup as well. 210 // editing on the new gorup as well.
211 void NewFolder(); 211 void NewFolder();
212 212
213 // Creates a new EditorNode as the last child of parent. The new node is 213 // Creates a new EditorNode as the last child of parent. The new node is
214 // added to the model and returned. This does NOT start editing. This is used 214 // added to the model and returned. This does NOT start editing. This is used
215 // internally by NewFolder and broken into a separate method for testing. 215 // internally by NewFolder and broken into a separate method for testing.
216 EditorNode* AddNewFolder(EditorNode* parent); 216 EditorNode* AddNewFolder(EditorNode* parent);
217 217
218 // If |editor_node| is expanded it's added to |expanded_nodes| and this is 218 // If |editor_node| is expanded it's added to |expanded_nodes| and this is
219 // recursively invoked for all the children. 219 // recursively invoked for all the children.
220 void UpdateExpandedNodes(EditorNode* editor_node, 220 void UpdateExpandedNodes(
221 BookmarkExpandedStateTracker::Nodes* expanded_nodes); 221 EditorNode* editor_node,
222 bookmarks::BookmarkExpandedStateTracker::Nodes* expanded_nodes);
222 223
223 ui::SimpleMenuModel* GetMenuModel(); 224 ui::SimpleMenuModel* GetMenuModel();
224 225
225 // Profile the entry is from. 226 // Profile the entry is from.
226 Profile* profile_; 227 Profile* profile_;
227 228
228 // Model driving the TreeView. 229 // Model driving the TreeView.
229 scoped_ptr<EditorTreeModel> tree_model_; 230 scoped_ptr<EditorTreeModel> tree_model_;
230 231
231 // Displays star folder. 232 // Displays star folder.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Is the tree shown? 267 // Is the tree shown?
267 bool show_tree_; 268 bool show_tree_;
268 269
269 // List of deleted bookmark folders. 270 // List of deleted bookmark folders.
270 std::vector<int64> deletes_; 271 std::vector<int64> deletes_;
271 272
272 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); 273 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView);
273 }; 274 };
274 275
275 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ 276 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698