blob: fe6c028874cb391c1a3651451f0f37a3b3b6af0a [file]
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_ACCESSIBILITY_AX_UPDATES_AND_EVENTS_H_
#define UI_ACCESSIBILITY_AX_UPDATES_AND_EVENTS_H_
#include <vector>
#include "ui/accessibility/ax_base_export.h"
#include "ui/accessibility/ax_event.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/accessibility/ax_relative_bounds.h"
#include "ui/accessibility/ax_tree_data.h"
#include "ui/accessibility/ax_tree_update.h"
namespace ui {
struct AX_BASE_EXPORT AXUpdatesAndEvents {
public:
AXUpdatesAndEvents();
AXUpdatesAndEvents(const AXUpdatesAndEvents& other) = delete;
AXUpdatesAndEvents& operator=(
const AXUpdatesAndEvents& other) = delete;
AXUpdatesAndEvents(AXUpdatesAndEvents&& other);
AXUpdatesAndEvents& operator=(AXUpdatesAndEvents&& other);
~AXUpdatesAndEvents();
// The unique ID of the accessibility tree this event bundle applies to.
AXTreeID ax_tree_id;
// Zero or more updates to the accessibility tree to apply first.
std::vector<AXTreeUpdate> updates;
// Zero or more events to fire after the tree updates have been applied.
std::vector<AXEvent> events;
};
} // namespace ui
#endif // UI_ACCESSIBILITY_AX_UPDATES_AND_EVENTS_H_