Index: ui/views/view.h |
diff --git a/ui/views/view.h b/ui/views/view.h |
index a5ef00dae1dc83cdaeccd314cc80e239ff475c47..d8792d3f16053cd5b39e193de567cd9902d6cee9 100644 |
--- a/ui/views/view.h |
+++ b/ui/views/view.h |
@@ -778,6 +778,9 @@ class VIEWS_EXPORT View : public ui::LayerDelegate, |
// the focused view is set to be non-focusable. |
// Note that this is false by default so that a view used as a container does |
// not get the focus. |
+ // Subclasses which represent controls should call |
+ // PlatformStyle::SetControlStyleFocus to set focus correctly for different |
+ // platforms. |
void SetFocusable(bool focusable); |
tapted
2016/02/23 03:01:20
I think it's confusing to keep this method around
karandeepb
2016/03/15 02:19:51
I like the enum idea. I have created a new functio
tapted
2016/03/15 05:05:31
sgtm
|
// Returns true if this view is |focusable_|, |enabled_| and drawn. |
@@ -791,6 +794,9 @@ class VIEWS_EXPORT View : public ui::LayerDelegate, |
// full keyboard access, even though it's not normally focusable. It will |
// clear focus if the focused view is set to be non-focusable. |
// Note that this is false by default. |
+ // Subclasses which represent controls should call |
+ // PlatformStyle::SetControlStyleFocus to set focus correctly for different |
+ // platforms. |
void SetAccessibilityFocusable(bool accessibility_focusable); |
// Convenience method to retrieve the FocusManager associated with the |