| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |