mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
Meta+Userland: Pass Gfx::IntSize by value
Just two ints like Gfx::IntPoint.
This commit is contained in:
parent
e011eafd37
commit
27fae78335
63 changed files with 142 additions and 142 deletions
|
@ -535,7 +535,7 @@ void ConnectionFromClient::set_window_position(Gfx::IntPoint position)
|
|||
m_page_host->set_window_position(position);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_window_size(Gfx::IntSize const& size)
|
||||
void ConnectionFromClient::set_window_size(Gfx::IntSize size)
|
||||
{
|
||||
m_page_host->set_window_size(size);
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ private:
|
|||
virtual void set_has_focus(bool) override;
|
||||
virtual void set_is_scripting_enabled(bool) override;
|
||||
virtual void set_window_position(Gfx::IntPoint) override;
|
||||
virtual void set_window_size(Gfx::IntSize const&) override;
|
||||
virtual void set_window_size(Gfx::IntSize) override;
|
||||
virtual void handle_file_return(i32 error, Optional<IPC::File> const& file, i32 request_id) override;
|
||||
virtual void set_system_visibility_state(bool visible) override;
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ void PageHost::set_window_position(Gfx::IntPoint position)
|
|||
page().set_window_position(position);
|
||||
}
|
||||
|
||||
void PageHost::set_window_size(Gfx::IntSize const& size)
|
||||
void PageHost::set_window_size(Gfx::IntSize size)
|
||||
{
|
||||
page().set_window_size(size);
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ void PageHost::page_did_request_refresh()
|
|||
m_client.async_did_request_refresh();
|
||||
}
|
||||
|
||||
Gfx::IntSize PageHost::page_did_request_resize_window(Gfx::IntSize const& size)
|
||||
Gfx::IntSize PageHost::page_did_request_resize_window(Gfx::IntSize size)
|
||||
{
|
||||
return m_client.did_request_resize_window(size);
|
||||
}
|
||||
|
|
|
@ -36,9 +36,9 @@ public:
|
|||
void set_has_focus(bool);
|
||||
void set_is_scripting_enabled(bool);
|
||||
void set_window_position(Gfx::IntPoint);
|
||||
void set_window_size(Gfx::IntSize const&);
|
||||
void set_window_size(Gfx::IntSize);
|
||||
|
||||
Gfx::IntSize const& content_size() const { return m_content_size; }
|
||||
Gfx::IntSize content_size() const { return m_content_size; }
|
||||
|
||||
ErrorOr<void> connect_to_webdriver(DeprecatedString const& webdriver_ipc_path);
|
||||
|
||||
|
@ -60,7 +60,7 @@ private:
|
|||
virtual void page_did_request_navigate_back() override;
|
||||
virtual void page_did_request_navigate_forward() override;
|
||||
virtual void page_did_request_refresh() override;
|
||||
virtual Gfx::IntSize page_did_request_resize_window(Gfx::IntSize const&) override;
|
||||
virtual Gfx::IntSize page_did_request_resize_window(Gfx::IntSize) override;
|
||||
virtual Gfx::IntPoint page_did_request_reposition_window(Gfx::IntPoint) override;
|
||||
virtual void page_did_request_restore_window() override;
|
||||
virtual Gfx::IntRect page_did_request_maximize_window() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue