forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebContent: Add IPC for setting 'device pixels per CSS pixel'
- Loading branch information
Showing
4 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Copyright (c) 2020-2022, Andreas Kling <[email protected]> | ||
* Copyright (c) 2021, Sam Atkins <[email protected]> | ||
* Copyright (c) 2021-2022, Linus Groh <[email protected]> | ||
* Copyright (c) 2021-2023, Linus Groh <[email protected]> | ||
* Copyright (c) 2022, Tobias Christiansen <[email protected]> | ||
* Copyright (c) 2022, Tim Flynn <[email protected]> | ||
* | ||
|
@@ -530,6 +530,11 @@ void ConnectionFromClient::set_is_scripting_enabled(bool is_scripting_enabled) | |
m_page_host->set_is_scripting_enabled(is_scripting_enabled); | ||
} | ||
|
||
void ConnectionFromClient::set_device_pixels_per_css_pixel(float device_pixels_per_css_pixel) | ||
{ | ||
m_page_host->set_device_pixels_per_css_pixel(device_pixels_per_css_pixel); | ||
} | ||
|
||
void ConnectionFromClient::set_window_position(Gfx::IntPoint position) | ||
{ | ||
m_page_host->set_window_position(position.to_type<Web::DevicePixels>()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (c) 2018-2021, Andreas Kling <[email protected]> | ||
* Copyright (c) 2021-2022, Linus Groh <[email protected]> | ||
* Copyright (c) 2021-2023, Linus Groh <[email protected]> | ||
* Copyright (c) 2022, Tim Flynn <[email protected]> | ||
* | ||
* SPDX-License-Identifier: BSD-2-Clause | ||
|
@@ -76,6 +76,7 @@ class ConnectionFromClient final | |
virtual void set_preferred_color_scheme(Web::CSS::PreferredColorScheme const&) override; | ||
virtual void set_has_focus(bool) override; | ||
virtual void set_is_scripting_enabled(bool) override; | ||
virtual void set_device_pixels_per_css_pixel(float) override; | ||
virtual void set_window_position(Gfx::IntPoint) 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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters