mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
LibWeb/HTML: Port Window.performance to IDL
This commit is contained in:
parent
95ce5735ce
commit
7de9179a6d
5 changed files with 25 additions and 39 deletions
|
@ -96,8 +96,6 @@ public:
|
|||
|
||||
void deallocate_timer_id(Badge<Timer>, i32);
|
||||
|
||||
HighResolutionTime::Performance& performance();
|
||||
|
||||
Crypto::Crypto& crypto() { return *m_crypto; }
|
||||
|
||||
CSS::Screen& screen();
|
||||
|
@ -169,6 +167,8 @@ public:
|
|||
|
||||
Variant<JS::Handle<DOM::Event>, JS::Value> event() const;
|
||||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<HighResolutionTime::Performance>> performance();
|
||||
|
||||
private:
|
||||
explicit Window(JS::Realm&);
|
||||
|
||||
|
@ -231,9 +231,6 @@ public:
|
|||
private:
|
||||
JS_DECLARE_NATIVE_FUNCTION(location_setter);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(performance_getter);
|
||||
JS_DECLARE_NATIVE_FUNCTION(performance_setter);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(screen_getter);
|
||||
JS_DECLARE_NATIVE_FUNCTION(screen_setter);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue