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

Side by Side Diff: content/renderer/accessibility/blink_ax_tree_source.h

Issue 558943002: Revert of Cross-process iframe accessibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/accessibility/blink_ax_tree_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "third_party/WebKit/public/web/WebAXObject.h" 8 #include "third_party/WebKit/public/web/WebAXObject.h"
9 #include "ui/accessibility/ax_node_data.h" 9 #include "ui/accessibility/ax_node_data.h"
10 #include "ui/accessibility/ax_tree_source.h" 10 #include "ui/accessibility/ax_tree_source.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class RenderFrameImpl; 14 class RenderFrameImpl;
15 15
16 class BlinkAXTreeSource 16 class BlinkAXTreeSource
17 : public ui::AXTreeSource<blink::WebAXObject> { 17 : public ui::AXTreeSource<blink::WebAXObject> {
18 public: 18 public:
19 BlinkAXTreeSource(RenderFrameImpl* render_frame); 19 BlinkAXTreeSource(RenderFrameImpl* render_frame);
20 virtual ~BlinkAXTreeSource(); 20 virtual ~BlinkAXTreeSource();
21 21
22 // Call this to have BlinkAXTreeSource collect a mapping from
23 // node ids to the frame routing id for an out-of-process iframe during
24 // calls to SerializeNode.
25 void CollectChildFrameIdMapping(
26 std::map<int32, int>* node_to_frame_routing_id_map);
27
28 // Walks up the ancestor chain to see if this is a descendant of the root. 22 // Walks up the ancestor chain to see if this is a descendant of the root.
29 bool IsInTree(blink::WebAXObject node) const; 23 bool IsInTree(blink::WebAXObject node) const;
30 24
31 // AXTreeSource implementation. 25 // AXTreeSource implementation.
32 virtual blink::WebAXObject GetRoot() const OVERRIDE; 26 virtual blink::WebAXObject GetRoot() const OVERRIDE;
33 virtual blink::WebAXObject GetFromId(int32 id) const OVERRIDE; 27 virtual blink::WebAXObject GetFromId(int32 id) const OVERRIDE;
34 virtual int32 GetId(blink::WebAXObject node) const OVERRIDE; 28 virtual int32 GetId(blink::WebAXObject node) const OVERRIDE;
35 virtual void GetChildren( 29 virtual void GetChildren(
36 blink::WebAXObject node, 30 blink::WebAXObject node,
37 std::vector<blink::WebAXObject>* out_children) const OVERRIDE; 31 std::vector<blink::WebAXObject>* out_children) const OVERRIDE;
38 virtual blink::WebAXObject GetParent(blink::WebAXObject node) const 32 virtual blink::WebAXObject GetParent(blink::WebAXObject node) const
39 OVERRIDE; 33 OVERRIDE;
40 virtual void SerializeNode(blink::WebAXObject node, 34 virtual void SerializeNode(blink::WebAXObject node,
41 ui::AXNodeData* out_data) const OVERRIDE; 35 ui::AXNodeData* out_data) const OVERRIDE;
42 virtual bool IsValid(blink::WebAXObject node) const OVERRIDE; 36 virtual bool IsValid(blink::WebAXObject node) const OVERRIDE;
43 virtual bool IsEqual(blink::WebAXObject node1, 37 virtual bool IsEqual(blink::WebAXObject node1,
44 blink::WebAXObject node2) const OVERRIDE; 38 blink::WebAXObject node2) const OVERRIDE;
45 virtual blink::WebAXObject GetNull() const OVERRIDE; 39 virtual blink::WebAXObject GetNull() const OVERRIDE;
46 40
47 blink::WebDocument GetMainDocument() const; 41 blink::WebDocument GetMainDocument() const;
48 42
49 private: 43 private:
50 RenderFrameImpl* render_frame_; 44 RenderFrameImpl* render_frame_;
51 std::map<int32, int>* node_to_frame_routing_id_map_;
52
53 }; 45 };
54 46
55 } // namespace content 47 } // namespace content
56 48
57 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_TREE_SOURCE_H_ 49 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_TREE_SOURCE_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/accessibility/blink_ax_tree_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698