mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
LibWeb: Move Window from DOM directory & namespace to HTML
The Window object is part of the HTML spec. :^) https://html.spec.whatwg.org/multipage/window-object.html
This commit is contained in:
parent
2dfb617c5b
commit
1422bd45eb
63 changed files with 133 additions and 133 deletions
|
@ -15,16 +15,16 @@ namespace Web::DOM {
|
|||
|
||||
class Timer final : public RefCounted<Timer> {
|
||||
public:
|
||||
static NonnullRefPtr<Timer> create(Window& window, i32 milliseconds, Function<void()> callback, i32 id);
|
||||
static NonnullRefPtr<Timer> create(HTML::Window& window, i32 milliseconds, Function<void()> callback, i32 id);
|
||||
~Timer();
|
||||
|
||||
void start();
|
||||
|
||||
private:
|
||||
Timer(Window& window, i32 milliseconds, Function<void()> callback, i32 id);
|
||||
Timer(HTML::Window& window, i32 milliseconds, Function<void()> callback, i32 id);
|
||||
|
||||
RefPtr<Core::Timer> m_timer;
|
||||
Window& m_window;
|
||||
HTML::Window& m_window;
|
||||
i32 m_id { 0 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue