gecko-dev/testing/web-platform/tests/interfaces/netinfo.idl
autofoolip 7f29fc77df Bug 1529800 [wpt PR 15494] - Update interfaces/netinfo.idl, a=testonly
Automatic update from web-platform-tests
Update interfaces/netinfo.idl (#15494)

Source: https://github.com/tidoust/reffy-reports/blob/ca4eee1/whatwg/idl/netinfo.idl
Build: https://travis-ci.org/tidoust/reffy-reports/builds/496363054
--

wpt-commits: 3afb2a6b0c20c288c0b0d90af763cc56d6deda4e
wpt-pr: 15494
2019-03-16 12:13:15 +00:00

44 lines
1.1 KiB
Text

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Network Information API (https://wicg.github.io/netinfo/)
enum ConnectionType {
"bluetooth",
"cellular",
"ethernet",
"mixed",
"none",
"other",
"unknown",
"wifi",
"wimax"
};
enum EffectiveConnectionType {
"2g",
"3g",
"4g",
"slow-2g"
};
interface mixin NavigatorNetworkInformation {
[SameObject] readonly attribute NetworkInformation connection;
};
Navigator includes NavigatorNetworkInformation;
WorkerNavigator includes NavigatorNetworkInformation;
[Exposed=(Window,Worker)]
interface NetworkInformation : EventTarget {
readonly attribute ConnectionType type;
readonly attribute EffectiveConnectionType effectiveType;
readonly attribute Megabit downlinkMax;
readonly attribute Megabit downlink;
readonly attribute Millisecond rtt;
readonly attribute boolean saveData;
attribute EventHandler onchange;
};
typedef unrestricted double Megabit;
typedef unsigned long long Millisecond;