mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 08:48:57 +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
76
Libraries/LibWeb/HTML/Navigator.idl
Normal file
76
Libraries/LibWeb/HTML/Navigator.idl
Normal file
|
@ -0,0 +1,76 @@
|
|||
#import <Clipboard/Clipboard.idl>
|
||||
#import <HTML/MimeTypeArray.idl>
|
||||
#import <HTML/NavigatorBeacon.idl>
|
||||
#import <HTML/NavigatorConcurrentHardware.idl>
|
||||
#import <HTML/NavigatorDeviceMemory.idl>
|
||||
#import <HTML/NavigatorID.idl>
|
||||
#import <HTML/NavigatorLanguage.idl>
|
||||
#import <HTML/NavigatorOnLine.idl>
|
||||
#import <HTML/PluginArray.idl>
|
||||
#import <HTML/ServiceWorkerContainer.idl>
|
||||
#import <HTML/UserActivation.idl>
|
||||
#import <MediaCapabilitiesAPI/MediaCapabilities.idl>
|
||||
#import <StorageAPI/NavigatorStorage.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#navigator
|
||||
[Exposed=Window]
|
||||
interface Navigator {
|
||||
// objects implementing this interface also implement the interfaces given below
|
||||
|
||||
// https://w3c.github.io/clipboard-apis/#navigator-interface
|
||||
[SecureContext, SameObject] readonly attribute Clipboard clipboard;
|
||||
|
||||
// https://w3c.github.io/pointerevents/#extensions-to-the-navigator-interface
|
||||
readonly attribute long maxTouchPoints;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#useractivation
|
||||
[SameObject] readonly attribute UserActivation userActivation;
|
||||
|
||||
// https://www.w3.org/TR/tracking-dnt/#dom-navigator-donottrack
|
||||
readonly attribute DOMString? doNotTrack;
|
||||
|
||||
// https://w3c.github.io/ServiceWorker/#navigator-serviceworker
|
||||
[SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
|
||||
|
||||
// https://w3c.github.io/media-capabilities/#dom-navigator-mediacapabilities
|
||||
[SameObject] readonly attribute MediaCapabilities mediaCapabilities;
|
||||
};
|
||||
|
||||
// NOTE: As NavigatorContentUtils, NavigatorCookies, NavigatorPlugins, and NavigatorAutomationInformation
|
||||
// are not used in WorkerNavigator, we define them here.
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#navigatorcontentutils
|
||||
interface mixin NavigatorContentUtils {
|
||||
[FIXME, SecureContext] undefined registerProtocolHandler(DOMString scheme, USVString url);
|
||||
[FIXME, SecureContext] undefined unregisterProtocolHandler(DOMString scheme, USVString url);
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#navigatorcookies
|
||||
interface mixin NavigatorCookies {
|
||||
readonly attribute boolean cookieEnabled;
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#navigatorplugins
|
||||
interface mixin NavigatorPlugins {
|
||||
[SameObject] readonly attribute PluginArray plugins;
|
||||
[SameObject] readonly attribute MimeTypeArray mimeTypes;
|
||||
boolean javaEnabled();
|
||||
readonly attribute boolean pdfViewerEnabled;
|
||||
};
|
||||
|
||||
// https://w3c.github.io/webdriver/#dom-navigatorautomationinformation
|
||||
interface mixin NavigatorAutomationInformation {
|
||||
readonly attribute boolean webdriver;
|
||||
};
|
||||
|
||||
Navigator includes NavigatorBeacon;
|
||||
Navigator includes NavigatorID;
|
||||
Navigator includes NavigatorLanguage;
|
||||
Navigator includes NavigatorOnLine;
|
||||
Navigator includes NavigatorContentUtils;
|
||||
Navigator includes NavigatorCookies;
|
||||
Navigator includes NavigatorPlugins;
|
||||
Navigator includes NavigatorConcurrentHardware;
|
||||
Navigator includes NavigatorAutomationInformation;
|
||||
Navigator includes NavigatorStorage;
|
||||
Navigator includes NavigatorDeviceMemory;
|
Loading…
Add table
Add a link
Reference in a new issue