OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_TREE_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_TREE_SOURCE_H_ |
6 #define CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_TREE_SOURCE_H_ | 6 #define CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_TREE_SOURCE_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "content/common/ax_content_node_data.h" | 10 #include "content/common/ax_content_node_data.h" |
9 #include "third_party/WebKit/public/web/WebAXObject.h" | 11 #include "third_party/WebKit/public/web/WebAXObject.h" |
10 #include "ui/accessibility/ax_node_data.h" | 12 #include "ui/accessibility/ax_node_data.h" |
11 #include "ui/accessibility/ax_tree_source.h" | 13 #include "ui/accessibility/ax_tree_source.h" |
12 | 14 |
13 namespace content { | 15 namespace content { |
14 | 16 |
15 class RenderFrameImpl; | 17 class RenderFrameImpl; |
16 | 18 |
17 class BlinkAXTreeSource | 19 class BlinkAXTreeSource |
(...skipping 14 matching lines...) Expand all Loading... |
32 | 34 |
33 // Set the id of the node with accessibility focus. The node with | 35 // Set the id of the node with accessibility focus. The node with |
34 // accessibility focus will force loading inline text box children, | 36 // accessibility focus will force loading inline text box children, |
35 // which aren't always loaded by default on all platforms. | 37 // which aren't always loaded by default on all platforms. |
36 int accessibility_focus_id() { return accessibility_focus_id_; } | 38 int accessibility_focus_id() { return accessibility_focus_id_; } |
37 void set_accessibility_focus_id(int id) { accessibility_focus_id_ = id; } | 39 void set_accessibility_focus_id(int id) { accessibility_focus_id_ = id; } |
38 | 40 |
39 // AXTreeSource implementation. | 41 // AXTreeSource implementation. |
40 AXContentTreeData GetTreeData() const override; | 42 AXContentTreeData GetTreeData() const override; |
41 blink::WebAXObject GetRoot() const override; | 43 blink::WebAXObject GetRoot() const override; |
42 blink::WebAXObject GetFromId(int32 id) const override; | 44 blink::WebAXObject GetFromId(int32_t id) const override; |
43 int32 GetId(blink::WebAXObject node) const override; | 45 int32_t GetId(blink::WebAXObject node) const override; |
44 void GetChildren( | 46 void GetChildren( |
45 blink::WebAXObject node, | 47 blink::WebAXObject node, |
46 std::vector<blink::WebAXObject>* out_children) const override; | 48 std::vector<blink::WebAXObject>* out_children) const override; |
47 blink::WebAXObject GetParent(blink::WebAXObject node) const override; | 49 blink::WebAXObject GetParent(blink::WebAXObject node) const override; |
48 void SerializeNode(blink::WebAXObject node, | 50 void SerializeNode(blink::WebAXObject node, |
49 AXContentNodeData* out_data) const override; | 51 AXContentNodeData* out_data) const override; |
50 bool IsValid(blink::WebAXObject node) const override; | 52 bool IsValid(blink::WebAXObject node) const override; |
51 bool IsEqual(blink::WebAXObject node1, | 53 bool IsEqual(blink::WebAXObject node1, |
52 blink::WebAXObject node2) const override; | 54 blink::WebAXObject node2) const override; |
53 blink::WebAXObject GetNull() const override; | 55 blink::WebAXObject GetNull() const override; |
54 | 56 |
55 blink::WebDocument GetMainDocument() const; | 57 blink::WebDocument GetMainDocument() const; |
56 | 58 |
57 private: | 59 private: |
58 RenderFrameImpl* render_frame_; | 60 RenderFrameImpl* render_frame_; |
59 blink::WebAXObject root_; | 61 blink::WebAXObject root_; |
60 | 62 |
61 int accessibility_focus_id_; | 63 int accessibility_focus_id_; |
62 }; | 64 }; |
63 | 65 |
64 } // namespace content | 66 } // namespace content |
65 | 67 |
66 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_TREE_SOURCE_H_ | 68 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_TREE_SOURCE_H_ |
OLD | NEW |