1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2022 The AccessKit Authors. All rights reserved.
// Licensed under the Apache License, Version 2.0 (found in
// the LICENSE-APACHE file).

use accesskit::{ActionHandler, TreeUpdate};
use winit::{event::WindowEvent, window::Window};

pub type ActionHandlerBox = Box<dyn ActionHandler>;

pub struct Adapter;

impl Adapter {
    pub fn new(
        _window: &Window,
        _source: impl 'static + FnOnce() -> TreeUpdate,
        _action_handler: ActionHandlerBox,
    ) -> Self {
        Self {}
    }

    pub fn update(&self, _update: TreeUpdate) {}

    pub fn update_if_active(&self, _updater: impl FnOnce() -> TreeUpdate) {}

    pub fn process_event(&self, _window: &Window, _event: &WindowEvent) {}
}