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

Side by Side Diff: ui/views/accessibility/native_view_accessibility_auralinux.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 "ui/views/accessibility/native_view_accessibility_auralinux.h" 5 #include "ui/views/accessibility/native_view_accessibility_auralinux.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 107 }
108 108
109 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override { 109 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override {
110 return gfx::kNullAcceleratedWidget; 110 return gfx::kNullAcceleratedWidget;
111 } 111 }
112 112
113 bool AccessibilityPerformAction(const ui::AXActionData& data) override { 113 bool AccessibilityPerformAction(const ui::AXActionData& data) override {
114 return false; 114 return false;
115 } 115 }
116 116
117 bool ShouldIgnoreHoveredStateForTesting() override { return false; }
118
117 private: 119 private:
118 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; 120 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>;
119 121
120 AuraLinuxApplication() 122 AuraLinuxApplication()
121 : platform_node_(ui::AXPlatformNode::Create(this)) { 123 : platform_node_(ui::AXPlatformNode::Create(this)) {
122 data_.role = ui::AX_ROLE_APPLICATION; 124 data_.role = ui::AX_ROLE_APPLICATION;
123 if (ViewsDelegate::GetInstance()) { 125 if (ViewsDelegate::GetInstance()) {
124 data_.AddStringAttribute( 126 data_.AddStringAttribute(
125 ui::AX_ATTR_NAME, 127 ui::AX_ATTR_NAME,
126 ViewsDelegate::GetInstance()->GetApplicationName()); 128 ViewsDelegate::GetInstance()->GetApplicationName());
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 } 166 }
165 167
166 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { 168 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() {
167 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); 169 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent();
168 if (!parent) 170 if (!parent)
169 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); 171 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible();
170 return parent; 172 return parent;
171 } 173 }
172 174
173 } // namespace views 175 } // namespace views
OLDNEW
« no previous file with comments | « ui/accessibility/platform/test_ax_node_wrapper.cc ('k') | ui/views/accessibility/native_view_accessibility_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698