OLD | NEW |
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 } | 102 } |
103 | 103 |
104 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override { | 104 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override { |
105 return gfx::kNullAcceleratedWidget; | 105 return gfx::kNullAcceleratedWidget; |
106 } | 106 } |
107 | 107 |
108 bool AccessibilityPerformAction(const ui::AXActionData& data) override { | 108 bool AccessibilityPerformAction(const ui::AXActionData& data) override { |
109 return false; | 109 return false; |
110 } | 110 } |
111 | 111 |
112 bool ShouldIgnoreHoveredStateForTesting() override { return false; } | |
113 | |
114 private: | 112 private: |
115 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; | 113 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; |
116 | 114 |
117 AuraLinuxApplication() | 115 AuraLinuxApplication() |
118 : platform_node_(ui::AXPlatformNode::Create(this)) { | 116 : platform_node_(ui::AXPlatformNode::Create(this)) { |
119 data_.role = ui::AX_ROLE_APPLICATION; | 117 data_.role = ui::AX_ROLE_APPLICATION; |
120 if (ViewsDelegate::GetInstance()) { | 118 if (ViewsDelegate::GetInstance()) { |
121 data_.AddStringAttribute( | 119 data_.AddStringAttribute( |
122 ui::AX_ATTR_NAME, | 120 ui::AX_ATTR_NAME, |
123 ViewsDelegate::GetInstance()->GetApplicationName()); | 121 ViewsDelegate::GetInstance()->GetApplicationName()); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 } | 159 } |
162 | 160 |
163 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { | 161 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { |
164 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); | 162 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); |
165 if (!parent) | 163 if (!parent) |
166 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); | 164 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); |
167 return parent; | 165 return parent; |
168 } | 166 } |
169 | 167 |
170 } // namespace views | 168 } // namespace views |
OLD | NEW |