blob: 6d2dbcd9e06d2f745f8ddcfa7df9d3787b063b19 [file] [log] [blame]
// 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 CHROMECAST_BROWSER_UI_AURA_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_
#define CHROMECAST_BROWSER_UI_AURA_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_
#include <stdint.h>
#include <string>
#include "base/macros.h"
#include "ui/accessibility/platform/ax_unique_id.h"
#include "ui/views/accessibility/ax_aura_obj_wrapper.h"
namespace aura {
class Window;
} // namespace aura
class AXRootObjWrapper : public views::AXAuraObjWrapper {
public:
AXRootObjWrapper();
~AXRootObjWrapper() override;
// Returns an AXAuraObjWrapper for an alert window with title set to |text|.
views::AXAuraObjWrapper* GetAlertForText(const std::string& text);
// Convenience method to check for existence of a child.
bool HasChild(views::AXAuraObjWrapper* child);
// views::AXAuraObjWrapper overrides.
bool IsIgnored() override;
views::AXAuraObjWrapper* GetParent() override;
void GetChildren(
std::vector<views::AXAuraObjWrapper*>* out_children) override;
void Serialize(ui::AXNodeData* out_node_data) override;
const ui::AXUniqueId& GetUniqueId() const override;
private:
ui::AXUniqueId unique_id_;
aura::Window* alert_window_;
DISALLOW_COPY_AND_ASSIGN(AXRootObjWrapper);
};
#endif // CHROMECAST_BROWSER_UI_AURA_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_