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_enums.h" |
6 #include "ui/accessibility/ax_view_state.h" | 7 #include "ui/accessibility/ax_view_state.h" |
7 #include "ui/views/accessibility/native_view_accessibility.h" | 8 #include "ui/views/accessibility/native_view_accessibility.h" |
8 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
9 #include "ui/views/controls/label.h" | 10 #include "ui/views/controls/label.h" |
10 #include "ui/views/test/views_test_base.h" | 11 #include "ui/views/test/views_test_base.h" |
11 | 12 |
12 namespace views { | 13 namespace views { |
13 namespace test { | 14 namespace test { |
14 | 15 |
15 class NativeViewAccessibilityTest; | 16 class NativeViewAccessibilityTest; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // WidgetObserver. Note that TestNativeViewAccessibility is a subclass | 105 // WidgetObserver. Note that TestNativeViewAccessibility is a subclass |
105 // defined above that destroys itself when its parent widget is destroyed. | 106 // defined above that destroys itself when its parent widget is destroyed. |
106 TestNativeViewAccessibility* child_accessible = | 107 TestNativeViewAccessibility* child_accessible = |
107 new TestNativeViewAccessibility(child_widget->GetRootView()); | 108 new TestNativeViewAccessibility(child_widget->GetRootView()); |
108 child_accessible->SetParentWidget(parent_widget.get()); | 109 child_accessible->SetParentWidget(parent_widget.get()); |
109 parent_widget.reset(); | 110 parent_widget.reset(); |
110 } | 111 } |
111 | 112 |
112 } // namespace test | 113 } // namespace test |
113 } // namespace views | 114 } // namespace views |
OLD | NEW |