| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 // Implementation of Expand(). Returns true if at least one node was expanded | 342 // Implementation of Expand(). Returns true if at least one node was expanded |
| 343 // that previously wasn't. | 343 // that previously wasn't. |
| 344 bool ExpandImpl(ui::TreeModelNode* model_node); | 344 bool ExpandImpl(ui::TreeModelNode* model_node); |
| 345 | 345 |
| 346 PrefixSelector* GetPrefixSelector(); | 346 PrefixSelector* GetPrefixSelector(); |
| 347 | 347 |
| 348 // Returns whether |point| is in the bounds of |node|'s expand/collapse | 348 // Returns whether |point| is in the bounds of |node|'s expand/collapse |
| 349 // control. | 349 // control. |
| 350 bool IsPointInExpandControl(InternalNode* node, const gfx::Point& point); | 350 bool IsPointInExpandControl(InternalNode* node, const gfx::Point& point); |
| 351 | 351 |
| 352 // Returns the View that the focus ring for this TreeView should be drawn |
| 353 // around. |
| 354 View* FindFocusRingView(); |
| 355 |
| 352 // The model, may be null. | 356 // The model, may be null. |
| 353 ui::TreeModel* model_; | 357 ui::TreeModel* model_; |
| 354 | 358 |
| 355 // Default icons for closed/open. | 359 // Default icons for closed/open. |
| 356 gfx::ImageSkia closed_icon_; | 360 gfx::ImageSkia closed_icon_; |
| 357 gfx::ImageSkia open_icon_; | 361 gfx::ImageSkia open_icon_; |
| 358 | 362 |
| 359 // Icons from the model. | 363 // Icons from the model. |
| 360 std::vector<gfx::ImageSkia> icons_; | 364 std::vector<gfx::ImageSkia> icons_; |
| 361 | 365 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 int text_offset_; | 409 int text_offset_; |
| 406 | 410 |
| 407 std::unique_ptr<PrefixSelector> selector_; | 411 std::unique_ptr<PrefixSelector> selector_; |
| 408 | 412 |
| 409 DISALLOW_COPY_AND_ASSIGN(TreeView); | 413 DISALLOW_COPY_AND_ASSIGN(TreeView); |
| 410 }; | 414 }; |
| 411 | 415 |
| 412 } // namespace views | 416 } // namespace views |
| 413 | 417 |
| 414 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ | 418 #endif // UI_VIEWS_CONTROLS_TREE_TREE_VIEW_VIEWS_H_ |
| OLD | NEW |