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

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

Issue 2943243002: Forward BrowserAccessibility get_accState to AXPlatformNode. (Closed)
Patch Set: Mask out focus changes when determining if we should broadcast EVENT_OBJECT_STATECHANGE Created 3 years, 5 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 gfx::AcceleratedWidget 122 gfx::AcceleratedWidget
123 TestAXNodeWrapper::GetTargetForNativeAccessibilityEvent() { 123 TestAXNodeWrapper::GetTargetForNativeAccessibilityEvent() {
124 return gfx::kNullAcceleratedWidget; 124 return gfx::kNullAcceleratedWidget;
125 } 125 }
126 126
127 bool TestAXNodeWrapper::AccessibilityPerformAction( 127 bool TestAXNodeWrapper::AccessibilityPerformAction(
128 const ui::AXActionData& data) { 128 const ui::AXActionData& data) {
129 return true; 129 return true;
130 } 130 }
131 131
132 bool TestAXNodeWrapper::ShouldIgnoreHoveredStateForTesting() {
133 return true;
134 }
135
132 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node) 136 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node)
133 : tree_(tree), 137 : tree_(tree),
134 node_(node), 138 node_(node),
135 platform_node_(AXPlatformNode::Create(this)) { 139 platform_node_(AXPlatformNode::Create(this)) {
136 } 140 }
137 141
138 } // namespace ui 142 } // 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