accesskit_atspi_common/
callback.rs

1// Copyright 2023 The AccessKit Authors. All rights reserved.
2// Licensed under the Apache License, Version 2.0 (found in
3// the LICENSE-APACHE file) or the MIT license (found in
4// the LICENSE-MIT file), at your option.
5
6use accesskit::NodeId;
7use atspi_common::InterfaceSet;
8
9use crate::{Adapter, Event};
10
11pub trait AdapterCallback {
12    fn register_interfaces(&self, adapter: &Adapter, id: NodeId, interfaces: InterfaceSet);
13    fn unregister_interfaces(&self, adapter: &Adapter, id: NodeId, interfaces: InterfaceSet);
14    fn emit_event(&self, adapter: &Adapter, event: Event);
15}