mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Start fleshing out Navigable::choose_a_navigable()
Equivalent of `choose_a_browsing_context` for navigables.
This commit is contained in:
committed by
Andreas Kling
parent
473848be0e
commit
2cbc9a6642
Notes:
sideshowbarker
2024-07-17 03:35:16 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/2cbc9a6642 Pull-request: https://github.com/SerenityOS/serenity/pull/19562
@@ -9,9 +9,11 @@
|
||||
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/ActivateTab.h>
|
||||
#include <LibWeb/HTML/HistoryHandlingBehavior.h>
|
||||
#include <LibWeb/HTML/POSTResource.h>
|
||||
#include <LibWeb/HTML/SourceSnapshotParams.h>
|
||||
#include <LibWeb/HTML/TokenizedFeatures.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
@@ -63,6 +65,19 @@ public:
|
||||
JS::GCPtr<TraversableNavigable> traversable_navigable() const;
|
||||
JS::GCPtr<TraversableNavigable> top_level_traversable();
|
||||
|
||||
enum class WindowType {
|
||||
ExistingOrNone,
|
||||
NewAndUnrestricted,
|
||||
NewWithNoOpener,
|
||||
};
|
||||
|
||||
struct ChosenNavigable {
|
||||
JS::GCPtr<Navigable> navigable;
|
||||
WindowType window_type;
|
||||
};
|
||||
|
||||
ChosenNavigable choose_a_navigable(StringView name, TokenizedFeature::NoOpener no_opener, ActivateTab = ActivateTab::Yes);
|
||||
|
||||
static JS::GCPtr<Navigable> navigable_with_active_document(JS::NonnullGCPtr<DOM::Document>);
|
||||
|
||||
enum class Traversal {
|
||||
|
||||
Reference in New Issue
Block a user