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

Unified Diff: ui/views/controls/tree/tree_view.h

Issue 2411693002: views: add focus ring to TreeView (Closed)
Patch Set: move FocusRing support into ScrollView Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
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 5eb096e3d2fb4f04d33cdfb68180c05f5342992f..38bb7d425f050e9cca25dd9a7b5427b7f84d9244 100644
--- a/ui/views/controls/tree/tree_view.h
+++ b/ui/views/controls/tree/tree_view.h
@@ -24,9 +24,10 @@ class Rect;
namespace views {
+class PrefixSelector;
+class ScrollView;
class Textfield;
class TreeViewController;
-class PrefixSelector;
// TreeView displays hierarchical data as returned from a TreeModel. The user
// can expand, collapse and edit the items. A Controller may be attached to
@@ -349,6 +350,10 @@ class VIEWS_EXPORT TreeView : public View,
// control.
bool IsPointInExpandControl(InternalNode* node, const gfx::Point& point);
+ // Returns the View that the focus ring for this TreeView should be drawn
+ // around.
+ ScrollView* FindFocusRingView();
sky 2016/10/12 23:58:01 This function is mildly confusing as based on name
Elly Fong-Jones 2016/10/13 11:14:56 It is gone now and its logic moved into TreeView::
+
// The model, may be null.
ui::TreeModel* model_;

Powered by Google App Engine
This is Rietveld 408576698