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

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

Issue 2411693002: views: add focus ring to TreeView (Closed)
Patch Set: rebase 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
« no previous file with comments | « ui/views/controls/scroll_view.cc ('k') | ui/views/controls/tree/tree_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6163806790fc22da594aacf62f0a162ed5289fba 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,11 @@ class VIEWS_EXPORT TreeView : public View,
// control.
bool IsPointInExpandControl(InternalNode* node, const gfx::Point& point);
+ // Sets whether a focus ring is visible on this control or not. This function
+ // does nothing if focus rings aren't enabled in general or if the platform's
+ // style does not use focus rings on TreeViews.
+ void SetHasFocusRing(bool);
+
// The model, may be null.
ui::TreeModel* model_;
« no previous file with comments | « ui/views/controls/scroll_view.cc ('k') | ui/views/controls/tree/tree_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698