forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ax_event.h
36 lines (25 loc) · 983 Bytes
/
ax_event.h
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
// Copyright 2018 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_ACCESSIBILITY_AX_EVENT_H_
#define UI_ACCESSIBILITY_AX_EVENT_H_
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/accessibility/ax_export.h"
namespace ui {
struct AX_EXPORT AXEvent {
AXEvent();
virtual ~AXEvent();
// The type of event.
ax::mojom::Event event_type = ax::mojom::Event::kNone;
// The id of the node in the AXTree that the event should be fired on.
int id = -1;
// The source of the event.
ax::mojom::EventFrom event_from = ax::mojom::EventFrom::kNone;
// The action request ID that was passed in if this event was fired in
// direct response to a ax::mojom::Action.
int action_request_id = -1;
// Return a string representation of this data, for debugging.
std::string ToString() const;
};
} // namespace ui
#endif // UI_ACCESSIBILITY_AX_EVENT_H_