| 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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_ |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "content/browser/accessibility/ax_tree_id_registry.h" | 13 #include "content/browser/accessibility/ax_tree_id_registry.h" |
| 14 #include "content/browser/accessibility/browser_accessibility.h" | |
| 15 #include "ui/accessibility/ax_position.h" | 14 #include "ui/accessibility/ax_position.h" |
| 16 | 15 |
| 17 namespace content { | 16 namespace content { |
| 18 | 17 |
| 18 class BrowserAccessibility; |
| 19 |
| 19 using AXTreeID = content::AXTreeIDRegistry::AXTreeID; | 20 using AXTreeID = content::AXTreeIDRegistry::AXTreeID; |
| 20 | 21 |
| 21 class AXPlatformPosition | 22 class AXPlatformPosition |
| 22 : public ui::AXPosition<AXPlatformPosition, BrowserAccessibility> { | 23 : public ui::AXPosition<AXPlatformPosition, BrowserAccessibility> { |
| 23 public: | 24 public: |
| 24 AXPlatformPosition(); | 25 AXPlatformPosition(); |
| 25 ~AXPlatformPosition() override; | 26 ~AXPlatformPosition() override; |
| 26 | 27 |
| 27 AXPositionInstance Clone() const override; | 28 AXPositionInstance Clone() const override; |
| 28 | 29 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 42 bool IsInLineBreak() const override; | 43 bool IsInLineBreak() const override; |
| 43 std::vector<int32_t> GetWordStartOffsets() const override; | 44 std::vector<int32_t> GetWordStartOffsets() const override; |
| 44 std::vector<int32_t> GetWordEndOffsets() const override; | 45 std::vector<int32_t> GetWordEndOffsets() const override; |
| 45 int32_t GetNextOnLineID(int32_t node_id) const override; | 46 int32_t GetNextOnLineID(int32_t node_id) const override; |
| 46 int32_t GetPreviousOnLineID(int32_t node_id) const override; | 47 int32_t GetPreviousOnLineID(int32_t node_id) const override; |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 } // namespace content | 50 } // namespace content |
| 50 | 51 |
| 51 #endif // CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_ | 52 #endif // CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_ |
| OLD | NEW |