mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-12 17:45:49 +08:00
Signed-off-by: Victor Porof <victorporof@chromium.org> Bug: 1325812 Change-Id: I044170880d20ce0402062755787cccafd63c6a42 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3695370 Reviewed-by: Mathias Bynens <mathias@chromium.org>
44 lines
1.0 KiB
Plaintext
44 lines
1.0 KiB
Plaintext
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into webref
|
|
// (https://github.com/w3c/webref)
|
|
// 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;
|
|
attribute EventHandler onchange;
|
|
};
|
|
|
|
typedef unrestricted double Megabit;
|
|
typedef unsigned long long Millisecond;
|