mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:47:44 +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
|
@ -698,7 +698,7 @@ void BrowserWindow::broadcast_window_position(Gfx::IntPoint position)
|
|||
});
|
||||
}
|
||||
|
||||
void BrowserWindow::broadcast_window_size(Gfx::IntSize const& size)
|
||||
void BrowserWindow::broadcast_window_size(Gfx::IntSize size)
|
||||
{
|
||||
tab_widget().for_each_child_of_type<Browser::Tab>([&](auto& tab) {
|
||||
tab.window_size_changed(size);
|
||||
|
|
|
@ -46,7 +46,7 @@ public:
|
|||
void proxy_mappings_changed();
|
||||
|
||||
void broadcast_window_position(Gfx::IntPoint);
|
||||
void broadcast_window_size(Gfx::IntSize const&);
|
||||
void broadcast_window_size(Gfx::IntSize);
|
||||
|
||||
private:
|
||||
explicit BrowserWindow(CookieJar&, URL);
|
||||
|
|
|
@ -277,7 +277,7 @@ Tab::Tab(BrowserWindow& window)
|
|||
return this->window().position();
|
||||
};
|
||||
|
||||
view().on_resize_window = [this](Gfx::IntSize const& size) {
|
||||
view().on_resize_window = [this](Gfx::IntSize size) {
|
||||
this->window().resize(size);
|
||||
return this->window().size();
|
||||
};
|
||||
|
@ -619,7 +619,7 @@ void Tab::window_position_changed(Gfx::IntPoint position)
|
|||
m_web_content_view->set_window_position(position);
|
||||
}
|
||||
|
||||
void Tab::window_size_changed(Gfx::IntSize const& size)
|
||||
void Tab::window_size_changed(Gfx::IntSize size)
|
||||
{
|
||||
m_web_content_view->set_window_size(size);
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ public:
|
|||
void action_left(GUI::Action&);
|
||||
|
||||
void window_position_changed(Gfx::IntPoint);
|
||||
void window_size_changed(Gfx::IntSize const&);
|
||||
void window_size_changed(Gfx::IntSize);
|
||||
|
||||
Function<void(DeprecatedString const&)> on_title_change;
|
||||
Function<void(const URL&)> on_tab_open_request;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue