| 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 UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ |
| 6 #define UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ | 6 #define UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 void PaintExpandControl(gfx::Canvas* canvas, | 287 void PaintExpandControl(gfx::Canvas* canvas, |
| 288 const gfx::Rect& node_bounds, | 288 const gfx::Rect& node_bounds, |
| 289 bool expanded); | 289 bool expanded); |
| 290 | 290 |
| 291 // Returns the InternalNode for a model node. |create_type| indicates wheter | 291 // Returns the InternalNode for a model node. |create_type| indicates wheter |
| 292 // this should load InternalNode or not. | 292 // this should load InternalNode or not. |
| 293 InternalNode* GetInternalNodeForModelNode( | 293 InternalNode* GetInternalNodeForModelNode( |
| 294 ui::TreeModelNode* model_node, | 294 ui::TreeModelNode* model_node, |
| 295 GetInternalNodeCreateType create_type); | 295 GetInternalNodeCreateType create_type); |
| 296 | 296 |
| 297 // Returns the bounds for a node's background. |
| 298 gfx::Rect GetBackgroundBoundsForNode(InternalNode* node); |
| 299 |
| 297 // Returns the bounds for a node. | 300 // Returns the bounds for a node. |
| 298 gfx::Rect GetBoundsForNode(InternalNode* node); | 301 gfx::Rect GetBoundsForNode(InternalNode* node); |
| 299 | 302 |
| 300 // Implementation of GetBoundsForNode. Separated out as some callers already | 303 // Implementation of GetBoundsForNode. Separated out as some callers already |
| 301 // know the row/depth. | 304 // know the row/depth. |
| 302 gfx::Rect GetBoundsForNodeImpl(InternalNode* node, int row, int depth); | 305 gfx::Rect GetBoundsForNodeImpl(InternalNode* node, int row, int depth); |
| 303 | 306 |
| 304 // Returns the row and depth of a node. | 307 // Returns the row and depth of a node. |
| 305 int GetRowForInternalNode(InternalNode* node, int* depth); | 308 int GetRowForInternalNode(InternalNode* node, int* depth); |
| 306 | 309 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 int text_offset_; | 390 int text_offset_; |
| 388 | 391 |
| 389 std::unique_ptr<PrefixSelector> selector_; | 392 std::unique_ptr<PrefixSelector> selector_; |
| 390 | 393 |
| 391 DISALLOW_COPY_AND_ASSIGN(TreeView); | 394 DISALLOW_COPY_AND_ASSIGN(TreeView); |
| 392 }; | 395 }; |
| 393 | 396 |
| 394 } // namespace views | 397 } // namespace views |
| 395 | 398 |
| 396 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ | 399 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ |
| OLD | NEW |