Chromium Code Reviews| Index: ui/views/focus/focus_manager.cc |
| diff --git a/ui/views/focus/focus_manager.cc b/ui/views/focus/focus_manager.cc |
| index f52712e62344846226c5aaf819b8f1e7146b63c2..a64c0040c4f6a2cebaded520c06514a743fea0b2 100644 |
| --- a/ui/views/focus/focus_manager.cc |
| +++ b/ui/views/focus/focus_manager.cc |
| @@ -353,6 +353,11 @@ void FocusManager::ClearFocus() { |
| SetStoredFocusView(focused_view); |
| } |
| +void FocusManager::ClearFocusIfUnfocusable() { |
|
sky
2013/12/11 21:29:29
Why is this clearing and not advancing? Also, I th
mohsen
2013/12/12 18:26:54
1. About clearing vs advancing, as I stated in my
|
| + if (focused_view_ && !focused_view_->IsAccessibilityFocusable()) |
| + ClearFocus(); |
| +} |
| + |
| void FocusManager::StoreFocusedView(bool clear_native_focus) { |
| View* focused_view = focused_view_; |
| // Don't do anything if no focused view. Storing the view (which is NULL), in |