OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_base.h" | 5 #include "ui/views/accessibility/native_view_accessibility_base.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "ui/accessibility/platform/ax_platform_node.h" |
9 #include "ui/events/event_utils.h" | 10 #include "ui/events/event_utils.h" |
10 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
11 #include "ui/views/controls/native/native_view_host.h" | 12 #include "ui/views/controls/native/native_view_host.h" |
12 #include "ui/views/view.h" | 13 #include "ui/views/view.h" |
13 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
14 | 15 |
15 namespace views { | 16 namespace views { |
16 | 17 |
17 namespace { | 18 namespace { |
18 | 19 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 return GetNativeObject(); | 191 return GetNativeObject(); |
191 } | 192 } |
192 | 193 |
193 gfx::NativeViewAccessible NativeViewAccessibilityBase::GetFocus() { | 194 gfx::NativeViewAccessible NativeViewAccessibilityBase::GetFocus() { |
194 FocusManager* focus_manager = view_->GetFocusManager(); | 195 FocusManager* focus_manager = view_->GetFocusManager(); |
195 View* focused_view = | 196 View* focused_view = |
196 focus_manager ? focus_manager->GetFocusedView() : nullptr; | 197 focus_manager ? focus_manager->GetFocusedView() : nullptr; |
197 return focused_view ? focused_view->GetNativeViewAccessible() : nullptr; | 198 return focused_view ? focused_view->GetNativeViewAccessible() : nullptr; |
198 } | 199 } |
199 | 200 |
| 201 ui::AXPlatformNode* NativeViewAccessibilityBase::GetFromNodeID(int32_t id) { |
| 202 return nullptr; |
| 203 } |
| 204 |
200 gfx::AcceleratedWidget | 205 gfx::AcceleratedWidget |
201 NativeViewAccessibilityBase::GetTargetForNativeAccessibilityEvent() { | 206 NativeViewAccessibilityBase::GetTargetForNativeAccessibilityEvent() { |
202 return gfx::kNullAcceleratedWidget; | 207 return gfx::kNullAcceleratedWidget; |
203 } | 208 } |
204 | 209 |
205 bool NativeViewAccessibilityBase::AccessibilityPerformAction( | 210 bool NativeViewAccessibilityBase::AccessibilityPerformAction( |
206 const ui::AXActionData& data) { | 211 const ui::AXActionData& data) { |
207 return view_->HandleAccessibleAction(data); | 212 return view_->HandleAccessibleAction(data); |
208 } | 213 } |
209 | 214 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 child_widget_platform_node->GetDelegate()); | 265 child_widget_platform_node->GetDelegate()); |
261 if (child_widget_view_accessibility->parent_widget() != widget) | 266 if (child_widget_view_accessibility->parent_widget() != widget) |
262 child_widget_view_accessibility->SetParentWidget(widget); | 267 child_widget_view_accessibility->SetParentWidget(widget); |
263 } | 268 } |
264 | 269 |
265 result_child_widgets->push_back(child_widget); | 270 result_child_widgets->push_back(child_widget); |
266 } | 271 } |
267 } | 272 } |
268 | 273 |
269 } // namespace views | 274 } // namespace views |
OLD | NEW |