Chromium Code Reviews| Index: ui/views/focus/focus_search.cc |
| diff --git a/ui/views/focus/focus_search.cc b/ui/views/focus/focus_search.cc |
| index a7ede3b0bf3d044666fbcdb9df23a3d45017f57b..f4d77002f5885342c7c1fee32142ef6df74f7112 100644 |
| --- a/ui/views/focus/focus_search.cc |
| +++ b/ui/views/focus/focus_search.cc |
| @@ -98,11 +98,15 @@ bool FocusSearch::IsViewFocusableCandidate(View* v, int skip_group_id) { |
| v->GetGroup() != skip_group_id); |
| } |
| +// On Mac, we also need to read system preferences for "Full Keyboard Access" to |
|
tapted
2016/02/12 02:56:45
Can we instead expose the |accessibility_mode_| da
karandeepb
2016/02/22 07:15:37
Done. Instead of setting the accessibility mode on
|
| +// decide whether accessibility mode should be enabled or not. |
| +#if !defined(OS_MACOSX) |
| bool FocusSearch::IsFocusable(View* v) { |
| if (accessibility_mode_) |
| return v && v->IsAccessibilityFocusable(); |
| return v && v->IsFocusable(); |
| } |
| +#endif |
| View* FocusSearch::FindSelectedViewForGroup(View* view) { |
| if (view->IsGroupFocusTraversable() || |