mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibGC+Everywhere: Factor out a LibGC from LibJS
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
This commit is contained in:
committed by
Andreas Kling
parent
ce23efc5f6
commit
f87041bf3a
@@ -7,8 +7,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibJS/Heap/GCPtr.h>
|
||||
#include <LibJS/Heap/HeapFunction.h>
|
||||
#include <LibGC/Function.h>
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Platform {
|
||||
@@ -20,9 +20,9 @@ public:
|
||||
|
||||
virtual ~EventLoopPlugin();
|
||||
|
||||
virtual void spin_until(JS::Handle<JS::HeapFunction<bool()>> goal_condition) = 0;
|
||||
virtual void deferred_invoke(ESCAPING JS::Handle<JS::HeapFunction<void()>>) = 0;
|
||||
virtual JS::NonnullGCPtr<Timer> create_timer(JS::Heap&) = 0;
|
||||
virtual void spin_until(GC::Root<GC::Function<bool()>> goal_condition) = 0;
|
||||
virtual void deferred_invoke(ESCAPING GC::Root<GC::Function<void()>>) = 0;
|
||||
virtual GC::Ref<Timer> create_timer(GC::Heap&) = 0;
|
||||
virtual void quit() = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user