blob: 7257c7be5cf395a7d12e212ae2fc314458980fdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// 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_AURA_OBJ_WRAPPER_H_
#define UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_
#include <stdint.h>
#include <vector>
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "ui/gfx/geometry/point.h"
#include "ui/views/views_export.h"
namespace ui {
struct AXNodeData;
} // namespace ui
namespace views {
// An interface abstraction for Aura views that exposes the view-tree formed
// by the implementing view types.
class VIEWS_EXPORT AXAuraObjWrapper {
public:
virtual ~AXAuraObjWrapper() {}
// Traversal and serialization.
virtual AXAuraObjWrapper* GetParent() = 0;
virtual void GetChildren(
std::vector<AXAuraObjWrapper*>* out_children) = 0;
virtual void Serialize(ui::AXNodeData* out_node_data) = 0;
virtual int32_t GetID() = 0;
// Actions.
virtual void DoDefault() {}
virtual void Focus() {}
virtual void MakeVisible() {}
virtual void SetSelection(int32_t start, int32_t end) {}
virtual void ShowContextMenu() {}
};
} // namespace views
#endif // UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_
|