mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Define window.outerWidth and window.outerHeight
This commit is contained in:
parent
8cc1997f33
commit
5eeb6bbee3
Notes:
sideshowbarker
2024-07-17 04:53:40 +09:00
Author: https://github.com/trflynn89
Commit: 5eeb6bbee3
Pull-request: https://github.com/SerenityOS/serenity/pull/15883
Reviewed-by: https://github.com/linusg ✅
2 changed files with 39 additions and 0 deletions
|
@ -108,6 +108,9 @@ public:
|
|||
int screen_x() const;
|
||||
int screen_y() const;
|
||||
|
||||
int outer_width() const;
|
||||
int outer_height() const;
|
||||
|
||||
JS::NonnullGCPtr<HTML::Storage> local_storage();
|
||||
JS::NonnullGCPtr<HTML::Storage> session_storage();
|
||||
|
||||
|
@ -233,6 +236,9 @@ private:
|
|||
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);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(post_message);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(local_storage_getter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue