OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_ |
6 #define CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "ui/accessibility/ax_node_data.h" | 11 #include "ui/accessibility/ax_node_data.h" |
12 #include "ui/accessibility/ax_tree_data.h" | 12 #include "ui/accessibility/ax_tree_data.h" |
13 #include "ui/accessibility/ax_tree_update.h" | 13 #include "ui/accessibility/ax_tree_update.h" |
14 | 14 |
| 15 namespace ui { |
| 16 enum AXEvent : int; |
| 17 } |
| 18 |
15 namespace content { | 19 namespace content { |
16 | 20 |
17 // Use this object in conjunction with the | 21 // Use this object in conjunction with the |
18 // |WebContentsObserver::AccessibilityEventReceived| method. | 22 // |WebContentsObserver::AccessibilityEventReceived| method. |
19 struct CONTENT_EXPORT AXEventNotificationDetails { | 23 struct CONTENT_EXPORT AXEventNotificationDetails { |
20 public: | 24 public: |
21 AXEventNotificationDetails(); | 25 AXEventNotificationDetails(); |
22 AXEventNotificationDetails(const AXEventNotificationDetails& other); | 26 AXEventNotificationDetails(const AXEventNotificationDetails& other); |
23 ~AXEventNotificationDetails(); | 27 ~AXEventNotificationDetails(); |
24 | 28 |
25 ui::AXTreeUpdate update; | 29 ui::AXTreeUpdate update; |
26 ui::AXEvent event_type; | 30 ui::AXEvent event_type; |
27 int id; | 31 int id; |
28 int ax_tree_id; | 32 int ax_tree_id; |
29 }; | 33 }; |
30 | 34 |
31 } // namespace content | 35 } // namespace content |
32 | 36 |
33 #endif // CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_ | 37 #endif // CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_ |
OLD | NEW |