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 "ui/accessibility/ax_node_data.h" | 7 #include "ui/accessibility/ax_node_data.h" |
8 #include "ui/views/accessibility/ax_aura_obj_cache.h" | 8 #include "ui/views/accessibility/ax_aura_obj_cache.h" |
9 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" | 9 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" |
10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 int32_t AXWidgetObjWrapper::GetID() { | 45 int32_t AXWidgetObjWrapper::GetID() { |
46 return AXAuraObjCache::GetInstance()->GetID(widget_); | 46 return AXAuraObjCache::GetInstance()->GetID(widget_); |
47 } | 47 } |
48 | 48 |
49 void AXWidgetObjWrapper::OnWidgetDestroying(Widget* widget) { | 49 void AXWidgetObjWrapper::OnWidgetDestroying(Widget* widget) { |
50 AXAuraObjCache::GetInstance()->Remove(widget); | 50 AXAuraObjCache::GetInstance()->Remove(widget); |
51 } | 51 } |
52 | 52 |
53 void AXWidgetObjWrapper::OnWillRemoveView(Widget* widget, View* view) { | 53 void AXWidgetObjWrapper::OnWillRemoveView(Widget* widget, View* view) { |
54 AXAuraObjCache::GetInstance()->Remove(view); | 54 AXAuraObjCache::GetInstance()->RemoveViewSubtree(view); |
55 } | 55 } |
56 | 56 |
57 } // namespace views | 57 } // namespace views |
OLD | NEW |