mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
LibWeb: Move CallbackType from Bindings/ to WebIDL/
Let's stop putting generic types and AOs from the Web IDL spec into the Bindings namespace and directory in LibWeb, and instead follow our usual naming rules of 'directory = namespace = spec name'. The IDL namespace is already used by LibIDL, so Web::WebIDL seems like a good choice.
This commit is contained in:
parent
dc44effd44
commit
4f73851afc
43 changed files with 168 additions and 165 deletions
|
@ -25,7 +25,7 @@ namespace Web::HTML {
|
|||
class IdleCallback;
|
||||
|
||||
// https://html.spec.whatwg.org/#timerhandler
|
||||
using TimerHandler = Variant<JS::Handle<Bindings::CallbackType>, String>;
|
||||
using TimerHandler = Variant<JS::Handle<WebIDL::CallbackType>, String>;
|
||||
|
||||
class Window final
|
||||
: public DOM::EventTarget
|
||||
|
@ -57,7 +57,7 @@ public:
|
|||
void alert_impl(String const&);
|
||||
bool confirm_impl(String const&);
|
||||
String prompt_impl(String const&, String const&);
|
||||
i32 request_animation_frame_impl(Bindings::CallbackType& js_callback);
|
||||
i32 request_animation_frame_impl(WebIDL::CallbackType& js_callback);
|
||||
void cancel_animation_frame_impl(i32);
|
||||
bool has_animation_frame_callbacks() const { return m_animation_frame_callback_driver.has_callbacks(); }
|
||||
|
||||
|
@ -66,7 +66,7 @@ public:
|
|||
void clear_timeout_impl(i32);
|
||||
void clear_interval_impl(i32);
|
||||
|
||||
void queue_microtask_impl(Bindings::CallbackType& callback);
|
||||
void queue_microtask_impl(WebIDL::CallbackType& callback);
|
||||
|
||||
int inner_width() const;
|
||||
int inner_height() const;
|
||||
|
@ -115,7 +115,7 @@ public:
|
|||
|
||||
void start_an_idle_period();
|
||||
|
||||
u32 request_idle_callback_impl(Bindings::CallbackType& callback);
|
||||
u32 request_idle_callback_impl(WebIDL::CallbackType& callback);
|
||||
void cancel_idle_callback_impl(u32);
|
||||
|
||||
AnimationFrameCallbackDriver& animation_frame_callback_driver() { return m_animation_frame_callback_driver; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue