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_relative_bounds.h" | 12 #include "ui/accessibility/ax_relative_bounds.h" |
13 #include "ui/accessibility/ax_tree_data.h" | 13 #include "ui/accessibility/ax_tree_data.h" |
14 #include "ui/accessibility/ax_tree_update.h" | 14 #include "ui/accessibility/ax_tree_update.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 // Use this object in conjunction with the | 18 // Use this object in conjunction with the |
19 // |WebContentsObserver::AccessibilityEventReceived| method. | 19 // |WebContentsObserver::AccessibilityEventReceived| method. |
20 struct CONTENT_EXPORT AXEventNotificationDetails { | 20 struct CONTENT_EXPORT AXEventNotificationDetails { |
21 public: | 21 public: |
22 AXEventNotificationDetails(); | 22 AXEventNotificationDetails(); |
23 AXEventNotificationDetails(const AXEventNotificationDetails& other); | 23 AXEventNotificationDetails(const AXEventNotificationDetails& other); |
24 ~AXEventNotificationDetails(); | 24 ~AXEventNotificationDetails(); |
25 | 25 |
26 ui::AXTreeUpdate update; | 26 ui::AXTreeUpdate update; |
27 ui::AXEvent event_type; | 27 ui::AXEvent event_type; |
28 int id; | 28 int id; |
29 int ax_tree_id; | 29 int ax_tree_id; |
| 30 ui::AXEventFrom event_from; |
30 }; | 31 }; |
31 | 32 |
32 // Use this object in conjunction with the | 33 // Use this object in conjunction with the |
33 // |WebContentsObserver::AccessibilityLocationChangeReceived| method. | 34 // |WebContentsObserver::AccessibilityLocationChangeReceived| method. |
34 struct CONTENT_EXPORT AXLocationChangeNotificationDetails { | 35 struct CONTENT_EXPORT AXLocationChangeNotificationDetails { |
35 public: | 36 public: |
36 AXLocationChangeNotificationDetails(); | 37 AXLocationChangeNotificationDetails(); |
37 AXLocationChangeNotificationDetails( | 38 AXLocationChangeNotificationDetails( |
38 const AXLocationChangeNotificationDetails& other); | 39 const AXLocationChangeNotificationDetails& other); |
39 ~AXLocationChangeNotificationDetails(); | 40 ~AXLocationChangeNotificationDetails(); |
40 | 41 |
41 int id; | 42 int id; |
42 int ax_tree_id; | 43 int ax_tree_id; |
43 ui::AXRelativeBounds new_location; | 44 ui::AXRelativeBounds new_location; |
44 }; | 45 }; |
45 | 46 |
46 } // namespace content | 47 } // namespace content |
47 | 48 |
48 #endif // CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_ | 49 #endif // CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_ |
OLD | NEW |