| 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_window_obj_wrapper.h" | 5 #include "ui/views/accessibility/ax_window_obj_wrapper.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "ui/accessibility/ax_enums.h" |
| 10 #include "ui/accessibility/ax_node_data.h" | 11 #include "ui/accessibility/ax_node_data.h" |
| 11 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
| 12 #include "ui/views/accessibility/ax_aura_obj_cache.h" | 13 #include "ui/views/accessibility/ax_aura_obj_cache.h" |
| 13 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
| 14 | 15 |
| 15 namespace views { | 16 namespace views { |
| 16 | 17 |
| 17 AXWindowObjWrapper::AXWindowObjWrapper(aura::Window* window) | 18 AXWindowObjWrapper::AXWindowObjWrapper(aura::Window* window) |
| 18 : window_(window), is_alert_(false) { | 19 : window_(window), is_alert_(false) { |
| 19 window->AddObserver(this); | 20 window->AddObserver(this); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 59 |
| 59 int32_t AXWindowObjWrapper::GetID() { | 60 int32_t AXWindowObjWrapper::GetID() { |
| 60 return AXAuraObjCache::GetInstance()->GetID(window_); | 61 return AXAuraObjCache::GetInstance()->GetID(window_); |
| 61 } | 62 } |
| 62 | 63 |
| 63 void AXWindowObjWrapper::OnWindowDestroyed(aura::Window* window) { | 64 void AXWindowObjWrapper::OnWindowDestroyed(aura::Window* window) { |
| 64 AXAuraObjCache::GetInstance()->Remove(window); | 65 AXAuraObjCache::GetInstance()->Remove(window); |
| 65 } | 66 } |
| 66 | 67 |
| 67 } // namespace views | 68 } // namespace views |
| OLD | NEW |