| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 UI_ACCESSIBILITY_AX_TREE_DATA_H_ | 5 #ifndef UI_ACCESSIBILITY_AX_TREE_DATA_H_ |
| 6 #define UI_ACCESSIBILITY_AX_TREE_DATA_H_ | 6 #define UI_ACCESSIBILITY_AX_TREE_DATA_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 std::string mimetype; | 49 std::string mimetype; |
| 50 std::string title; | 50 std::string title; |
| 51 std::string url; | 51 std::string url; |
| 52 | 52 |
| 53 // The node with keyboard focus within this tree, if any, or -1 if no node | 53 // The node with keyboard focus within this tree, if any, or -1 if no node |
| 54 // in this tree has focus. | 54 // in this tree has focus. |
| 55 int32_t focus_id; | 55 int32_t focus_id; |
| 56 | 56 |
| 57 // The current text selection within this tree, if any, expressed as the | 57 // The current text selection within this tree, if any, expressed as the |
| 58 // node ID and character offset of the anchor (selection start) and focus | 58 // node ID and character offset of the anchor (selection start) and focus |
| 59 // (selection end). | 59 // (selection end). If the offset could correspond to a position on two |
| 60 // different lines, sel_upstream_affinity means the cursor is on the first |
| 61 // line, otherwise it's on the second line. |
| 60 int32_t sel_anchor_object_id; | 62 int32_t sel_anchor_object_id; |
| 61 int32_t sel_anchor_offset; | 63 int32_t sel_anchor_offset; |
| 64 ui::AXTextAffinity sel_anchor_affinity; |
| 62 int32_t sel_focus_object_id; | 65 int32_t sel_focus_object_id; |
| 63 int32_t sel_focus_offset; | 66 int32_t sel_focus_offset; |
| 67 ui::AXTextAffinity sel_focus_affinity; |
| 64 }; | 68 }; |
| 65 | 69 |
| 66 AX_EXPORT bool operator==(const AXTreeData& lhs, const AXTreeData& rhs); | 70 AX_EXPORT bool operator==(const AXTreeData& lhs, const AXTreeData& rhs); |
| 67 AX_EXPORT bool operator!=(const AXTreeData& lhs, const AXTreeData& rhs); | 71 AX_EXPORT bool operator!=(const AXTreeData& lhs, const AXTreeData& rhs); |
| 68 | 72 |
| 69 } // namespace ui | 73 } // namespace ui |
| 70 | 74 |
| 71 #endif // UI_ACCESSIBILITY_AX_TREE_DATA_H_ | 75 #endif // UI_ACCESSIBILITY_AX_TREE_DATA_H_ |
| OLD | NEW |