mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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
|
@ -6,8 +6,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibJS/Heap/GCPtr.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/DragDataStore.h>
|
||||
#include <LibWeb/Page/EventResult.h>
|
||||
|
@ -22,7 +22,7 @@ public:
|
|||
bool has_ongoing_drag_and_drop_operation() const { return !m_drag_data_store.is_null(); }
|
||||
|
||||
EventResult handle_drag_start(JS::Realm&, CSSPixelPoint screen_position, CSSPixelPoint page_offset, CSSPixelPoint client_offset, CSSPixelPoint offset, unsigned button, unsigned buttons, unsigned modifiers, Vector<HTML::SelectedFile> files);
|
||||
EventResult handle_drag_move(JS::Realm&, JS::NonnullGCPtr<DOM::Document>, JS::NonnullGCPtr<DOM::Node>, CSSPixelPoint screen_position, CSSPixelPoint page_offset, CSSPixelPoint client_offset, CSSPixelPoint offset, unsigned button, unsigned buttons, unsigned modifiers);
|
||||
EventResult handle_drag_move(JS::Realm&, GC::Ref<DOM::Document>, GC::Ref<DOM::Node>, CSSPixelPoint screen_position, CSSPixelPoint page_offset, CSSPixelPoint client_offset, CSSPixelPoint offset, unsigned button, unsigned buttons, unsigned modifiers);
|
||||
EventResult handle_drag_leave(JS::Realm&, CSSPixelPoint screen_position, CSSPixelPoint page_offset, CSSPixelPoint client_offset, CSSPixelPoint offset, unsigned button, unsigned buttons, unsigned modifiers);
|
||||
EventResult handle_drop(JS::Realm&, CSSPixelPoint screen_position, CSSPixelPoint page_offset, CSSPixelPoint client_offset, CSSPixelPoint offset, unsigned button, unsigned buttons, unsigned modifiers);
|
||||
|
||||
|
@ -33,9 +33,9 @@ private:
|
|||
};
|
||||
EventResult handle_drag_end(JS::Realm&, Cancelled, CSSPixelPoint screen_position, CSSPixelPoint page_offset, CSSPixelPoint client_offset, CSSPixelPoint offset, unsigned button, unsigned buttons, unsigned modifiers);
|
||||
|
||||
JS::NonnullGCPtr<HTML::DragEvent> fire_a_drag_and_drop_event(
|
||||
GC::Ref<HTML::DragEvent> fire_a_drag_and_drop_event(
|
||||
JS::Realm&,
|
||||
JS::GCPtr<DOM::EventTarget> target,
|
||||
GC::Ptr<DOM::EventTarget> target,
|
||||
FlyString const& name,
|
||||
CSSPixelPoint screen_position,
|
||||
CSSPixelPoint page_offset,
|
||||
|
@ -44,22 +44,22 @@ private:
|
|||
unsigned button,
|
||||
unsigned buttons,
|
||||
unsigned modifiers,
|
||||
JS::GCPtr<DOM::EventTarget> related_target = nullptr);
|
||||
GC::Ptr<DOM::EventTarget> related_target = nullptr);
|
||||
|
||||
bool allow_text_drop(JS::NonnullGCPtr<DOM::Node>) const;
|
||||
bool allow_text_drop(GC::Ref<DOM::Node>) const;
|
||||
|
||||
void reset();
|
||||
|
||||
RefPtr<HTML::DragDataStore> m_drag_data_store;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dnd.html#source-node
|
||||
JS::GCPtr<DOM::EventTarget> m_source_node;
|
||||
GC::Ptr<DOM::EventTarget> m_source_node;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dnd.html#immediate-user-selection
|
||||
JS::GCPtr<DOM::Node> m_immediate_user_selection;
|
||||
GC::Ptr<DOM::Node> m_immediate_user_selection;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dnd.html#current-target-element
|
||||
JS::GCPtr<DOM::Node> m_current_target_element;
|
||||
GC::Ptr<DOM::Node> m_current_target_element;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dnd.html#current-drag-operation
|
||||
FlyString m_current_drag_operation;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue