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 27 matching lines...) Expand all Loading... |
38 int32_t parent_tree_id; | 38 int32_t parent_tree_id; |
39 | 39 |
40 // Attributes specific to trees that are web frames. | 40 // Attributes specific to trees that are web frames. |
41 std::string url; | 41 std::string url; |
42 std::string title; | 42 std::string title; |
43 std::string mimetype; | 43 std::string mimetype; |
44 std::string doctype; | 44 std::string doctype; |
45 bool loaded; | 45 bool loaded; |
46 float loading_progress; | 46 float loading_progress; |
47 | 47 |
| 48 // The node with keyboard focus within this tree, if any, or -1 if no node |
| 49 // in this tree has focus. |
| 50 int32_t focus_id; |
| 51 |
48 // The current text selection within this tree, if any, expressed as the | 52 // The current text selection within this tree, if any, expressed as the |
49 // node ID and character offset of the anchor (selection start) and focus | 53 // node ID and character offset of the anchor (selection start) and focus |
50 // (selection end). | 54 // (selection end). |
51 int32_t sel_anchor_object_id; | 55 int32_t sel_anchor_object_id; |
52 int32_t sel_anchor_offset; | 56 int32_t sel_anchor_offset; |
53 int32_t sel_focus_object_id; | 57 int32_t sel_focus_object_id; |
54 int32_t sel_focus_offset; | 58 int32_t sel_focus_offset; |
55 }; | 59 }; |
56 | 60 |
57 AX_EXPORT bool operator==(const AXTreeData& lhs, const AXTreeData& rhs); | 61 AX_EXPORT bool operator==(const AXTreeData& lhs, const AXTreeData& rhs); |
58 AX_EXPORT bool operator!=(const AXTreeData& lhs, const AXTreeData& rhs); | 62 AX_EXPORT bool operator!=(const AXTreeData& lhs, const AXTreeData& rhs); |
59 | 63 |
60 } // namespace ui | 64 } // namespace ui |
61 | 65 |
62 #endif // UI_ACCESSIBILITY_AX_TREE_DATA_H_ | 66 #endif // UI_ACCESSIBILITY_AX_TREE_DATA_H_ |
OLD | NEW |