Chromium Code Reviews| Index: ui/views/accessibility/ax_view_obj_wrapper.h |
| diff --git a/ui/views/accessibility/ax_view_obj_wrapper.h b/ui/views/accessibility/ax_view_obj_wrapper.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a000b24dfde790bc5b1d10d923190b8a5c960c9a |
| --- /dev/null |
| +++ b/ui/views/accessibility/ax_view_obj_wrapper.h |
| @@ -0,0 +1,33 @@ |
| +// 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_VIEW_OBJ_WRAPPER_H_ |
| +#define UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_ |
| + |
| +#include "ui/views/accessibility/ax_aura_obj_wrapper.h" |
| + |
| +namespace views { |
| + |
| +class View; |
| + |
| +class AXViewObjWrapper : public AXAuraObjWrapper { |
| + public: |
| + explicit AXViewObjWrapper(View* view) : view_(view) {} |
|
dmazzoni
2014/04/25 06:13:59
I wonder if creating a View object wrapper should:
David Tseng
2014/04/25 22:47:29
Done.
|
| + virtual ~AXViewObjWrapper() {} |
| + |
| + 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; |
| + |
| + private: |
| + View* view_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AXViewObjWrapper); |
| +}; |
| + |
| +} // namespace views |
| + |
| +#endif // UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_ |