19 #ifndef MIR_GRAPHICS_NESTED_MIR_CLIENT_HOST_CONNECTION_H_ 20 #define MIR_GRAPHICS_NESTED_MIR_CLIENT_HOST_CONNECTION_H_ 35 class ServerActionQueue;
42 class InputDeviceObserver;
57 std::shared_ptr<msh::HostLifecycleEventListener>
const& host_lifecycle_event_listener,
58 std::shared_ptr<frontend::EventSink>
const& sink,
59 std::shared_ptr<ServerActionQueue>
const& observer_queue);
62 std::vector<int> platform_fd_items()
override;
63 EGLNativeDisplayType egl_native_display()
override;
64 std::shared_ptr<MirDisplayConfiguration> create_display_config()
override;
65 std::shared_ptr<HostSurface> create_surface(
68 void set_display_config_change_callback(std::function<
void()>
const& cb)
override;
71 void set_cursor_image(
CursorImage const& image)
override;
72 void hide_cursor()
override;
73 auto graphics_platform_library() ->
std::string override;
79 void add_observer(std::shared_ptr<input::InputDeviceObserver>
const&)
override;
80 void remove_observer(std::weak_ptr<input::InputDeviceObserver>
const&)
override;
81 void for_each_input_device(std::function<
void(
input::Device const& device)>
const& callback)
override;
84 void update_input_devices();
85 std::mutex surfaces_mutex;
88 std::function<void()> conf_change_callback;
89 std::shared_ptr<msh::HostLifecycleEventListener>
const host_lifecycle_event_listener;
91 std::vector<HostSurface*> surfaces;
93 std::shared_ptr<frontend::EventSink>
const sink;
94 std::shared_ptr<mir::ServerActionQueue>
const observer_queue;
95 std::vector<std::shared_ptr<input::InputDeviceObserver>> observers;
96 std::mutex devices_guard;
97 std::vector<std::shared_ptr<input::Device>> devices;
All things Mir.
Definition: atomic_callback.h:25
Definition: client_types.h:347
Definition: default_server_configuration.h:69
Definition: mir_client_host_connection.h:52
Definition: host_connection.h:40
Definition: cursor_image.h:30
std::unique_ptr< MirInputConfig, void(*)(MirInputConfig const *)> UniqueInputConfig
Definition: mir_client_host_connection.h:50
unsigned int width
Definition: touchspot_image.c:4
unsigned int height
Definition: touchspot_image.c:5
Definition: mir_connection.h:96