| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/accessibility/browser_accessibility_manager.h" | 5 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 if (!delegate_) | 743 if (!delegate_) |
| 744 return; | 744 return; |
| 745 | 745 |
| 746 ui::AXActionData action_data; | 746 ui::AXActionData action_data; |
| 747 action_data.target_node_id = node.GetId(); | 747 action_data.target_node_id = node.GetId(); |
| 748 action_data.action = ui::AX_ACTION_SET_VALUE; | 748 action_data.action = ui::AX_ACTION_SET_VALUE; |
| 749 action_data.value = value; | 749 action_data.value = value; |
| 750 delegate_->AccessibilityPerformAction(action_data); | 750 delegate_->AccessibilityPerformAction(action_data); |
| 751 } | 751 } |
| 752 | 752 |
| 753 void BrowserAccessibilityManager::SetSelection(AXPlatformRange range) { | 753 void BrowserAccessibilityManager::SetSelection(ui::AXAbstractRange range) { |
| 754 if (!delegate_ || range.IsNull()) | 754 if (!delegate_ || range.IsNull()) |
| 755 return; | 755 return; |
| 756 | 756 |
| 757 ui::AXActionData action_data; | 757 ui::AXActionData action_data; |
| 758 action_data.anchor_node_id = range.anchor()->anchor_id(); | 758 action_data.anchor_node_id = range.anchor()->anchor_id(); |
| 759 action_data.anchor_offset = range.anchor()->text_offset(); | 759 action_data.anchor_offset = range.anchor()->text_offset(); |
| 760 action_data.focus_node_id = range.focus()->anchor_id(); | 760 action_data.focus_node_id = range.focus()->anchor_id(); |
| 761 action_data.focus_offset = range.focus()->text_offset(); | 761 action_data.focus_offset = range.focus()->text_offset(); |
| 762 action_data.action = ui::AX_ACTION_SET_SELECTION; | 762 action_data.action = ui::AX_ACTION_SET_SELECTION; |
| 763 delegate_->AccessibilityPerformAction(action_data); | 763 delegate_->AccessibilityPerformAction(action_data); |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 hit_test_result = parent; | 1312 hit_test_result = parent; |
| 1313 parent = parent->PlatformGetParent(); | 1313 parent = parent->PlatformGetParent(); |
| 1314 } | 1314 } |
| 1315 | 1315 |
| 1316 last_hover_ax_tree_id_ = hit_test_result->manager()->ax_tree_id(); | 1316 last_hover_ax_tree_id_ = hit_test_result->manager()->ax_tree_id(); |
| 1317 last_hover_node_id_ = hit_test_result->GetId(); | 1317 last_hover_node_id_ = hit_test_result->GetId(); |
| 1318 last_hover_bounds_ = hit_test_result->GetScreenBoundsRect(); | 1318 last_hover_bounds_ = hit_test_result->GetScreenBoundsRect(); |
| 1319 } | 1319 } |
| 1320 | 1320 |
| 1321 } // namespace content | 1321 } // namespace content |
| OLD | NEW |