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

Unified Diff: ui/views/view.h

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix FocusManagerTest.StoreFocusedView Created 4 years, 10 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/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

Powered by Google App Engine
This is Rietveld 408576698