summaryrefslogtreecommitdiff
path: root/chromium/content/public/browser/ax_event_notification_details.h
blob: 6732cc3c0d5cbff35e19d8fff0ecef8a84d874f8 (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
47
48
49
50
// 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 CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_
#define CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_

#include <vector>

#include "content/common/content_export.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/accessibility/ax_relative_bounds.h"
#include "ui/accessibility/ax_tree_data.h"
#include "ui/accessibility/ax_tree_update.h"

namespace content {

// Use this object in conjunction with the
// |WebContentsObserver::AccessibilityEventReceived| method.
struct CONTENT_EXPORT AXEventNotificationDetails {
 public:
  AXEventNotificationDetails();
  AXEventNotificationDetails(const AXEventNotificationDetails& other);
  ~AXEventNotificationDetails();

  ui::AXTreeUpdate update;
  ax::mojom::Event event_type;
  int id;
  int ax_tree_id;
  ax::mojom::EventFrom event_from;
  int action_request_id;
};

// Use this object in conjunction with the
// |WebContentsObserver::AccessibilityLocationChangeReceived| method.
struct CONTENT_EXPORT AXLocationChangeNotificationDetails {
 public:
  AXLocationChangeNotificationDetails();
  AXLocationChangeNotificationDetails(
      const AXLocationChangeNotificationDetails& other);
  ~AXLocationChangeNotificationDetails();

  int id;
  int ax_tree_id;
  ui::AXRelativeBounds new_location;
};

}  // namespace content

#endif  // CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_