| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ax_platform_position.h" | 5 #include "content/browser/accessibility/ax_platform_position.h" |
| 6 | 6 |
| 7 #include "content/browser/accessibility/browser_accessibility.h" |
| 7 #include "content/browser/accessibility/browser_accessibility_manager.h" | 8 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 8 #include "ui/accessibility/ax_enums.h" | 9 #include "ui/accessibility/ax_enums.h" |
| 9 | 10 |
| 10 namespace content { | 11 namespace content { |
| 11 | 12 |
| 12 AXPlatformPosition::AXPlatformPosition() {} | 13 AXPlatformPosition::AXPlatformPosition() {} |
| 13 | 14 |
| 14 AXPlatformPosition::~AXPlatformPosition() {} | 15 AXPlatformPosition::~AXPlatformPosition() {} |
| 15 | 16 |
| 16 AXPlatformPosition::AXPositionInstance AXPlatformPosition::Clone() const { | 17 AXPlatformPosition::AXPositionInstance AXPlatformPosition::Clone() const { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 int previous_on_line_id; | 140 int previous_on_line_id; |
| 140 if (!node || | 141 if (!node || |
| 141 !node->GetIntAttribute(ui::AX_ATTR_PREVIOUS_ON_LINE_ID, | 142 !node->GetIntAttribute(ui::AX_ATTR_PREVIOUS_ON_LINE_ID, |
| 142 &previous_on_line_id)) { | 143 &previous_on_line_id)) { |
| 143 return INVALID_ANCHOR_ID; | 144 return INVALID_ANCHOR_ID; |
| 144 } | 145 } |
| 145 return static_cast<int32_t>(previous_on_line_id); | 146 return static_cast<int32_t>(previous_on_line_id); |
| 146 } | 147 } |
| 147 | 148 |
| 148 } // namespace content | 149 } // namespace content |
| OLD | NEW |