| Index: ui/views/controls/tree/tree_view.h
|
| diff --git a/ui/views/controls/tree/tree_view.h b/ui/views/controls/tree/tree_view.h
|
| index 2dc764e7f5688216ff6944f650fcb66feae0de1a..87d5da255fcfdeab50ff386e4f24363874ae9fc9 100644
|
| --- a/ui/views/controls/tree/tree_view.h
|
| +++ b/ui/views/controls/tree/tree_view.h
|
| @@ -294,6 +294,9 @@ class VIEWS_EXPORT TreeView : public ui::TreeModelObserver,
|
| ui::TreeModelNode* model_node,
|
| GetInternalNodeCreateType create_type);
|
|
|
| + // Returns the bounds for a node's background.
|
| + gfx::Rect GetBackgroundBoundsForNode(InternalNode* node);
|
| +
|
| // Returns the bounds for a node.
|
| gfx::Rect GetBoundsForNode(InternalNode* node);
|
|
|
| @@ -331,6 +334,15 @@ class VIEWS_EXPORT TreeView : public ui::TreeModelObserver,
|
|
|
| PrefixSelector* GetPrefixSelector();
|
|
|
| + // This function returns the InternalNode (if any) lying under |point|. If no
|
| + // node lies under |point|, this function returns nullptr. If a non-null node
|
| + // is returned, its depth is stored in |*depth|.
|
| + InternalNode* NodeAtPoint(const gfx::Point& point, int* depth = nullptr);
|
| +
|
| + // This function returns whether |point| is in the bounds of |node|'s
|
| + // expand/collapse arrow, where |node| is at depth |depth|.
|
| + bool HitsNodeArrow(InternalNode* node, int depth, const gfx::Point& point);
|
| +
|
| // The model, may be null.
|
| ui::TreeModel* model_;
|
|
|
|
|