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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkConfigView.js

Issue 1902963002: DevTools: Update styles for network conditions drawer panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary constant Created 4 years, 8 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 | third_party/WebKit/Source/devtools/front_end/network/networkConfigView.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.NetworkConfigView = function() 9 WebInspector.NetworkConfigView = function()
10 { 10 {
11 WebInspector.VBox.call(this, true); 11 WebInspector.VBox.call(this, true);
12 this.registerRequiredCSS("network/networkConfigView.css"); 12 this.registerRequiredCSS("network/networkConfigView.css");
13 this.contentElement.classList.add("network-config"); 13 this.contentElement.classList.add("network-config");
14 14
15 this._createCacheSection(); 15 this._createCacheSection();
16 this.contentElement.createChild("div").classList.add("panel-section-separato r");
16 this._createNetworkThrottlingSection(); 17 this._createNetworkThrottlingSection();
18 this.contentElement.createChild("div").classList.add("panel-section-separato r");
17 this._createUserAgentSection(); 19 this._createUserAgentSection();
18 } 20 }
19 21
20 WebInspector.NetworkConfigView.prototype = { 22 WebInspector.NetworkConfigView.prototype = {
21 /** 23 /**
22 * @param {string} title 24 * @param {string} title
23 * @param {string=} className 25 * @param {string=} className
24 * @return {!Element} 26 * @return {!Element}
25 */ 27 */
26 _createSection: function(title, className) 28 _createSection: function(title, className)
27 { 29 {
28 var section = this.contentElement.createChild("section", "network-config -group"); 30 var section = this.contentElement.createChild("section", "network-config -group");
29 if (className) 31 if (className)
30 section.classList.add(className); 32 section.classList.add(className);
31 section.createChild("div", "network-config-title").textContent = title; 33 section.createChild("div", "network-config-title").textContent = title;
32 return section.createChild("div", "network-config-fields"); 34 return section.createChild("div", "network-config-fields");
33 }, 35 },
34 36
35 _createCacheSection: function() 37 _createCacheSection: function()
36 { 38 {
37 var section = this._createSection(WebInspector.UIString("Disk cache"), " network-config-disable-cache"); 39 var section = this._createSection(WebInspector.UIString("Caching"), "net work-config-disable-cache");
38 section.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebIns pector.UIString("Disable cache"), WebInspector.moduleSetting("cacheDisabled"), t rue)); 40 section.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebIns pector.UIString("Disable cache"), WebInspector.moduleSetting("cacheDisabled"), t rue));
39 }, 41 },
40 42
41 _createNetworkThrottlingSection: function() 43 _createNetworkThrottlingSection: function()
42 { 44 {
43 var section = this._createSection(WebInspector.UIString("Network throttl ing"), "network-config-throttling"); 45 var section = this._createSection(WebInspector.UIString("Network throttl ing"), "network-config-throttling");
44 WebInspector.NetworkConditionsSelector.decorateSelect(/** @type {!HTMLSe lectElement} */(section.createChild("select", "chrome-select"))); 46 WebInspector.NetworkConditionsSelector.decorateSelect(/** @type {!HTMLSe lectElement} */(section.createChild("select", "chrome-select")));
45 }, 47 },
46 48
47 _createUserAgentSection: function() 49 _createUserAgentSection: function()
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 __proto__ : WebInspector.VBox.prototype 85 __proto__ : WebInspector.VBox.prototype
84 } 86 }
85 87
86 88
87 /** 89 /**
88 * @return {{select: !Element, input: !Element}} 90 * @return {{select: !Element, input: !Element}}
89 */ 91 */
90 WebInspector.NetworkConfigView.createUserAgentSelectAndInput = function() 92 WebInspector.NetworkConfigView.createUserAgentSelectAndInput = function()
91 { 93 {
92 var userAgentSetting = WebInspector.settings.createSetting("customUserAgent" , ""); 94 var userAgentSetting = WebInspector.settings.createSetting("customUserAgent" , "");
93 const noOverride = {title: WebInspector.UIString("No override"), value: ""}; 95 var userAgentSelectElement = createElement("select");
94 const customOverride = {title: WebInspector.UIString("Other"), value: "Other "};
95 var userAgents = [noOverride].concat(WebInspector.NetworkConfigView._userAge nts).concat([customOverride]);
96 96
97 var userAgentSelectElement = createElement("select"); 97 const customOverride = {title: WebInspector.UIString("Custom..."), value: "c ustom"};
98 for (var i = 0; i < userAgents.length; ++i) 98 userAgentSelectElement.appendChild(new Option(customOverride.title, customOv erride.value));
99 userAgentSelectElement.add(new Option(userAgents[i].title, userAgents[i] .value)); 99
100 var groups = WebInspector.NetworkConfigView._userAgentGroups;
101 for (var userAgentDescriptor of WebInspector.NetworkConfigView._userAgentGro ups) {
102 var groupElement = userAgentSelectElement.createChild("optgroup");
103 groupElement.label = userAgentDescriptor.title;
104 for (var userAgentVersion of userAgentDescriptor.values)
105 groupElement.appendChild(new Option(userAgentVersion.title, userAgen tVersion.value));
106 }
107
100 userAgentSelectElement.selectedIndex = 0; 108 userAgentSelectElement.selectedIndex = 0;
101 109
102 var otherUserAgentElement = createElement("input"); 110 var otherUserAgentElement = createElement("input");
103 otherUserAgentElement.type = "text"; 111 otherUserAgentElement.type = "text";
104 otherUserAgentElement.value = userAgentSetting.get(); 112 otherUserAgentElement.value = userAgentSetting.get();
105 otherUserAgentElement.title = userAgentSetting.get(); 113 otherUserAgentElement.title = userAgentSetting.get();
106 114
107 settingChanged(); 115 settingChanged();
108 userAgentSelectElement.addEventListener("change", userAgentSelected, false); 116 userAgentSelectElement.addEventListener("change", userAgentSelected, false);
109 117
(...skipping 24 matching lines...) Expand all
134 for (var i = 0; i < options.length; ++i) { 142 for (var i = 0; i < options.length; ++i) {
135 if (options[i].value === value) { 143 if (options[i].value === value) {
136 userAgentSelectElement.selectedIndex = i; 144 userAgentSelectElement.selectedIndex = i;
137 selectionRestored = true; 145 selectionRestored = true;
138 break; 146 break;
139 } 147 }
140 } 148 }
141 149
142 otherUserAgentElement.readOnly = selectionRestored; 150 otherUserAgentElement.readOnly = selectionRestored;
143 if (!selectionRestored) 151 if (!selectionRestored)
144 userAgentSelectElement.selectedIndex = options.length - 1; 152 userAgentSelectElement.selectedIndex = 0;
145 153
146 if (otherUserAgentElement.value !== value) { 154 if (otherUserAgentElement.value !== value) {
147 otherUserAgentElement.value = value; 155 otherUserAgentElement.value = value;
148 otherUserAgentElement.title = value; 156 otherUserAgentElement.title = value;
149 } 157 }
150 } 158 }
151 159
152 function textKeyDown(event) 160 function textKeyDown(event)
153 { 161 {
154 if (isEnterKey(event)) 162 if (isEnterKey(event))
155 textChanged(); 163 textChanged();
156 } 164 }
157 165
158 function textDoubleClicked() 166 function textDoubleClicked()
159 { 167 {
160 if (userAgentSelectElement.selectedIndex === userAgents.length - 1) 168 if (userAgentSelectElement.selectedIndex === 0)
161 return; 169 return;
162 userAgentSelectElement.selectedIndex = userAgents.length - 1; 170 userAgentSelectElement.selectedIndex = 0;
163 userAgentSelected(); 171 userAgentSelected();
164 } 172 }
165 173
166 function textChanged() 174 function textChanged()
167 { 175 {
168 if (userAgentSetting.get() !== otherUserAgentElement.value) { 176 if (userAgentSetting.get() !== otherUserAgentElement.value) {
169 userAgentSetting.set(otherUserAgentElement.value); 177 userAgentSetting.set(otherUserAgentElement.value);
170 settingChanged(); 178 settingChanged();
171 } 179 }
172 } 180 }
173 181
174 return { select: userAgentSelectElement, input: otherUserAgentElement }; 182 return { select: userAgentSelectElement, input: otherUserAgentElement };
175 } 183 }
176 184
177 /** @type {!Array.<{title: string, value: string}>} */ 185
178 WebInspector.NetworkConfigView._userAgents = [ 186 /** @type {!Array.<{title: string, value: !Array.<{title: string, value: string} >}>} */
179 {title: "Android (4.0.2) Browser \u2014 Galaxy Nexus", value: "Mozilla/5.0 ( Linux; U; Android 4.0.2; en-us; Galaxy Nexus Build/ICL53F) AppleWebKit/534.30 (K HTML, like Gecko) Version/4.0 Mobile Safari/534.30"}, 187 WebInspector.NetworkConfigView._userAgentGroups = [
180 {title: "Android (2.3) Browser \u2014 Nexus S", value: "Mozilla/5.0 (Linux; U; Android 2.3.6; en-us; Nexus S Build/GRK39F) AppleWebKit/533.1 (KHTML, like Ge cko) Version/4.0 Mobile Safari/533.1"}, 188 {
181 {title: "BlackBerry \u2014 BB10", value: "Mozilla/5.0 (BB10; Touch) AppleWeb Kit/537.1+ (KHTML, like Gecko) Version/10.0.0.1337 Mobile Safari/537.1+"}, 189 title: "Android",
182 {title: "BlackBerry \u2014 PlayBook 2.1", value: "Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en-US) AppleWebKit/536.2+ (KHTML, like Gecko) Version/7.2.1 .0 Safari/536.2+"}, 190 values: [
183 {title: "BlackBerry \u2014 9900", value: "Mozilla/5.0 (BlackBerry; U; BlackB erry 9900; en-US) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.0.0.187 Mobi le Safari/534.11+"}, 191 {title: "Android (4.0.2) Browser \u2014 Galaxy Nexus", value: "Mozil la/5.0 (Linux; U; Android 4.0.2; en-us; Galaxy Nexus Build/ICL53F) AppleWebKit/5 34.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"},
184 {title: "Chrome 47 \u2014 Mac", value: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/53 7.36"}, 192 {title: "Android (2.3) Browser \u2014 Nexus S", value: "Mozilla/5.0 (Linux; U; Android 2.3.6; en-us; Nexus S Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"}
185 {title: "Chrome 47 \u2014 Windows", value: "Mozilla/5.0 (Windows NT 10.0; WO W64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36"}, 193 ]
186 {title: "Chrome 47 \u2014 Android Tablet", value: "Mozilla/5.0 (Linux; Andro id 4.3; Nexus 7 Build/JSS15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0 .2526.76 Safari/537.36"}, 194 },
187 {title: "Chrome 47 \u2014 Android Mobile", value: "Mozilla/5.0 (Linux; Andro id 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0 .2526.76 Mobile Safari/537.36"}, 195 {
188 {title: "Chrome 47 \u2014 iPad", value: "Mozilla/5.0 (iPad; CPU OS 9_1 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13B143 Safari/601.1.46"}, 196 title: "BlackBerry",
189 {title: "Chrome 47 \u2014 iPhone", value: "Mozilla/5.0 (iPhone; CPU iPhone O S 9_1 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mo bile/13B143 Safari/601.1.46"}, 197 values: [
190 {title: "Firefox 42 \u2014 Android Mobile", value: "Mozilla/5.0 (Android 4.4 ; Mobile; rv:42.0) Gecko/42.0 Firefox/42.0"}, 198 {title: "BlackBerry \u2014 BB10", value: "Mozilla/5.0 (BB10; Touch) AppleWebKit/537.1+ (KHTML, like Gecko) Version/10.0.0.1337 Mobile Safari/537.1+" },
191 {title: "Firefox 42 \u2014 Android Tablet", value: "Mozilla/5.0 (Android 4.4 ; Tablet; rv:42.0) Gecko/42.0 Firefox/42.0"}, 199 {title: "BlackBerry \u2014 PlayBook 2.1", value: "Mozilla/5.0 (PlayB ook; U; RIM Tablet OS 2.1.0; en-US) AppleWebKit/536.2+ (KHTML, like Gecko) Versi on/7.2.1.0 Safari/536.2+"},
192 {title: "Firefox 42 \u2014 Mac", value: "Mozilla/5.0 (Macintosh; Intel Mac O S X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0"}, 200 {title: "BlackBerry \u2014 9900", value: "Mozilla/5.0 (BlackBerry; U ; BlackBerry 9900; en-US) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.0.0. 187 Mobile Safari/534.11+"}
193 {title: "Firefox 42 \u2014 Windows", value: "Mozilla/5.0 (Windows NT 10.0; W OW64; rv:42.0) Gecko/20100101 Firefox/42.0"}, 201 ]
194 {title: "Googlebot", value: "Mozilla/5.0 (compatible; Googlebot/2.1; +http:/ /www.google.com/bot.html)"}, 202 },
195 {title: "Googlebot Smartphone", value: "Mozilla/5.0 (Linux; Android 6.0.1; N exus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.htm l)"}, 203 {
196 {title: "Microsoft Edge", value: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/1 2.10240"}, 204 title: "Chrome",
197 {title: "Internet Explorer 11", value: "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"}, 205 values: [
198 {title: "Internet Explorer 10", value: "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"}, 206 {title: "Chrome 47 \u2014 Mac", value: "Mozilla/5.0 (Macintosh; Inte l Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 S afari/537.36"},
199 {title: "Internet Explorer 8", value: "Mozilla/4.0 (compatible; MSIE 8.0; Wi ndows NT 6.0; Trident/4.0)"}, 207 {title: "Chrome 47 \u2014 Windows", value: "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/5 37.36"},
200 {title: "Internet Explorer 9", value: "Mozilla/5.0 (compatible; MSIE 9.0; Wi ndows NT 6.1; Trident/5.0)"}, 208 {title: "Chrome 47 \u2014 Android Tablet", value: "Mozilla/5.0 (Linu x; Android 4.3; Nexus 7 Build/JSS15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chr ome/47.0.2526.76 Safari/537.36"},
201 {title: "Internet Explorer 7", value: "Mozilla/4.0 (compatible; MSIE 7.0; Wi ndows NT 6.0)"}, 209 {title: "Chrome 47 \u2014 Android Mobile", value: "Mozilla/5.0 (Linu x; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chr ome/47.0.2526.76 Mobile Safari/537.36"},
202 {title: "iPad \u2014 iOS 9", value: "Mozilla/5.0 (iPad; CPU OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B137 Safari/ 601.1"}, 210 {title: "Chrome 47 \u2014 iPad", value: "Mozilla/5.0 (iPad; CPU OS 9 _1 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobil e/13B143 Safari/601.1.46"},
203 {title: "iPhone \u2014 iOS 9", value: "Mozilla/5.0 (iPhone; CPU iPhone OS 9_ 1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B 137 Safari/601.1"}, 211 {title: "Chrome 47 \u2014 iPhone", value: "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.25 26.70 Mobile/13B143 Safari/601.1.46"}
204 {title: "MeeGo \u2014 Nokia N9", value: "Mozilla/5.0 (MeeGo; NokiaN9) AppleW ebKit/534.13 (KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13"}, 212 ]
205 {title: "Opera 33 \u2014 Mac", value: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537 .36 OPR/33.0.1990.115"}, 213 },
206 {title: "Opera 33 \u2014 Windows", value: "Mozilla/5.0 (Windows NT 10.0; WOW 64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36 OPR /33.0.1990.43"}, 214 {
207 {title: "Opera 12 \u2014 Mac", value: "Opera/9.80 (Macintosh; Intel Mac OS X 10.9.1) Presto/2.12.388 Version/12.16"}, 215 title: "Firefox",
208 {title: "Opera 12 \u2014 Windows", value: "Opera/9.80 (Windows NT 6.1) Prest o/2.12.388 Version/12.16"}, 216 values: [
209 {title: "Silk \u2014 Kindle Fire (Desktop view)", value: "Mozilla/5.0 (Linux ; U; en-us; KFTHWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Safari/535.19 Silk-Accelerated=true"}, 217 {title: "Firefox 42 \u2014 Android Mobile", value: "Mozilla/5.0 (And roid 4.4; Mobile; rv:42.0) Gecko/42.0 Firefox/42.0"},
210 {title: "Silk \u2014 Kindle Fire (Mobile view)", value: "Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; KFTHWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Ge cko) Silk/3.13 Mobile Safari/535.19 Silk-Accelerated=true"} 218 {title: "Firefox 42 \u2014 Android Tablet", value: "Mozilla/5.0 (And roid 4.4; Tablet; rv:42.0) Gecko/42.0 Firefox/42.0"},
211 ]; 219 {title: "Firefox 42 \u2014 Mac", value: "Mozilla/5.0 (Macintosh; Int el Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0"},
220 {title: "Firefox 42 \u2014 Windows", value: "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0"}
221 ]
222 },
223 {
224 title: "Googlebot",
225 values: [
226 {title: "Googlebot", value: "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"},
227 {title: "Googlebot Smartphone", value: "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0 .2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com /bot.html)"}
228 ]
229 },
230 {
231 title: "Edge",
232 values: [
233 {title: "Microsoft Edge", value: "Mozilla/5.0 (Windows NT 10.0; Win6 4; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.3 6 Edge/12.10240"}
234 ]
235 },
236 {
237 title: "Internet Explorer",
238 values: [
239 {title: "Internet Explorer 11", value: "Mozilla/5.0 (Windows NT 10.0 ; WOW64; Trident/7.0; rv:11.0) like Gecko"},
240 {title: "Internet Explorer 10", value: "Mozilla/5.0 (compatible; MSI E 10.0; Windows NT 6.1; WOW64; Trident/6.0)"},
241 {title: "Internet Explorer 8", value: "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)"},
242 {title: "Internet Explorer 9", value: "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"},
243 {title: "Internet Explorer 7", value: "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)"}
244 ]
245 },
246 {
247 title: "Safari",
248 values: [
249 {title: "iPad \u2014 iOS 9", value: "Mozilla/5.0 (iPad; CPU OS 9_1 l ike Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B137 Safari/601.1"},
250 {title: "iPhone \u2014 iOS 9", value: "Mozilla/5.0 (iPhone; CPU iPho ne OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mo bile/13B137 Safari/601.1"}
251 ]
252 },
253 {
254 title: "MeeGo",
255 values: [
256 {title: "MeeGo \u2014 Nokia N9", value: "Mozilla/5.0 (MeeGo; NokiaN9 ) AppleWebKit/534.13 (KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13 "}
257 ]
258 },
259 {
260 title: "Opera",
261 values: [
262 {title: "Opera 33 \u2014 Mac", value: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Sa fari/537.36 OPR/33.0.1990.115"},
263 {title: "Opera 33 \u2014 Windows", value: "Mozilla/5.0 (Windows NT 1 0.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/53 7.36 OPR/33.0.1990.43"},
264 {title: "Opera 12 \u2014 Mac", value: "Opera/9.80 (Macintosh; Intel Mac OS X 10.9.1) Presto/2.12.388 Version/12.16"},
265 {title: "Opera 12 \u2014 Windows", value: "Opera/9.80 (Windows NT 6. 1) Presto/2.12.388 Version/12.16"}
266 ]
267 },
268 {
269 title: "Silk",
270 values: [
271 {title: "Silk \u2014 Kindle Fire (Desktop view)", value: "Mozilla/5. 0 (Linux; U; en-us; KFTHWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) S ilk/3.13 Safari/535.19 Silk-Accelerated=true"},
272 {title: "Silk \u2014 Kindle Fire (Mobile view)", value: "Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; KFTHWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Mobile Safari/535.19 Silk-Accelerated=true"}
273 ]
274 }
275 ]
212 276
213 /** 277 /**
214 * @constructor 278 * @constructor
215 * @implements {WebInspector.ActionDelegate} 279 * @implements {WebInspector.ActionDelegate}
216 */ 280 */
217 WebInspector.NetworkConfigView.ShowActionDelegate = function() 281 WebInspector.NetworkConfigView.ShowActionDelegate = function()
218 { 282 {
219 } 283 }
220 284
221 WebInspector.NetworkConfigView.ShowActionDelegate.prototype = { 285 WebInspector.NetworkConfigView.ShowActionDelegate.prototype = {
222 /** 286 /**
223 * @override 287 * @override
224 * @param {!WebInspector.Context} context 288 * @param {!WebInspector.Context} context
225 * @param {string} actionId 289 * @param {string} actionId
226 * @return {boolean} 290 * @return {boolean}
227 */ 291 */
228 handleAction: function(context, actionId) 292 handleAction: function(context, actionId)
229 { 293 {
230 WebInspector.inspectorView.showViewInDrawer("network.config"); 294 WebInspector.inspectorView.showViewInDrawer("network.config");
231 return true; 295 return true;
232 } 296 }
233 } 297 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/network/networkConfigView.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698