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

Side by Side Diff: Source/devtools/front_end/main/OverridesView.js

Issue 659573005: DevTools: NetworkPanel: show link where resource timing is explained. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 WebInspector.OverridesView.Tab.call(this, "device", WebInspector.UIString("D evice"), [ 193 WebInspector.OverridesView.Tab.call(this, "device", WebInspector.UIString("D evice"), [
194 WebInspector.overridesSupport.settings.emulateResolution, 194 WebInspector.overridesSupport.settings.emulateResolution,
195 WebInspector.overridesSupport.settings.deviceScaleFactor, 195 WebInspector.overridesSupport.settings.deviceScaleFactor,
196 WebInspector.overridesSupport.settings.emulateMobile 196 WebInspector.overridesSupport.settings.emulateMobile
197 ]); 197 ]);
198 this.element.classList.add("overrides-device"); 198 this.element.classList.add("overrides-device");
199 199
200 this.element.appendChild(this._createDeviceElement()); 200 this.element.appendChild(this._createDeviceElement());
201 201
202 var footnote = this.element.createChild("p", "help-footnote"); 202 var footnote = this.element.createChild("p", "help-footnote");
203 var footnoteLink = footnote.createChild("a"); 203 footnote.appendChild(WebInspector.createDocumentationAnchor("device-mode", W ebInspector.UIString("More information about screen emulation")));
204 footnoteLink.href = "https://developers.google.com/chrome-developer-tools/do cs/mobile-emulation";
205 footnoteLink.target = "_blank";
206 footnoteLink.createTextChild(WebInspector.UIString("More information about s creen emulation"));
207 } 204 }
208 205
209 WebInspector.OverridesView.DeviceTab.prototype = { 206 WebInspector.OverridesView.DeviceTab.prototype = {
210 _createDeviceElement: function() 207 _createDeviceElement: function()
211 { 208 {
212 var fieldsetElement = createElement("fieldset"); 209 var fieldsetElement = createElement("fieldset");
213 fieldsetElement.id = "metrics-override-section"; 210 fieldsetElement.id = "metrics-override-section";
214 211
215 var deviceModelElement = fieldsetElement.createChild("p", "overrides-dev ice-model-section"); 212 var deviceModelElement = fieldsetElement.createChild("p", "overrides-dev ice-model-section");
216 deviceModelElement.createChild("span").textContent = WebInspector.UIStri ng("Model:"); 213 deviceModelElement.createChild("span").textContent = WebInspector.UIStri ng("Model:");
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 /** 728 /**
732 * @param {!Object} overridesSupport 729 * @param {!Object} overridesSupport
733 * @return {!Promise} 730 * @return {!Promise}
734 */ 731 */
735 reveal: function(overridesSupport) 732 reveal: function(overridesSupport)
736 { 733 {
737 WebInspector.inspectorView.showViewInDrawer("emulation"); 734 WebInspector.inspectorView.showViewInDrawer("emulation");
738 return Promise.resolve(); 735 return Promise.resolve();
739 } 736 }
740 } 737 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/inspectorStyle.css ('k') | Source/devtools/front_end/network/RequestTimingView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698