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

Unified Diff: ui/views/accessibility/ax_window_obj_wrapper.h

Issue 246433012: Extend AXTreeSourceViews to handle aura::Window and views::Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: ui/views/accessibility/ax_window_obj_wrapper.h
diff --git a/ui/views/accessibility/ax_window_obj_wrapper.h b/ui/views/accessibility/ax_window_obj_wrapper.h
new file mode 100644
index 0000000000000000000000000000000000000000..b72d56c7da65ffa559d6c77afe0bf97379c81a4c
--- /dev/null
+++ b/ui/views/accessibility/ax_window_obj_wrapper.h
@@ -0,0 +1,34 @@
+// Copyright 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 UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_
+#define UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_
+
+#include "ui/views/accessibility/ax_node_source_obj_wrapper.h"
+
+namespace aura {
+class Window;
+} // namespace aura
+
+namespace views {
+
+class AXWindowObjWrapper : public AXNodeSourceObjWrapper {
+ public:
+ explicit AXWindowObjWrapper(aura::Window* window) : window_(window) {}
+ virtual ~AXWindowObjWrapper() {}
+
+ virtual AXNodeSourceObjWrapper* GetParent() OVERRIDE;
+ virtual void GetChildren(
+ std::vector<AXNodeSourceObjWrapper*>* out_children) OVERRIDE;
+ virtual void Serialize(ui::AXNodeData* out_node_data) OVERRIDE;
+
+ private:
+ aura::Window* window_;
+
+ DISALLOW_COPY_AND_ASSIGN(AXWindowObjWrapper);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_

Powered by Google App Engine
This is Rietveld 408576698