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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_
6 #define CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_
10 #include "base/basictypes.h"
11 #include "ui/views/accessibility/ax_aura_obj_wrapper.h"
17 class AXRootObjWrapper
: public views::AXAuraObjWrapper
{
19 explicit AXRootObjWrapper(int32 id
);
20 ~AXRootObjWrapper() override
;
22 // Returns an AXAuraObjWrapper for an alert window with title set to |text|.
23 views::AXAuraObjWrapper
* GetAlertForText(const std::string
& text
);
25 // Convenience method to check for existence of a child.
26 bool HasChild(views::AXAuraObjWrapper
* child
);
28 // views::AXAuraObjWrapper overrides.
29 views::AXAuraObjWrapper
* GetParent() override
;
31 std::vector
<views::AXAuraObjWrapper
*>* out_children
) override
;
32 void Serialize(ui::AXNodeData
* out_node_data
) override
;
33 int32
GetID() override
;
38 aura::Window
* alert_window_
;
40 DISALLOW_COPY_AND_ASSIGN(AXRootObjWrapper
);
43 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_