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 IsHotTrackingOn() override { return true; } |
| 113 |
112 private: | 114 private: |
113 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; | 115 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; |
114 | 116 |
115 AuraLinuxApplication() | 117 AuraLinuxApplication() |
116 : platform_node_(ui::AXPlatformNode::Create(this)) { | 118 : platform_node_(ui::AXPlatformNode::Create(this)) { |
117 data_.role = ui::AX_ROLE_APPLICATION; | 119 data_.role = ui::AX_ROLE_APPLICATION; |
118 if (ViewsDelegate::GetInstance()) { | 120 if (ViewsDelegate::GetInstance()) { |
119 data_.AddStringAttribute( | 121 data_.AddStringAttribute( |
120 ui::AX_ATTR_NAME, | 122 ui::AX_ATTR_NAME, |
121 ViewsDelegate::GetInstance()->GetApplicationName()); | 123 ViewsDelegate::GetInstance()->GetApplicationName()); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 161 } |
160 | 162 |
161 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { | 163 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { |
162 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); | 164 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); |
163 if (!parent) | 165 if (!parent) |
164 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); | 166 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); |
165 return parent; | 167 return parent; |
166 } | 168 } |
167 | 169 |
168 } // namespace views | 170 } // namespace views |
OLD | NEW |