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