mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-23 18:51:55 +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:
parent
ce23efc5f6
commit
f87041bf3a
Notes:
github-actions[bot]
2024-11-15 13:50:17 +00:00
Author: https://github.com/shannonbooth
Commit: f87041bf3a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2345
1722 changed files with 9939 additions and 9906 deletions
|
@ -34,11 +34,11 @@ ENUMERATE_DATA_TRANSFER_EFFECTS
|
|||
// https://html.spec.whatwg.org/multipage/dnd.html#the-datatransfer-interface
|
||||
class DataTransfer : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(DataTransfer, Bindings::PlatformObject);
|
||||
JS_DECLARE_ALLOCATOR(DataTransfer);
|
||||
GC_DECLARE_ALLOCATOR(DataTransfer);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<DataTransfer> create(JS::Realm&, NonnullRefPtr<DragDataStore>);
|
||||
static JS::NonnullGCPtr<DataTransfer> construct_impl(JS::Realm&);
|
||||
static GC::Ref<DataTransfer> create(JS::Realm&, NonnullRefPtr<DragDataStore>);
|
||||
static GC::Ref<DataTransfer> construct_impl(JS::Realm&);
|
||||
virtual ~DataTransfer() override;
|
||||
|
||||
FlyString const& drop_effect() const { return m_drop_effect; }
|
||||
|
@ -50,18 +50,18 @@ public:
|
|||
void set_effect_allowed(FlyString);
|
||||
void set_effect_allowed_internal(FlyString);
|
||||
|
||||
JS::NonnullGCPtr<DataTransferItemList> items();
|
||||
GC::Ref<DataTransferItemList> items();
|
||||
|
||||
ReadonlySpan<String> types() const;
|
||||
String get_data(String const& format) const;
|
||||
JS::NonnullGCPtr<FileAPI::FileList> files() const;
|
||||
GC::Ref<FileAPI::FileList> files() const;
|
||||
|
||||
Optional<DragDataStore::Mode> mode() const;
|
||||
void disassociate_with_drag_data_store();
|
||||
|
||||
JS::NonnullGCPtr<DataTransferItem> add_item(DragDataStoreItem item);
|
||||
GC::Ref<DataTransferItem> add_item(DragDataStoreItem item);
|
||||
bool contains_item_with_type(DragDataStoreItem::Kind, String const& type) const;
|
||||
JS::NonnullGCPtr<DataTransferItem> item(size_t index) const;
|
||||
GC::Ref<DataTransferItem> item(size_t index) const;
|
||||
DragDataStoreItem const& drag_data(size_t index) const;
|
||||
size_t length() const;
|
||||
|
||||
|
@ -80,8 +80,8 @@ private:
|
|||
FlyString m_effect_allowed { DataTransferEffect::none };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransfer-items
|
||||
JS::GCPtr<DataTransferItemList> m_items;
|
||||
Vector<JS::NonnullGCPtr<DataTransferItem>> m_item_list;
|
||||
GC::Ptr<DataTransferItemList> m_items;
|
||||
Vector<GC::Ref<DataTransferItem>> m_item_list;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dnd.html#concept-datatransfer-types
|
||||
Vector<String> m_types;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue