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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js

Issue 2597553002: DevTools: move throttling options into the secondary toolbar in Performance tab. (Closed)
Patch Set: rebaselined Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 'text/css': {'stylesheet': true}, 140 'text/css': {'stylesheet': true},
141 'text/xsl': {'stylesheet': true}, 141 'text/xsl': {'stylesheet': true},
142 'text/vtt': {'texttrack': true}, 142 'text/vtt': {'texttrack': true},
143 }; 143 };
144 144
145 145
146 /** @typedef {{download: number, upload: number, latency: number, title: string} } */ 146 /** @typedef {{download: number, upload: number, latency: number, title: string} } */
147 SDK.NetworkManager.Conditions; 147 SDK.NetworkManager.Conditions;
148 /** @type {!SDK.NetworkManager.Conditions} */ 148 /** @type {!SDK.NetworkManager.Conditions} */
149 SDK.NetworkManager.NoThrottlingConditions = { 149 SDK.NetworkManager.NoThrottlingConditions = {
150 title: Common.UIString('No network throttling'), 150 title: Common.UIString('No throttling'),
151 download: -1, 151 download: -1,
152 upload: -1, 152 upload: -1,
153 latency: 0 153 latency: 0
154 }; 154 };
155 /** @type {!SDK.NetworkManager.Conditions} */ 155 /** @type {!SDK.NetworkManager.Conditions} */
156 SDK.NetworkManager.OfflineConditions = { 156 SDK.NetworkManager.OfflineConditions = {
157 title: Common.UIString('Offline'), 157 title: Common.UIString('Offline'),
158 download: 0, 158 download: 0,
159 upload: 0, 159 upload: 0,
160 latency: 0 160 latency: 0
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 SDK.MultitargetNetworkManager.Events = { 894 SDK.MultitargetNetworkManager.Events = {
895 ConditionsChanged: Symbol('ConditionsChanged'), 895 ConditionsChanged: Symbol('ConditionsChanged'),
896 UserAgentChanged: Symbol('UserAgentChanged') 896 UserAgentChanged: Symbol('UserAgentChanged')
897 }; 897 };
898 898
899 899
900 /** 900 /**
901 * @type {!SDK.MultitargetNetworkManager} 901 * @type {!SDK.MultitargetNetworkManager}
902 */ 902 */
903 SDK.multitargetNetworkManager; 903 SDK.multitargetNetworkManager;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698