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

Side by Side Diff: third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl

Issue 2915773004: Condition effectiveType as RuntimeEnabled feature (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698