Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsIDOMEvent.idl" |
michael@0 | 6 | |
michael@0 | 7 | interface nsIVariant; |
michael@0 | 8 | |
michael@0 | 9 | [scriptable, builtinclass, uuid(627b2102-9605-40e0-a5bf-6d3ac672b328)] |
michael@0 | 10 | interface nsIDOMMozWifiConnectionInfoEvent : nsIDOMEvent |
michael@0 | 11 | { |
michael@0 | 12 | /** |
michael@0 | 13 | * Network object with an SSID field. |
michael@0 | 14 | */ |
michael@0 | 15 | readonly attribute nsIVariant network; |
michael@0 | 16 | |
michael@0 | 17 | /** |
michael@0 | 18 | * Strength of the signal to network, in dBm between -55 and -100 dBm. |
michael@0 | 19 | */ |
michael@0 | 20 | readonly attribute short signalStrength; |
michael@0 | 21 | |
michael@0 | 22 | /** |
michael@0 | 23 | * Relative signal strength between 0 and 100. |
michael@0 | 24 | */ |
michael@0 | 25 | readonly attribute short relSignalStrength; |
michael@0 | 26 | |
michael@0 | 27 | /** |
michael@0 | 28 | * Link speed in Mb/s. |
michael@0 | 29 | */ |
michael@0 | 30 | readonly attribute long linkSpeed; |
michael@0 | 31 | |
michael@0 | 32 | /** |
michael@0 | 33 | * IP address in the dotted quad format. |
michael@0 | 34 | */ |
michael@0 | 35 | readonly attribute DOMString ipAddress; |
michael@0 | 36 | |
michael@0 | 37 | [noscript] void initMozWifiConnectionInfoEvent(in DOMString aType, |
michael@0 | 38 | in boolean aCanBubble, |
michael@0 | 39 | in boolean aCancelable, |
michael@0 | 40 | in nsIVariant aNetwork, |
michael@0 | 41 | in short signalStrength, |
michael@0 | 42 | in short relSignalStrength, |
michael@0 | 43 | in long linkSpeed, |
michael@0 | 44 | in DOMString ipAddress); |
michael@0 | 45 | }; |