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..b3cd235cfb70a45c196257d2c40587245314948d |
--- /dev/null |
+++ b/ui/views/accessibility/ax_window_obj_wrapper.h |
@@ -0,0 +1,42 @@ |
+// 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/aura/window_observer.h" |
+#include "ui/views/accessibility/ax_aura_obj_wrapper.h" |
+ |
+namespace aura { |
+class Window; |
+} // namespace aura |
+ |
+namespace views { |
+ |
+// Describes a |Window| for use with other AX classes. |
+class AXWindowObjWrapper : public AXAuraObjWrapper, |
+ public aura::WindowObserver { |
+ public: |
+ explicit AXWindowObjWrapper(aura::Window* window); |
+ virtual ~AXWindowObjWrapper(); |
+ |
+ // AXAuraObjWrapper overrides. |
+ virtual AXAuraObjWrapper* GetParent() OVERRIDE; |
+ virtual void GetChildren( |
+ std::vector<AXAuraObjWrapper*>* out_children) OVERRIDE; |
+ virtual void Serialize(ui::AXNodeData* out_node_data) OVERRIDE; |
+ virtual int32 GetID() OVERRIDE; |
+ |
+ // WindowObserver overrides. |
+ virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
+ |
+ private: |
+ aura::Window* window_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AXWindowObjWrapper); |
+}; |
+ |
+} // namespace views |
+ |
+#endif // UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_ |