summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/ClientConnection.h
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-02 19:54:34 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-03 21:14:06 +0200
commit065040872f62f608374da6709502033720442882 (patch)
treec9e974c1d32837df87ad334515a1535113fdc756 /Userland/Services/WindowServer/ClientConnection.h
parentd47f15ab8b8ff545864fed2a0e275674c1431549 (diff)
downloadserenity-065040872f62f608374da6709502033720442882.zip
Userland: Change IPC funcs to use plain arguments instead of a struct
Instead of having a single overloaded handle method each method gets its own unique method name now.
Diffstat (limited to 'Userland/Services/WindowServer/ClientConnection.h')
-rw-r--r--Userland/Services/WindowServer/ClientConnection.h124
1 files changed, 63 insertions, 61 deletions
diff --git a/Userland/Services/WindowServer/ClientConnection.h b/Userland/Services/WindowServer/ClientConnection.h
index 7162ac0ebf..d04cf2f309 100644
--- a/Userland/Services/WindowServer/ClientConnection.h
+++ b/Userland/Services/WindowServer/ClientConnection.h
@@ -87,67 +87,69 @@ private:
void set_unresponsive(bool);
void destroy_window(Window&, Vector<i32>& destroyed_window_ids);
- virtual Messages::WindowServer::GreetResponse handle(const Messages::WindowServer::Greet&) override;
- virtual Messages::WindowServer::CreateMenubarResponse handle(const Messages::WindowServer::CreateMenubar&) override;
- virtual void handle(const Messages::WindowServer::DestroyMenubar&) override;
- virtual Messages::WindowServer::CreateMenuResponse handle(const Messages::WindowServer::CreateMenu&) override;
- virtual void handle(const Messages::WindowServer::DestroyMenu&) override;
- virtual void handle(const Messages::WindowServer::AddMenuToMenubar&) override;
- virtual void handle(const Messages::WindowServer::SetWindowMenubar&) override;
- virtual void handle(const Messages::WindowServer::AddMenuItem&) override;
- virtual void handle(const Messages::WindowServer::AddMenuSeparator&) override;
- virtual void handle(const Messages::WindowServer::UpdateMenuItem&) override;
- virtual Messages::WindowServer::CreateWindowResponse handle(const Messages::WindowServer::CreateWindow&) override;
- virtual Messages::WindowServer::DestroyWindowResponse handle(const Messages::WindowServer::DestroyWindow&) override;
- virtual void handle(const Messages::WindowServer::SetWindowTitle&) override;
- virtual Messages::WindowServer::GetWindowTitleResponse handle(const Messages::WindowServer::GetWindowTitle&) override;
- virtual Messages::WindowServer::IsMaximizedResponse handle(const Messages::WindowServer::IsMaximized&) override;
- virtual void handle(const Messages::WindowServer::StartWindowResize&) override;
- virtual Messages::WindowServer::SetWindowRectResponse handle(const Messages::WindowServer::SetWindowRect&) override;
- virtual Messages::WindowServer::GetWindowRectResponse handle(const Messages::WindowServer::GetWindowRect&) override;
- virtual void handle(const Messages::WindowServer::SetWindowMinimumSize&) override;
- virtual Messages::WindowServer::GetWindowMinimumSizeResponse handle(const Messages::WindowServer::GetWindowMinimumSize&) override;
- virtual Messages::WindowServer::GetAppletRectOnScreenResponse handle(const Messages::WindowServer::GetAppletRectOnScreen&) override;
- virtual void handle(const Messages::WindowServer::InvalidateRect&) override;
- virtual void handle(const Messages::WindowServer::DidFinishPainting&) override;
- virtual void handle(const Messages::WindowServer::SetGlobalCursorTracking&) override;
- virtual void handle(const Messages::WindowServer::SetWindowOpacity&) override;
- virtual void handle(const Messages::WindowServer::SetWindowBackingStore&) override;
- virtual void handle(const Messages::WindowServer::SetWindowHasAlphaChannel&) override;
- virtual void handle(const Messages::WindowServer::SetWindowAlphaHitThreshold&) override;
- virtual void handle(const Messages::WindowServer::MoveWindowToFront&) override;
- virtual void handle(const Messages::WindowServer::SetFullscreen&) override;
- virtual void handle(const Messages::WindowServer::SetFrameless&) override;
- virtual void handle(const Messages::WindowServer::AsyncSetWallpaper&) override;
- virtual void handle(const Messages::WindowServer::SetBackgroundColor&) override;
- virtual void handle(const Messages::WindowServer::SetWallpaperMode&) override;
- virtual Messages::WindowServer::GetWallpaperResponse handle(const Messages::WindowServer::GetWallpaper&) override;
- virtual Messages::WindowServer::SetResolutionResponse handle(const Messages::WindowServer::SetResolution&) override;
- virtual void handle(const Messages::WindowServer::SetWindowCursor&) override;
- virtual void handle(const Messages::WindowServer::SetWindowCustomCursor&) override;
- virtual void handle(const Messages::WindowServer::PopupMenu&) override;
- virtual void handle(const Messages::WindowServer::DismissMenu&) override;
- virtual void handle(const Messages::WindowServer::SetWindowIconBitmap&) override;
- virtual Messages::WindowServer::StartDragResponse handle(const Messages::WindowServer::StartDrag&) override;
- virtual Messages::WindowServer::SetSystemThemeResponse handle(const Messages::WindowServer::SetSystemTheme&) override;
- virtual Messages::WindowServer::GetSystemThemeResponse handle(const Messages::WindowServer::GetSystemTheme&) override;
- virtual void handle(const Messages::WindowServer::SetWindowBaseSizeAndSizeIncrement&) override;
- virtual void handle(const Messages::WindowServer::SetWindowResizeAspectRatio&) override;
- virtual void handle(const Messages::WindowServer::EnableDisplayLink&) override;
- virtual void handle(const Messages::WindowServer::DisableDisplayLink&) override;
- virtual void handle(const Messages::WindowServer::SetWindowProgress&) override;
- virtual void handle(const Messages::WindowServer::RefreshSystemTheme&) override;
- virtual void handle(const Messages::WindowServer::Pong&) override;
- virtual Messages::WindowServer::GetGlobalCursorPositionResponse handle(const Messages::WindowServer::GetGlobalCursorPosition&) override;
- virtual void handle(const Messages::WindowServer::SetMouseAcceleration&) override;
- virtual Messages::WindowServer::GetMouseAccelerationResponse handle(const Messages::WindowServer::GetMouseAcceleration&) override;
- virtual void handle(const Messages::WindowServer::SetScrollStepSize&) override;
- virtual Messages::WindowServer::GetScrollStepSizeResponse handle(const Messages::WindowServer::GetScrollStepSize&) override;
- virtual Messages::WindowServer::GetScreenBitmapResponse handle(const Messages::WindowServer::GetScreenBitmap&) override;
- virtual void handle(const Messages::WindowServer::SetDoubleClickSpeed&) override;
- virtual Messages::WindowServer::GetDoubleClickSpeedResponse handle(const Messages::WindowServer::GetDoubleClickSpeed&) override;
- virtual void handle(Messages::WindowServer::SetWindowModified const&) override;
- virtual Messages::WindowServer::IsWindowModifiedResponse handle(Messages::WindowServer::IsWindowModified const&) override;
+ virtual Messages::WindowServer::GreetResponse greet() override;
+ virtual Messages::WindowServer::CreateMenubarResponse create_menubar() override;
+ virtual void destroy_menubar(i32) override;
+ virtual Messages::WindowServer::CreateMenuResponse create_menu(String const&) override;
+ virtual void destroy_menu(i32) override;
+ virtual void add_menu_to_menubar(i32, i32) override;
+ virtual void set_window_menubar(i32, i32) override;
+ virtual void add_menu_item(i32, i32, i32, String const&, bool, bool, bool, bool, String const&, Gfx::ShareableBitmap const&, bool) override;
+ virtual void add_menu_separator(i32) override;
+ virtual void update_menu_item(i32, i32, i32, String const&, bool, bool, bool, bool, String const&) override;
+ virtual Messages::WindowServer::CreateWindowResponse create_window(Gfx::IntRect const&, bool, bool, bool,
+ bool, bool, bool, bool, bool, float, float, Gfx::IntSize const&, Gfx::IntSize const&, Gfx::IntSize const&,
+ Optional<Gfx::IntSize> const&, i32, String const&, i32) override;
+ virtual Messages::WindowServer::DestroyWindowResponse destroy_window(i32) override;
+ virtual void set_window_title(i32, String const&) override;
+ virtual Messages::WindowServer::GetWindowTitleResponse get_window_title(i32) override;
+ virtual Messages::WindowServer::IsMaximizedResponse is_maximized(i32) override;
+ virtual void start_window_resize(i32) override;
+ virtual Messages::WindowServer::SetWindowRectResponse set_window_rect(i32, Gfx::IntRect const&) override;
+ virtual Messages::WindowServer::GetWindowRectResponse get_window_rect(i32) override;
+ virtual void set_window_minimum_size(i32, Gfx::IntSize const&) override;
+ virtual Messages::WindowServer::GetWindowMinimumSizeResponse get_window_minimum_size(i32) override;
+ virtual Messages::WindowServer::GetAppletRectOnScreenResponse get_applet_rect_on_screen(i32) override;
+ virtual void invalidate_rect(i32, Vector<Gfx::IntRect> const&, bool) override;
+ virtual void did_finish_painting(i32, Vector<Gfx::IntRect> const&) override;
+ virtual void set_global_cursor_tracking(i32, bool) override;
+ virtual void set_window_opacity(i32, float) override;
+ virtual void set_window_backing_store(i32, i32, i32, IPC::File const&, i32, bool, Gfx::IntSize const&, bool) override;
+ virtual void set_window_has_alpha_channel(i32, bool) override;
+ virtual void set_window_alpha_hit_threshold(i32, float) override;
+ virtual void move_window_to_front(i32) override;
+ virtual void set_fullscreen(i32, bool) override;
+ virtual void set_frameless(i32, bool) override;
+ virtual void async_set_wallpaper(String const&) override;
+ virtual void set_background_color(String const&) override;
+ virtual void set_wallpaper_mode(String const&) override;
+ virtual Messages::WindowServer::GetWallpaperResponse get_wallpaper() override;
+ virtual Messages::WindowServer::SetResolutionResponse set_resolution(Gfx::IntSize const&, int) override;
+ virtual void set_window_cursor(i32, i32) override;
+ virtual void set_window_custom_cursor(i32, Gfx::ShareableBitmap const&) override;
+ virtual void popup_menu(i32, Gfx::IntPoint const&) override;
+ virtual void dismiss_menu(i32) override;
+ virtual void set_window_icon_bitmap(i32, Gfx::ShareableBitmap const&) override;
+ virtual Messages::WindowServer::StartDragResponse start_drag(String const&, HashMap<String, ByteBuffer> const&, Gfx::ShareableBitmap const&) override;
+ virtual Messages::WindowServer::SetSystemThemeResponse set_system_theme(String const&, String const&) override;
+ virtual Messages::WindowServer::GetSystemThemeResponse get_system_theme() override;
+ virtual void set_window_base_size_and_size_increment(i32, Gfx::IntSize const&, Gfx::IntSize const&) override;
+ virtual void set_window_resize_aspect_ratio(i32, Optional<Gfx::IntSize> const&) override;
+ virtual void enable_display_link() override;
+ virtual void disable_display_link() override;
+ virtual void set_window_progress(i32, Optional<i32> const&) override;
+ virtual void refresh_system_theme() override;
+ virtual void pong() override;
+ virtual Messages::WindowServer::GetGlobalCursorPositionResponse get_global_cursor_position() override;
+ virtual void set_mouse_acceleration(float) override;
+ virtual Messages::WindowServer::GetMouseAccelerationResponse get_mouse_acceleration() override;
+ virtual void set_scroll_step_size(u32) override;
+ virtual Messages::WindowServer::GetScrollStepSizeResponse get_scroll_step_size() override;
+ virtual Messages::WindowServer::GetScreenBitmapResponse get_screen_bitmap() override;
+ virtual void set_double_click_speed(i32) override;
+ virtual Messages::WindowServer::GetDoubleClickSpeedResponse get_double_click_speed() override;
+ virtual void set_window_modified(i32, bool) override;
+ virtual Messages::WindowServer::IsWindowModifiedResponse is_window_modified(i32) override;
Window* window_from_id(i32 window_id);