| 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 "base/strings/utf_string_conversions.h" | 5 #include "base/strings/utf_string_conversions.h" |
| 6 #include "ui/accessibility/ax_view_state.h" | 6 #include "ui/accessibility/ax_node_data.h" |
| 7 #include "ui/gfx/geometry/rect_conversions.h" | 7 #include "ui/gfx/geometry/rect_conversions.h" |
| 8 #include "ui/views/accessibility/native_view_accessibility.h" | 8 #include "ui/views/accessibility/native_view_accessibility.h" |
| 9 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
| 10 #include "ui/views/controls/label.h" | 10 #include "ui/views/controls/label.h" |
| 11 #include "ui/views/test/views_test_base.h" | 11 #include "ui/views/test/views_test_base.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 namespace test { | 14 namespace test { |
| 15 | 15 |
| 16 class NativeViewAccessibilityTest; | 16 class NativeViewAccessibilityTest; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // WidgetObserver. Note that TestNativeViewAccessibility is a subclass | 118 // WidgetObserver. Note that TestNativeViewAccessibility is a subclass |
| 119 // defined above that destroys itself when its parent widget is destroyed. | 119 // defined above that destroys itself when its parent widget is destroyed. |
| 120 TestNativeViewAccessibility* child_accessible = | 120 TestNativeViewAccessibility* child_accessible = |
| 121 new TestNativeViewAccessibility(child_widget->GetRootView()); | 121 new TestNativeViewAccessibility(child_widget->GetRootView()); |
| 122 child_accessible->SetParentWidget(parent_widget.get()); | 122 child_accessible->SetParentWidget(parent_widget.get()); |
| 123 parent_widget.reset(); | 123 parent_widget.reset(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace test | 126 } // namespace test |
| 127 } // namespace views | 127 } // namespace views |
| OLD | NEW |