Home | History | Annotate | Download | only in browser
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_
      6 #define CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_
      7 
      8 #include <vector>
      9 
     10 #include "content/common/content_export.h"
     11 #include "ui/accessibility/ax_enums.h"
     12 #include "ui/accessibility/ax_node_data.h"
     13 
     14 namespace content {
     15 
     16 // Use this object in conjunction with the
     17 // |WebContentsObserver::AccessibilityEventReceived| method.
     18 struct CONTENT_EXPORT AXEventNotificationDetails {
     19  public:
     20   AXEventNotificationDetails(const std::vector<ui::AXNodeData>& nodes,
     21                              ui::AXEvent event_type,
     22                              int id,
     23                              int process_id,
     24                              int routing_id);
     25 
     26   ~AXEventNotificationDetails();
     27 
     28   std::vector<ui::AXNodeData> nodes;
     29   ui::AXEvent event_type;
     30   int id;
     31   int process_id;
     32   int routing_id;
     33 };
     34 
     35 }  // namespace content
     36 
     37 #endif  // CONTENT_PUBLIC_BROWSER_AX_EVENT_NOTIFICATION_DETAILS_H_
     38