mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
d4a890080d
NewAKString is effectively the default for any new IDL interface, so let's mark this as the default behavior. It also makes it much easier to figure out whatever interfaces are still left to port over to new AK String.
57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
#import <DOM/AbortSignal.idl>
|
|
#import <DOM/Event.idl>
|
|
#import <HTML/NavigationDestination.idl>
|
|
#import <HTML/NavigationType.idl>
|
|
#import <XHR/FormData.idl>
|
|
|
|
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigateevent-interface
|
|
[Exposed=Window]
|
|
interface NavigateEvent : Event {
|
|
constructor(DOMString type, NavigateEventInit eventInitDict);
|
|
|
|
readonly attribute NavigationType navigationType;
|
|
readonly attribute NavigationDestination destination;
|
|
readonly attribute boolean canIntercept;
|
|
readonly attribute boolean userInitiated;
|
|
readonly attribute boolean hashChange;
|
|
readonly attribute AbortSignal signal;
|
|
readonly attribute FormData? formData;
|
|
readonly attribute DOMString? downloadRequest;
|
|
readonly attribute any info;
|
|
readonly attribute boolean hasUAVisualTransition;
|
|
|
|
undefined intercept(optional NavigationInterceptOptions options = {});
|
|
undefined scroll();
|
|
};
|
|
|
|
dictionary NavigateEventInit : EventInit {
|
|
NavigationType navigationType = "push";
|
|
required NavigationDestination destination;
|
|
boolean canIntercept = false;
|
|
boolean userInitiated = false;
|
|
boolean hashChange = false;
|
|
required AbortSignal signal;
|
|
FormData? formData = null;
|
|
DOMString? downloadRequest = null;
|
|
any info;
|
|
boolean hasUAVisualTransition = false;
|
|
};
|
|
|
|
dictionary NavigationInterceptOptions {
|
|
NavigationInterceptHandler handler;
|
|
NavigationFocusReset focusReset;
|
|
NavigationScrollBehavior scroll;
|
|
};
|
|
|
|
enum NavigationFocusReset {
|
|
"after-transition",
|
|
"manual"
|
|
};
|
|
|
|
enum NavigationScrollBehavior {
|
|
"after-transition",
|
|
"manual"
|
|
};
|
|
|
|
callback NavigationInterceptHandler = Promise<undefined> ();
|