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

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

Issue 18722: Revert r8560 due to broken interactive_ui_tests (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « chrome/views/table_view.h ('k') | no next file » | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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_NODE_MODEL_H__ 5 #ifndef CHROME_VIEWS_TREE_NODE_MODEL_H__
6 #define CHROME_VIEWS_TREE_NODE_MODEL_H__ 6 #define CHROME_VIEWS_TREE_NODE_MODEL_H__
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 // TreeNodeModel -------------------------------------------------------------- 183 // TreeNodeModel --------------------------------------------------------------
184 184
185 // TreeModel implementation intended to be used with TreeNodes. 185 // TreeModel implementation intended to be used with TreeNodes.
186 template <class NodeType> 186 template <class NodeType>
187 class TreeNodeModel : public TreeModel { 187 class TreeNodeModel : public TreeModel {
188 public: 188 public:
189 // Creates a TreeNodeModel with the specified root node. The root is owned 189 // Creates a TreeNodeModel with the specified root node. The root is owned
190 // by the TreeNodeModel. 190 // by the TreeNodeModel.
191 explicit TreeNodeModel(NodeType* root) 191 explicit TreeNodeModel(NodeType* root)
192 : root_(root), 192 : observer_(NULL),
193 observer_(NULL) { 193 root_(root) {
194 } 194 }
195 195
196 virtual ~TreeNodeModel() {} 196 virtual ~TreeNodeModel() {}
197 197
198 virtual void SetObserver(TreeModelObserver* observer) { 198 virtual void SetObserver(TreeModelObserver* observer) {
199 observer_ = observer; 199 observer_ = observer;
200 } 200 }
201 201
202 TreeModelObserver* GetObserver() { 202 TreeModelObserver* GetObserver() {
203 return observer_; 203 return observer_;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // The observer. 268 // The observer.
269 TreeModelObserver* observer_; 269 TreeModelObserver* observer_;
270 270
271 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel); 271 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel);
272 }; 272 };
273 273
274 } // namespace views 274 } // namespace views
275 275
276 #endif // CHROME_VIEWS_TREE_NODE_MODEL_H__ 276 #endif // CHROME_VIEWS_TREE_NODE_MODEL_H__
277 277
OLDNEW
« no previous file with comments | « chrome/views/table_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698