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

Side by Side Diff: ui/accessibility/platform/test_ax_node_wrapper.cc

Issue 2933353002: Forward four more BrowserAccessibility APIs to AXPlatformNode. (Closed)
Patch Set: Use SkColor.h instead Created 3 years, 6 months 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/containers/hash_tables.h" 5 #include "base/containers/hash_tables.h"
6 #include "ui/accessibility/ax_action_data.h" 6 #include "ui/accessibility/ax_action_data.h"
7 #include "ui/accessibility/platform/test_ax_node_wrapper.h" 7 #include "ui/accessibility/platform/test_ax_node_wrapper.h"
8 #include "ui/gfx/geometry/rect_conversions.h" 8 #include "ui/gfx/geometry/rect_conversions.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 TestAXNodeWrapper::~TestAXNodeWrapper() { 71 TestAXNodeWrapper::~TestAXNodeWrapper() {
72 platform_node_->Destroy(); 72 platform_node_->Destroy();
73 } 73 }
74 74
75 const AXNodeData& TestAXNodeWrapper::GetData() const { 75 const AXNodeData& TestAXNodeWrapper::GetData() const {
76 return node_->data(); 76 return node_->data();
77 } 77 }
78 78
79 const ui::AXTreeData& TestAXNodeWrapper::GetTreeData() const {
80 return tree_->data();
81 }
82
79 gfx::NativeWindow TestAXNodeWrapper::GetTopLevelWidget() { 83 gfx::NativeWindow TestAXNodeWrapper::GetTopLevelWidget() {
80 return nullptr; 84 return nullptr;
81 } 85 }
82 86
83 gfx::NativeViewAccessible TestAXNodeWrapper::GetParent() { 87 gfx::NativeViewAccessible TestAXNodeWrapper::GetParent() {
84 TestAXNodeWrapper* parent_wrapper = GetOrCreate(tree_, node_->parent()); 88 TestAXNodeWrapper* parent_wrapper = GetOrCreate(tree_, node_->parent());
85 return parent_wrapper ? 89 return parent_wrapper ?
86 parent_wrapper->ax_platform_node()->GetNativeViewAccessible() : 90 parent_wrapper->ax_platform_node()->GetNativeViewAccessible() :
87 nullptr; 91 nullptr;
88 } 92 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return true; 129 return true;
126 } 130 }
127 131
128 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node) 132 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node)
129 : tree_(tree), 133 : tree_(tree),
130 node_(node), 134 node_(node),
131 platform_node_(AXPlatformNode::Create(this)) { 135 platform_node_(AXPlatformNode::Create(this)) {
132 } 136 }
133 137
134 } // namespace ui 138 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/platform/test_ax_node_wrapper.h ('k') | ui/views/accessibility/native_view_accessibility_auralinux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698