mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibWeb/HTML: Port Window.screen{X,Y} / Window.screen{Left,Top} to IDL
This commit is contained in:
parent
3d075e55f5
commit
80acf03278
3 changed files with 29 additions and 57 deletions
|
@ -115,9 +115,6 @@ public:
|
|||
|
||||
float device_pixel_ratio() const;
|
||||
|
||||
int screen_x() const;
|
||||
int screen_y() const;
|
||||
|
||||
int outer_width() const;
|
||||
int outer_height() const;
|
||||
|
||||
|
@ -180,6 +177,9 @@ public:
|
|||
void scroll_by(ScrollToOptions);
|
||||
void scroll_by(double x, double y);
|
||||
|
||||
i32 screen_x() const;
|
||||
i32 screen_y() const;
|
||||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<HighResolutionTime::Performance>> performance();
|
||||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Crypto::Crypto>> crypto();
|
||||
|
@ -248,11 +248,6 @@ private:
|
|||
|
||||
JS_DECLARE_NATIVE_FUNCTION(device_pixel_ratio_getter);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(screen_x_getter);
|
||||
JS_DECLARE_NATIVE_FUNCTION(screen_y_getter);
|
||||
JS_DECLARE_NATIVE_FUNCTION(screen_left_getter);
|
||||
JS_DECLARE_NATIVE_FUNCTION(screen_top_getter);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(outer_width_getter);
|
||||
JS_DECLARE_NATIVE_FUNCTION(outer_height_getter);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue