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

Side by Side Diff: chrome/views/tree_model.h

Issue 27262: Wires up sorting of bookmarks to the 'organize menu' in the bookmark... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 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_VIEWS_TREE_MODEL_H_ 5 #ifndef CHROME_VIEWS_TREE_MODEL_H_
6 #define CHROME_VIEWS_TREE_MODEL_H_ 6 #define CHROME_VIEWS_TREE_MODEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 23 matching lines...) Expand all
34 int count) = 0; 34 int count) = 0;
35 35
36 // Notification that nodes were removed from the specified parent. 36 // Notification that nodes were removed from the specified parent.
37 virtual void TreeNodesRemoved(TreeModel* model, 37 virtual void TreeNodesRemoved(TreeModel* model,
38 TreeModelNode* parent, 38 TreeModelNode* parent,
39 int start, 39 int start,
40 int count) = 0; 40 int count) = 0;
41 41
42 // Notification the children of |parent| have been reordered. Note, only 42 // Notification the children of |parent| have been reordered. Note, only
43 // the direct children of |parent| have been reordered, not descendants. 43 // the direct children of |parent| have been reordered, not descendants.
44 // TODO(sky): make this pure virtual after all sites have been updated.
45 virtual void TreeNodeChildrenReordered(TreeModel* model, 44 virtual void TreeNodeChildrenReordered(TreeModel* model,
46 TreeModelNode* parent) {} 45 TreeModelNode* parent) = 0;
47 46
48 // Notification that the contents of a node has changed. 47 // Notification that the contents of a node has changed.
49 virtual void TreeNodeChanged(TreeModel* model, TreeModelNode* node) = 0; 48 virtual void TreeNodeChanged(TreeModel* model, TreeModelNode* node) = 0;
50 }; 49 };
51 50
52 // TreeModel ------------------------------------------------------------------ 51 // TreeModel ------------------------------------------------------------------
53 52
54 // The model for TreeView. 53 // The model for TreeView.
55 class TreeModel { 54 class TreeModel {
56 public: 55 public:
(...skipping 26 matching lines...) Expand all
83 82
84 // Returns the index of the icon to use for |node|. Return -1 to use the 83 // Returns the index of the icon to use for |node|. Return -1 to use the
85 // default icon. The index is relative to the list of icons returned from 84 // default icon. The index is relative to the list of icons returned from
86 // GetIcons. 85 // GetIcons.
87 virtual int GetIconIndex(TreeModelNode* node) { return -1; } 86 virtual int GetIconIndex(TreeModelNode* node) { return -1; }
88 }; 87 };
89 88
90 } // namespace views 89 } // namespace views
91 90
92 #endif // CHROME_VIEWS_TREE_MODEL_H_ 91 #endif // CHROME_VIEWS_TREE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698