Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2362)

Unified Diff: Source/modules/netinfo/NetworkInformation.idl

Issue 1308943005: [NetInfo] Add Blink support for connection.change, connection.downlinkMax, and wimax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/netinfo/NetworkInformation.cpp ('k') | Source/modules/netinfo/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/netinfo/NetworkInformation.idl
diff --git a/Source/modules/netinfo/NetworkInformation.idl b/Source/modules/netinfo/NetworkInformation.idl
index 166c2b5658d1df95c2f45cb35f43a7f38f1a3916..b8d5bfeb893b5adea8ce11c01c373b6ed842068f 100644
--- a/Source/modules/netinfo/NetworkInformation.idl
+++ b/Source/modules/netinfo/NetworkInformation.idl
@@ -7,18 +7,23 @@ enum ConnectionType {
"bluetooth",
"ethernet",
"wifi",
+ "wimax",
"other",
"none",
"unknown"
};
+typedef unrestricted double Megabit;
+
[
RuntimeEnabled=NetworkInformation,
Exposed=(Window,Worker),
GarbageCollected,
ActiveDOMObject
] interface NetworkInformation : EventTarget {
- readonly attribute ConnectionType type;
- attribute EventHandler ontypechange;
+ [MeasureAs=NetInfoType] readonly attribute ConnectionType type;
+ [RuntimeEnabled=NetInfoDownlinkMax, MeasureAs=NetInfoDownlinkMax] readonly attribute Megabit downlinkMax;
+ [RuntimeEnabled=NetInfoDownlinkMax, MeasureAs=NetInfoOnChange] attribute EventHandler onchange;
+ [MeasureAs=NetInfoOnTypeChange] attribute EventHandler ontypechange;
};
« no previous file with comments | « Source/modules/netinfo/NetworkInformation.cpp ('k') | Source/modules/netinfo/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698