Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_ | |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 | |
| 10 #include "content/browser/accessibility/ax_tree_id_registry.h" | |
| 11 #include "content/browser/accessibility/browser_accessibility.h" | |
| 12 #include "content/browser/accessibility/browser_accessibility_manager.h" | |
| 13 #include "ui/accessibility/ax_node.h" | |
| 14 #include "ui/accessibility/ax_position.h" | |
| 15 | |
| 16 namespace content { | |
| 17 | |
| 18 class AXPlatformPosition : AXPosition { | |
| 19 public: | |
| 20 ~AXPlatformPosition() override; | |
| 21 | |
| 22 ui::AXTextAffinity get_affinity() { return affinity_; } | |
|
dmazzoni
2016/10/03 18:22:51
I think this needs to be part of AXPosition.
It w
| |
| 23 void set_affinity(ui::AXTextAffinity affinity) { affinity_ = affinity; } | |
| 24 | |
| 25 protected: | |
| 26 AXPlatformPosition(AXTreeIDRegistry::AXTreeID tree_id, int32_t anchor_id, int child_index, int text_offset, AXPositionType type); | |
| 27 | |
| 28 BrowserAccessibility* GetPlatformNodeInTree(AXTreeIDRegistry::AXTreeID tree_id , int32-t node_id) const; | |
| 29 AXNode* GetNodeInTree(AXTreeIDRegistry::AXTreeID tree_id, int32-t node_id) con st override; | |
| 30 int MaxTextOffset() const override; | |
| 31 | |
| 32 private: | |
| 33 // TODO(nektar): Get rid of affinity and make Blink handle affinity internally . | |
| 34 ui::AXTextAffinity affinity; | |
| 35 }; | |
| 36 | |
| 37 } // namespace content | |
| 38 | |
| 39 #endif // CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_ | |
| OLD | NEW |