| Index: ui/views/view.cc
|
| diff --git a/ui/views/view.cc b/ui/views/view.cc
|
| index ee4ed58da3132091a97b125113d4f73ebca877e7..0cec760604e6b58be88b6f5192d209672d96dc2a 100644
|
| --- a/ui/views/view.cc
|
| +++ b/ui/views/view.cc
|
| @@ -1200,6 +1200,13 @@ void View::SetNextFocusableView(View* view) {
|
| next_focusable_view_ = view;
|
| }
|
|
|
| +void View::SetFocusable(bool focusable) {
|
| + if (focusable_ == focusable)
|
| + return;
|
| +
|
| + focusable_ = focusable;
|
| +}
|
| +
|
| bool View::IsFocusable() const {
|
| return focusable_ && enabled_ && IsDrawn();
|
| }
|
| @@ -1208,6 +1215,13 @@ bool View::IsAccessibilityFocusable() const {
|
| return (focusable_ || accessibility_focusable_) && enabled_ && IsDrawn();
|
| }
|
|
|
| +void View::SetAccessibilityFocusable(bool accessibility_focusable) {
|
| + if (accessibility_focusable_ == accessibility_focusable)
|
| + return;
|
| +
|
| + accessibility_focusable_ = accessibility_focusable;
|
| +}
|
| +
|
| FocusManager* View::GetFocusManager() {
|
| Widget* widget = GetWidget();
|
| return widget ? widget->GetFocusManager() : NULL;
|
|
|