OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/accessibility/ax_widget_obj_wrapper.h" | 5 #include "ui/views/accessibility/ax_widget_obj_wrapper.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "ui/accessibility/ax_enums.h" |
8 #include "ui/accessibility/ax_node_data.h" | 9 #include "ui/accessibility/ax_node_data.h" |
9 #include "ui/views/accessibility/ax_aura_obj_cache.h" | 10 #include "ui/views/accessibility/ax_aura_obj_cache.h" |
10 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" | 11 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" |
11 #include "ui/views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
12 #include "ui/views/widget/widget_delegate.h" | 13 #include "ui/views/widget/widget_delegate.h" |
13 | 14 |
14 namespace views { | 15 namespace views { |
15 | 16 |
16 AXWidgetObjWrapper::AXWidgetObjWrapper(Widget* widget) : widget_(widget) { | 17 AXWidgetObjWrapper::AXWidgetObjWrapper(Widget* widget) : widget_(widget) { |
17 widget->AddObserver(this); | 18 widget->AddObserver(this); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 57 |
57 void AXWidgetObjWrapper::OnWidgetDestroying(Widget* widget) { | 58 void AXWidgetObjWrapper::OnWidgetDestroying(Widget* widget) { |
58 AXAuraObjCache::GetInstance()->Remove(widget); | 59 AXAuraObjCache::GetInstance()->Remove(widget); |
59 } | 60 } |
60 | 61 |
61 void AXWidgetObjWrapper::OnWillRemoveView(Widget* widget, View* view) { | 62 void AXWidgetObjWrapper::OnWillRemoveView(Widget* widget, View* view) { |
62 AXAuraObjCache::GetInstance()->RemoveViewSubtree(view); | 63 AXAuraObjCache::GetInstance()->RemoveViewSubtree(view); |
63 } | 64 } |
64 | 65 |
65 } // namespace views | 66 } // namespace views |
OLD | NEW |