diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-01 19:14:57 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-01 19:14:57 +0200 |
commit | 0cad4bdc905fa30e6b191356ae19615b3f15a574 (patch) | |
tree | eedc5aa76a8596b1cb4953f21002f8a3dcded4a7 /Servers/WindowServer/WSWindowManager.h | |
parent | dcf6726487d17f5fb36803e3b8d74ed75ee4fa53 (diff) | |
download | serenity-0cad4bdc905fa30e6b191356ae19615b3f15a574.zip |
WindowServer: Make various function arguments const.
Diffstat (limited to 'Servers/WindowServer/WSWindowManager.h')
-rw-r--r-- | Servers/WindowServer/WSWindowManager.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Servers/WindowServer/WSWindowManager.h b/Servers/WindowServer/WSWindowManager.h index 84bcb990e6..40bae77754 100644 --- a/Servers/WindowServer/WSWindowManager.h +++ b/Servers/WindowServer/WSWindowManager.h @@ -88,15 +88,15 @@ public: Rect current_cursor_rect() const; private: - void process_mouse_event(WSMouseEvent&, WSWindow*& event_window); - bool process_ongoing_window_resize(WSMouseEvent&, WSWindow*& event_window); - bool process_ongoing_window_drag(WSMouseEvent&, WSWindow*& event_window); - void handle_menu_mouse_event(WSMenu&, WSMouseEvent&); - void handle_menubar_mouse_event(WSMouseEvent&); - void handle_close_button_mouse_event(WSWindow&, WSMouseEvent&); - void start_window_resize(WSWindow&, WSMouseEvent&); - void start_window_drag(WSWindow&, WSMouseEvent&); - void handle_client_request(WSAPIClientRequest&); + void process_mouse_event(const WSMouseEvent&, WSWindow*& event_window); + bool process_ongoing_window_resize(const WSMouseEvent&, WSWindow*& event_window); + bool process_ongoing_window_drag(const WSMouseEvent&, WSWindow*& event_window); + void handle_menu_mouse_event(WSMenu&, const WSMouseEvent&); + void handle_menubar_mouse_event(const WSMouseEvent&); + void handle_close_button_mouse_event(WSWindow&, const WSMouseEvent&); + void start_window_resize(WSWindow&, const WSMouseEvent&); + void start_window_drag(WSWindow&, const WSMouseEvent&); + void handle_client_request(const WSAPIClientRequest&); void set_active_window(WSWindow*); void set_hovered_window(WSWindow*); template<typename Callback> IterationDecision for_each_visible_window_of_type_from_back_to_front(WSWindowType, Callback); @@ -105,9 +105,9 @@ private: template<typename Callback> IterationDecision for_each_visible_window_from_back_to_front(Callback); template<typename Callback> void for_each_active_menubar_menu(Callback); void close_current_menu(); - virtual void on_message(WSMessage&) override; + virtual void on_message(const WSMessage&) override; void compose(); - void paint_window_frame(WSWindow&); + void paint_window_frame(const WSWindow&); void flip_buffers(); void tick_clock(); |