mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
56
Libraries/LibWeb/HTML/Navigation.idl
Normal file
56
Libraries/LibWeb/HTML/Navigation.idl
Normal file
|
@ -0,0 +1,56 @@
|
|||
#import <DOM/EventHandler.idl>
|
||||
#import <DOM/EventTarget.idl>
|
||||
#import <HTML/NavigationHistoryEntry.idl>
|
||||
#import <HTML/NavigationTransition.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigation-interface
|
||||
[Exposed=Window]
|
||||
interface Navigation : EventTarget {
|
||||
sequence<NavigationHistoryEntry> entries();
|
||||
readonly attribute NavigationHistoryEntry? currentEntry;
|
||||
undefined updateCurrentEntry(NavigationUpdateCurrentEntryOptions options);
|
||||
readonly attribute NavigationTransition? transition;
|
||||
|
||||
readonly attribute boolean canGoBack;
|
||||
readonly attribute boolean canGoForward;
|
||||
|
||||
NavigationResult navigate(USVString url, optional NavigationNavigateOptions options = {});
|
||||
NavigationResult reload(optional NavigationReloadOptions options = {});
|
||||
|
||||
NavigationResult traverseTo(DOMString key, optional NavigationOptions options = {});
|
||||
NavigationResult back(optional NavigationOptions options = {});
|
||||
NavigationResult forward(optional NavigationOptions options = {});
|
||||
|
||||
attribute EventHandler onnavigate;
|
||||
attribute EventHandler onnavigatesuccess;
|
||||
attribute EventHandler onnavigateerror;
|
||||
attribute EventHandler oncurrententrychange;
|
||||
};
|
||||
|
||||
dictionary NavigationUpdateCurrentEntryOptions {
|
||||
required any state;
|
||||
};
|
||||
|
||||
dictionary NavigationOptions {
|
||||
any info;
|
||||
};
|
||||
|
||||
dictionary NavigationNavigateOptions : NavigationOptions {
|
||||
any state;
|
||||
NavigationHistoryBehavior history = "auto";
|
||||
};
|
||||
|
||||
dictionary NavigationReloadOptions : NavigationOptions {
|
||||
any state;
|
||||
};
|
||||
|
||||
dictionary NavigationResult {
|
||||
Promise<NavigationHistoryEntry> committed;
|
||||
Promise<NavigationHistoryEntry> finished;
|
||||
};
|
||||
|
||||
enum NavigationHistoryBehavior {
|
||||
"auto",
|
||||
"push",
|
||||
"replace"
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue