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