mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +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
|
@ -235,7 +235,7 @@ void OutOfProcessWebView::notify_server_did_request_cursor_change(Badge<WebConte
|
|||
set_override_cursor(cursor);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize const& content_size)
|
||||
void OutOfProcessWebView::notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize content_size)
|
||||
{
|
||||
set_content_size(content_size);
|
||||
}
|
||||
|
@ -486,7 +486,7 @@ Gfx::IntPoint OutOfProcessWebView::notify_server_did_request_reposition_window(G
|
|||
return {};
|
||||
}
|
||||
|
||||
Gfx::IntSize OutOfProcessWebView::notify_server_did_request_resize_window(Gfx::IntSize const& size)
|
||||
Gfx::IntSize OutOfProcessWebView::notify_server_did_request_resize_window(Gfx::IntSize size)
|
||||
{
|
||||
if (on_resize_window)
|
||||
return on_resize_window(size);
|
||||
|
@ -653,7 +653,7 @@ void OutOfProcessWebView::set_window_position(Gfx::IntPoint position)
|
|||
client().async_set_window_position(position);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::set_window_size(Gfx::IntSize const& size)
|
||||
void OutOfProcessWebView::set_window_size(Gfx::IntSize size)
|
||||
{
|
||||
client().async_set_window_size(size);
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ public:
|
|||
void connect_to_webdriver(DeprecatedString const& webdriver_ipc_path);
|
||||
|
||||
void set_window_position(Gfx::IntPoint);
|
||||
void set_window_size(Gfx::IntSize const&);
|
||||
void set_window_size(Gfx::IntSize);
|
||||
|
||||
void set_system_visibility_state(bool visible);
|
||||
|
||||
|
@ -107,7 +107,7 @@ public:
|
|||
Function<void(i32 count_waiting)> on_resource_status_change;
|
||||
Function<void()> on_restore_window;
|
||||
Function<Gfx::IntPoint(Gfx::IntPoint)> on_reposition_window;
|
||||
Function<Gfx::IntSize(Gfx::IntSize const&)> on_resize_window;
|
||||
Function<Gfx::IntSize(Gfx::IntSize)> on_resize_window;
|
||||
Function<Gfx::IntRect()> on_maximize_window;
|
||||
Function<Gfx::IntRect()> on_minimize_window;
|
||||
Function<Gfx::IntRect()> on_fullscreen_window;
|
||||
|
@ -136,7 +136,7 @@ private:
|
|||
virtual void did_scroll() override;
|
||||
|
||||
// ^WebView::ViewImplementation
|
||||
virtual void notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize const& content_size) override;
|
||||
virtual void notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize content_size) override;
|
||||
virtual void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id) override;
|
||||
virtual void notify_server_did_invalidate_content_rect(Badge<WebContentClient>, Gfx::IntRect const&) override;
|
||||
virtual void notify_server_did_change_selection(Badge<WebContentClient>) override;
|
||||
|
@ -179,7 +179,7 @@ private:
|
|||
virtual void notify_server_did_update_resource_count(i32 count_waiting) override;
|
||||
virtual void notify_server_did_request_restore_window() override;
|
||||
virtual Gfx::IntPoint notify_server_did_request_reposition_window(Gfx::IntPoint) override;
|
||||
virtual Gfx::IntSize notify_server_did_request_resize_window(Gfx::IntSize const&) override;
|
||||
virtual Gfx::IntSize notify_server_did_request_resize_window(Gfx::IntSize) override;
|
||||
virtual Gfx::IntRect notify_server_did_request_maximize_window() override;
|
||||
virtual Gfx::IntRect notify_server_did_request_minimize_window() override;
|
||||
virtual Gfx::IntRect notify_server_did_request_fullscreen_window() override;
|
||||
|
|
|
@ -18,7 +18,7 @@ class ViewImplementation {
|
|||
public:
|
||||
virtual ~ViewImplementation() { }
|
||||
|
||||
virtual void notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize const& content_size) = 0;
|
||||
virtual void notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize content_size) = 0;
|
||||
virtual void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id) = 0;
|
||||
virtual void notify_server_did_invalidate_content_rect(Badge<WebContentClient>, Gfx::IntRect const&) = 0;
|
||||
virtual void notify_server_did_change_selection(Badge<WebContentClient>) = 0;
|
||||
|
@ -61,7 +61,7 @@ public:
|
|||
virtual void notify_server_did_update_resource_count(i32 count_waiting) = 0;
|
||||
virtual void notify_server_did_request_restore_window() = 0;
|
||||
virtual Gfx::IntPoint notify_server_did_request_reposition_window(Gfx::IntPoint) = 0;
|
||||
virtual Gfx::IntSize notify_server_did_request_resize_window(Gfx::IntSize const&) = 0;
|
||||
virtual Gfx::IntSize notify_server_did_request_resize_window(Gfx::IntSize) = 0;
|
||||
virtual Gfx::IntRect notify_server_did_request_maximize_window() = 0;
|
||||
virtual Gfx::IntRect notify_server_did_request_minimize_window() = 0;
|
||||
virtual Gfx::IntRect notify_server_did_request_fullscreen_window() = 0;
|
||||
|
|
|
@ -71,7 +71,7 @@ void WebContentClient::did_request_cursor_change(i32 cursor_type)
|
|||
m_view.notify_server_did_request_cursor_change({}, (Gfx::StandardCursor)cursor_type);
|
||||
}
|
||||
|
||||
void WebContentClient::did_layout(Gfx::IntSize const& content_size)
|
||||
void WebContentClient::did_layout(Gfx::IntSize content_size)
|
||||
{
|
||||
dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidLayout! content_size={}", content_size);
|
||||
m_view.notify_server_did_layout({}, content_size);
|
||||
|
@ -255,7 +255,7 @@ Messages::WebContentClient::DidRequestRepositionWindowResponse WebContentClient:
|
|||
return m_view.notify_server_did_request_reposition_window(position);
|
||||
}
|
||||
|
||||
Messages::WebContentClient::DidRequestResizeWindowResponse WebContentClient::did_request_resize_window(Gfx::IntSize const& size)
|
||||
Messages::WebContentClient::DidRequestResizeWindowResponse WebContentClient::did_request_resize_window(Gfx::IntSize size)
|
||||
{
|
||||
return m_view.notify_server_did_request_resize_window(size);
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ private:
|
|||
virtual void did_invalidate_content_rect(Gfx::IntRect const&) override;
|
||||
virtual void did_change_selection() override;
|
||||
virtual void did_request_cursor_change(i32) override;
|
||||
virtual void did_layout(Gfx::IntSize const&) override;
|
||||
virtual void did_layout(Gfx::IntSize) override;
|
||||
virtual void did_change_title(DeprecatedString const&) override;
|
||||
virtual void did_request_scroll(i32, i32) override;
|
||||
virtual void did_request_scroll_to(Gfx::IntPoint) override;
|
||||
|
@ -71,7 +71,7 @@ private:
|
|||
virtual void did_update_resource_count(i32 count_waiting) override;
|
||||
virtual void did_request_restore_window() override;
|
||||
virtual Messages::WebContentClient::DidRequestRepositionWindowResponse did_request_reposition_window(Gfx::IntPoint) override;
|
||||
virtual Messages::WebContentClient::DidRequestResizeWindowResponse did_request_resize_window(Gfx::IntSize const&) override;
|
||||
virtual Messages::WebContentClient::DidRequestResizeWindowResponse did_request_resize_window(Gfx::IntSize) override;
|
||||
virtual Messages::WebContentClient::DidRequestMaximizeWindowResponse did_request_maximize_window() override;
|
||||
virtual Messages::WebContentClient::DidRequestMinimizeWindowResponse did_request_minimize_window() override;
|
||||
virtual Messages::WebContentClient::DidRequestFullscreenWindowResponse did_request_fullscreen_window() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue