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

Unified Diff: content/renderer/accessibility/blink_ax_tree_source.h

Issue 125763003: Refactor content/renderer/accessibility to use AXTreeSerializer (re-land). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Little fixes Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/accessibility/blink_ax_tree_source.h
diff --git a/content/renderer/accessibility/blink_ax_tree_source.h b/content/renderer/accessibility/blink_ax_tree_source.h
new file mode 100644
index 0000000000000000000000000000000000000000..1c18ef29781783fc4df6d26018a81d080890b0e4
--- /dev/null
+++ b/content/renderer/accessibility/blink_ax_tree_source.h
@@ -0,0 +1,46 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_TREE_SOURCE_H_
+#define CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_TREE_SOURCE_H_
+
+#include "third_party/WebKit/public/web/WebAXObject.h"
+#include "ui/accessibility/ax_node_data.h"
+#include "ui/accessibility/ax_tree_source.h"
+
+namespace content {
+
+class RenderViewImpl;
+
+class BlinkAXTreeSource
+ : public ui::AXTreeSource<blink::WebAXObject> {
+ public:
+ BlinkAXTreeSource(RenderViewImpl* render_view);
+ virtual ~BlinkAXTreeSource();
+
+ // AXTreeSource implementation..
aboxhall 2014/02/25 17:45:35 Stray . ?
dmazzoni 2014/02/27 20:51:44 Done.
+ virtual blink::WebAXObject GetRoot() const OVERRIDE;
+ virtual blink::WebAXObject GetFromId(int32 id) const OVERRIDE;
+ virtual int32 GetId(blink::WebAXObject node) const OVERRIDE;
+ virtual void GetChildren(
+ blink::WebAXObject node,
+ std::vector<blink::WebAXObject>* out_children) const OVERRIDE;
+ virtual blink::WebAXObject GetParent(blink::WebAXObject node) const
+ OVERRIDE;
+ virtual void SerializeNode(blink::WebAXObject node,
+ ui::AXNodeData* out_data) const OVERRIDE;
+ virtual bool IsValid(blink::WebAXObject node) const OVERRIDE;
+ virtual bool IsEqual(blink::WebAXObject node1,
+ blink::WebAXObject node2) const OVERRIDE;
+ virtual blink::WebAXObject GetNull() const OVERRIDE;
+
+ blink::WebDocument GetMainDocument() const;
+
+ private:
+ RenderViewImpl* render_view_;
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_TREE_SOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698