| 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 25 matching lines...) Expand all Loading... |
| 36 int32_t tree_id; | 36 int32_t tree_id; |
| 37 | 37 |
| 38 // The ID of the accessibility tree that this tree is contained in, if any. | 38 // The ID of the accessibility tree that this tree is contained in, if any. |
| 39 int32_t parent_tree_id; | 39 int32_t parent_tree_id; |
| 40 | 40 |
| 41 // The ID of the accessibility tree that has focus. This is typically set | 41 // The ID of the accessibility tree that has focus. This is typically set |
| 42 // on the root frame in a frame tree. | 42 // on the root frame in a frame tree. |
| 43 int32_t focused_tree_id; | 43 int32_t focused_tree_id; |
| 44 | 44 |
| 45 // Attributes specific to trees that are web frames. | 45 // Attributes specific to trees that are web frames. |
| 46 std::string url; | |
| 47 std::string title; | |
| 48 std::string mimetype; | |
| 49 std::string doctype; | 46 std::string doctype; |
| 50 bool loaded; | 47 bool loaded; |
| 51 float loading_progress; | 48 float loading_progress; |
| 49 std::string mimetype; |
| 50 std::string title; |
| 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). |
| 60 int32_t sel_anchor_object_id; | 60 int32_t sel_anchor_object_id; |
| 61 int32_t sel_anchor_offset; | 61 int32_t sel_anchor_offset; |
| 62 int32_t sel_focus_object_id; | 62 int32_t sel_focus_object_id; |
| 63 int32_t sel_focus_offset; | 63 int32_t sel_focus_offset; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 AX_EXPORT bool operator==(const AXTreeData& lhs, const AXTreeData& rhs); | 66 AX_EXPORT bool operator==(const AXTreeData& lhs, const AXTreeData& rhs); |
| 67 AX_EXPORT bool operator!=(const AXTreeData& lhs, const AXTreeData& rhs); | 67 AX_EXPORT bool operator!=(const AXTreeData& lhs, const AXTreeData& rhs); |
| 68 | 68 |
| 69 } // namespace ui | 69 } // namespace ui |
| 70 | 70 |
| 71 #endif // UI_ACCESSIBILITY_AX_TREE_DATA_H_ | 71 #endif // UI_ACCESSIBILITY_AX_TREE_DATA_H_ |
| OLD | NEW |