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