Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: ui/views/accessibility/native_view_accessibility_unittest.cc

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/views/accessibility/native_view_accessibility.cc ('k') | ui/views/accessibility/native_view_accessibility_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698