ExtensionSyncService: listen for relevant changes instead of being explicitly called...
[chromium-blink-merge.git] / chrome / browser / ui / aura / accessibility / ax_root_obj_wrapper.h
blob57f85dfcea66462d089f4e3f8bb6a27976a68dd0
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_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "ui/views/accessibility/ax_aura_obj_wrapper.h"
13 namespace aura {
14 class Window;
15 } // namespace aura
17 class AXRootObjWrapper : public views::AXAuraObjWrapper {
18 public:
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;
30 void GetChildren(
31 std::vector<views::AXAuraObjWrapper*>* out_children) override;
32 void Serialize(ui::AXNodeData* out_node_data) override;
33 int32 GetID() override;
35 private:
36 int32 id_;
38 aura::Window* alert_window_;
40 DISALLOW_COPY_AND_ASSIGN(AXRootObjWrapper);
43 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_