Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: ui/accessibility/ax_tree_data.h

Issue 1768753003: Implemented the reporting of text style and language information on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit and dmp tree tests. Addressed all reviewer's comments. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 21 matching lines...) Expand all
32 // This is a simple serializable struct. All member variables should be 32 // This is a simple serializable struct. All member variables should be
33 // public and copyable. 33 // public and copyable.
34 34
35 // The globally unique ID of this accessibility tree. 35 // The globally unique ID of this accessibility tree.
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 // Attributes specific to trees that are web frames. 41 // Attributes specific to trees that are web frames.
42 std::string url;
43 std::string title;
44 std::string mimetype;
45 std::string doctype; 42 std::string doctype;
46 bool loaded; 43 bool loaded;
47 float loading_progress; 44 float loading_progress;
45 std::string mimetype;
46 std::string title;
47 std::string url;
48 48
49 // The node with keyboard focus within this tree, if any, or -1 if no node 49 // The node with keyboard focus within this tree, if any, or -1 if no node
50 // in this tree has focus. 50 // in this tree has focus.
51 int32_t focus_id; 51 int32_t focus_id;
52 52
53 // The current text selection within this tree, if any, expressed as the 53 // The current text selection within this tree, if any, expressed as the
54 // node ID and character offset of the anchor (selection start) and focus 54 // node ID and character offset of the anchor (selection start) and focus
55 // (selection end). 55 // (selection end).
56 int32_t sel_anchor_object_id; 56 int32_t sel_anchor_object_id;
57 int32_t sel_anchor_offset; 57 int32_t sel_anchor_offset;
58 int32_t sel_focus_object_id; 58 int32_t sel_focus_object_id;
59 int32_t sel_focus_offset; 59 int32_t sel_focus_offset;
60 }; 60 };
61 61
62 AX_EXPORT bool operator==(const AXTreeData& lhs, const AXTreeData& rhs); 62 AX_EXPORT bool operator==(const AXTreeData& lhs, const AXTreeData& rhs);
63 AX_EXPORT bool operator!=(const AXTreeData& lhs, const AXTreeData& rhs); 63 AX_EXPORT bool operator!=(const AXTreeData& lhs, const AXTreeData& rhs);
64 64
65 } // namespace ui 65 } // namespace ui
66 66
67 #endif // UI_ACCESSIBILITY_AX_TREE_DATA_H_ 67 #endif // UI_ACCESSIBILITY_AX_TREE_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698