Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
ax_event_intent.h
Go to the documentation of this file.
1// Copyright 2020 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.
4
5#ifndef UI_ACCESSIBILITY_AX_EVENT_INTENT_H_
6#define UI_ACCESSIBILITY_AX_EVENT_INTENT_H_
7
8#include <string>
9
10#include "ax_base_export.h"
11#include "ax_enums.h"
12
13namespace ui {
14
15// Describes what caused an accessibility event to be raised. For example, a
16// character could have been typed, a word replaced, or a line deleted. Or, the
17// selection could have been extended to the beginning of the previous word, or
18// it could have been moved to the end of the next line.
22 ax::mojom::TextBoundary text_boundary,
23 ax::mojom::MoveDirection move_direction);
24 virtual ~AXEventIntent();
27
28 friend AX_BASE_EXPORT bool operator==(const AXEventIntent& a,
29 const AXEventIntent& b);
30 friend AX_BASE_EXPORT bool operator!=(const AXEventIntent& a,
31 const AXEventIntent& b);
32
34 // TODO(nektar): Split TextBoundary into TextUnit and TextBoundary.
37
38 // Returns a string representation of this data, for debugging.
39 std::string ToString() const;
40};
41
42} // namespace ui
43
44#endif // UI_ACCESSIBILITY_AX_EVENT_INTENT_H_
bool operator!=(const sk_sp< T > &a, const sk_sp< U > &b)
Definition SkRefCnt.h:355
#define AX_BASE_EXPORT
bool operator==(const FlutterPoint &a, const FlutterPoint &b)
static bool b
struct MyStruct a[10]
const char * ToString(ax::mojom::Event event)
AXEventIntent(const AXEventIntent &intent)
AXEventIntent & operator=(const AXEventIntent &intent)
virtual ~AXEventIntent()