| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // https://wicg.github.io/netinfo/#the-networkinformation-interface | 5 // https://wicg.github.io/netinfo/#the-networkinformation-interface |
| 6 | 6 |
| 7 enum ConnectionType { | 7 enum ConnectionType { |
| 8 "cellular", | 8 "cellular", |
| 9 "bluetooth", | 9 "bluetooth", |
| 10 "ethernet", | 10 "ethernet", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 [ | 28 [ |
| 29 ActiveScriptWrappable, | 29 ActiveScriptWrappable, |
| 30 DependentLifetime, | 30 DependentLifetime, |
| 31 Exposed=(Window,Worker), | 31 Exposed=(Window,Worker), |
| 32 RuntimeEnabled=NetworkInformation, | 32 RuntimeEnabled=NetworkInformation, |
| 33 ] interface NetworkInformation : EventTarget { | 33 ] interface NetworkInformation : EventTarget { |
| 34 [MeasureAs=NetInfoType] readonly attribute ConnectionType type; | 34 [MeasureAs=NetInfoType] readonly attribute ConnectionType type; |
| 35 [RuntimeEnabled=NetInfoDownlinkMax, MeasureAs=NetInfoDownlinkMax] readonly a
ttribute Megabit downlinkMax; | 35 [RuntimeEnabled=NetInfoDownlinkMax, MeasureAs=NetInfoDownlinkMax] readonly a
ttribute Megabit downlinkMax; |
| 36 [RuntimeEnabled=NetInfoDownlinkMax, MeasureAs=NetInfoOnChange] attribute Eve
ntHandler onchange; | 36 [RuntimeEnabled=NetInfoDownlinkMax, MeasureAs=NetInfoOnChange] attribute Eve
ntHandler onchange; |
| 37 [MeasureAs=NetInfoOnTypeChange] attribute EventHandler ontypechange; | 37 [MeasureAs=NetInfoOnTypeChange] attribute EventHandler ontypechange; |
| 38 [MeasureAs=NetInfoEffectiveType] readonly attribute EffectiveConnectionType
effectiveType; | 38 [RuntimeEnabled=NetInfoEffectiveType, MeasureAs=NetInfoEffectiveType] readon
ly attribute EffectiveConnectionType effectiveType; |
| 39 [RuntimeEnabled=NetInfoRtt, MeasureAs=NetInfoRtt] readonly attribute Millise
conds rtt; | 39 [RuntimeEnabled=NetInfoRtt, MeasureAs=NetInfoRtt] readonly attribute Millise
conds rtt; |
| 40 [RuntimeEnabled=NetInfoDownlink, MeasureAs=NetInfoDownlink] readonly attribu
te Megabit downlink; | 40 [RuntimeEnabled=NetInfoDownlink, MeasureAs=NetInfoDownlink] readonly attribu
te Megabit downlink; |
| 41 }; | 41 }; |
| OLD | NEW |