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

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

Issue 2766683003: Make AXPlatformNodeDelegate::GetData() const (Closed)
Patch Set: rebase Created 3 years, 9 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 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // static 65 // static
66 void TestAXNodeWrapper::SetGlobalCoordinateOffset(const gfx::Vector2d& offset) { 66 void TestAXNodeWrapper::SetGlobalCoordinateOffset(const gfx::Vector2d& offset) {
67 g_offset = offset; 67 g_offset = offset;
68 } 68 }
69 69
70 TestAXNodeWrapper::~TestAXNodeWrapper() { 70 TestAXNodeWrapper::~TestAXNodeWrapper() {
71 platform_node_->Destroy(); 71 platform_node_->Destroy();
72 } 72 }
73 73
74 const AXNodeData& TestAXNodeWrapper::GetData() { 74 const AXNodeData& TestAXNodeWrapper::GetData() const {
75 return node_->data(); 75 return node_->data();
76 } 76 }
77 77
78 gfx::NativeWindow TestAXNodeWrapper::GetTopLevelWidget() { 78 gfx::NativeWindow TestAXNodeWrapper::GetTopLevelWidget() {
79 return nullptr; 79 return nullptr;
80 } 80 }
81 81
82 gfx::NativeViewAccessible TestAXNodeWrapper::GetParent() { 82 gfx::NativeViewAccessible TestAXNodeWrapper::GetParent() {
83 TestAXNodeWrapper* parent_wrapper = GetOrCreate(tree_, node_->parent()); 83 TestAXNodeWrapper* parent_wrapper = GetOrCreate(tree_, node_->parent());
84 return parent_wrapper ? 84 return parent_wrapper ?
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 void TestAXNodeWrapper::DoDefaultAction() {} 125 void TestAXNodeWrapper::DoDefaultAction() {}
126 126
127 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node) 127 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node)
128 : tree_(tree), 128 : tree_(tree),
129 node_(node), 129 node_(node),
130 platform_node_(AXPlatformNode::Create(this)) { 130 platform_node_(AXPlatformNode::Create(this)) {
131 } 131 }
132 132
133 } // namespace ui 133 } // 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