| 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_aura_obj_cache.h" | 5 #include "ui/views/accessibility/ax_aura_obj_cache.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "ui/accessibility/ax_enums.h" |
| 9 #include "ui/aura/client/focus_client.h" | 10 #include "ui/aura/client/focus_client.h" |
| 10 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 11 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" | 12 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" |
| 12 #include "ui/views/accessibility/ax_view_obj_wrapper.h" | 13 #include "ui/views/accessibility/ax_view_obj_wrapper.h" |
| 13 #include "ui/views/accessibility/ax_widget_obj_wrapper.h" | 14 #include "ui/views/accessibility/ax_widget_obj_wrapper.h" |
| 14 #include "ui/views/accessibility/ax_window_obj_wrapper.h" | 15 #include "ui/views/accessibility/ax_window_obj_wrapper.h" |
| 15 #include "ui/views/view.h" | 16 #include "ui/views/view.h" |
| 16 #include "ui/views/widget/widget.h" | 17 #include "ui/views/widget/widget.h" |
| 17 | 18 |
| 18 namespace views { | 19 namespace views { |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 AuraView* aura_view, | 204 AuraView* aura_view, |
| 204 std::map<AuraView*, int32_t>& aura_view_to_id_map) { | 205 std::map<AuraView*, int32_t>& aura_view_to_id_map) { |
| 205 int32_t id = GetID(aura_view); | 206 int32_t id = GetID(aura_view); |
| 206 if (id == -1) | 207 if (id == -1) |
| 207 return; | 208 return; |
| 208 aura_view_to_id_map.erase(aura_view); | 209 aura_view_to_id_map.erase(aura_view); |
| 209 Remove(id); | 210 Remove(id); |
| 210 } | 211 } |
| 211 | 212 |
| 212 } // namespace views | 213 } // namespace views |
| OLD | NEW |