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

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

Issue 2474363002: MacViews/a11y: Accessibility actions use AXActionData in AXPlatformNodeDelegate. (Closed)
Patch Set: Review comments. Created 4 years 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/platform/test_ax_node_wrapper.h" 7 #include "ui/accessibility/platform/test_ax_node_wrapper.h"
7 8
8 namespace ui { 9 namespace ui {
9 10
10 namespace { 11 namespace {
11 12
12 // A global map from AXNodes to TestAXNodeWrappers. 13 // A global map from AXNodes to TestAXNodeWrappers.
13 base::hash_map<AXNode*, TestAXNodeWrapper*> g_node_to_wrapper_map; 14 base::hash_map<AXNode*, TestAXNodeWrapper*> g_node_to_wrapper_map;
14 15
15 // A global coordinate offset. 16 // A global coordinate offset.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 110
110 gfx::NativeViewAccessible TestAXNodeWrapper::GetFocus() { 111 gfx::NativeViewAccessible TestAXNodeWrapper::GetFocus() {
111 return nullptr; 112 return nullptr;
112 } 113 }
113 114
114 gfx::AcceleratedWidget 115 gfx::AcceleratedWidget
115 TestAXNodeWrapper::GetTargetForNativeAccessibilityEvent() { 116 TestAXNodeWrapper::GetTargetForNativeAccessibilityEvent() {
116 return gfx::kNullAcceleratedWidget; 117 return gfx::kNullAcceleratedWidget;
117 } 118 }
118 119
119 void TestAXNodeWrapper::DoDefaultAction() { 120 bool TestAXNodeWrapper::AccessibilityPerformAction(
120 } 121 const ui::AXActionData& data) {
121
122 bool TestAXNodeWrapper::SetStringValue(const base::string16& new_value,
123 bool clear_first) {
124 return false; 122 return false;
125 } 123 }
126 124
127 bool TestAXNodeWrapper::CanSetStringValue() { 125 void TestAXNodeWrapper::DoDefaultAction() {}
128 return false;
129 }
130
131 bool TestAXNodeWrapper::SetFocused(bool focused) {
132 return false;
133 }
134 126
135 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node) 127 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node)
136 : tree_(tree), 128 : tree_(tree),
137 node_(node), 129 node_(node),
138 platform_node_(AXPlatformNode::Create(this)) { 130 platform_node_(AXPlatformNode::Create(this)) {
139 } 131 }
140 132
141 } // 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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698