| 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 "ui/accessibility/ax_enums.h" | 10 #include "ui/accessibility/ax_enums.h" |
| 11 #include "ui/accessibility/ax_node_data.h" | 11 #include "ui/accessibility/ax_node_data.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 // Use this object in conjunction with the | 15 // Use this object in conjunction with the |
| 16 // |WebContentsObserver::AccessibilityEventReceived| method. | 16 // |WebContentsObserver::AccessibilityEventReceived| method. |
| 17 struct AXEventNotificationDetails { | 17 struct AXEventNotificationDetails { |
| 18 public: | 18 public: |
| 19 AXEventNotificationDetails(const std::vector<ui::AXNodeData>& nodes, | 19 AXEventNotificationDetails(const std::vector<ui::AXNodeData>& nodes, |
| 20 ui::AXEvent event_type, | 20 ui::AXEvent event_type, |
| 21 int id, | 21 int id, |
| 22 int process_id, |
| 22 int routing_id); | 23 int routing_id); |
| 23 | 24 |
| 24 ~AXEventNotificationDetails(); | 25 ~AXEventNotificationDetails(); |
| 25 | 26 |
| 26 std::vector<ui::AXNodeData> nodes; | 27 std::vector<ui::AXNodeData> nodes; |
| 27 ui::AXEvent event_type; | 28 ui::AXEvent event_type; |
| 28 int id; | 29 int id; |
| 30 int process_id; |
| 29 int routing_id; | 31 int routing_id; |
| 30 }; | 32 }; |
| 31 | 33 |
| 32 } // namespace content | 34 } // namespace content |
| 33 | 35 |
| 34 #endif // CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_ | 36 #endif // CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_ |
| OLD | NEW |