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

Side by Side Diff: Source/devtools/front_end/ui/UIUtils.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, 2 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 | « Source/devtools/front_end/sources/sourcesView.css ('k') | 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 this._element.removeEventListener("mouseout", this._longClickData.reset, false); 1136 this._element.removeEventListener("mouseout", this._longClickData.reset, false);
1137 this._element.removeEventListener("mouseup", this._longClickData.mouseUp , false); 1137 this._element.removeEventListener("mouseup", this._longClickData.mouseUp , false);
1138 this._element.addEventListener("click", this._longClickData.reset, true) ; 1138 this._element.addEventListener("click", this._longClickData.reset, true) ;
1139 delete this._longClickData; 1139 delete this._longClickData;
1140 }, 1140 },
1141 1141
1142 __proto__: WebInspector.Object.prototype 1142 __proto__: WebInspector.Object.prototype
1143 } 1143 }
1144 1144
1145 /** 1145 /**
1146 * @param {string} url
1147 * @param {string=} linkText
1148 * @param {boolean=} isInternal
1149 * @return {!Element}
1150 */
1151 WebInspector.createAnchor = function(url, linkText, isInternal)
1152 {
1153 var anchor = createElementWithClass("a", "link");
1154 var href = sanitizeHref(url);
1155
1156 if (href)
1157 anchor.href = href;
1158 anchor.title = url;
1159
1160 if (!linkText)
1161 linkText = url;
1162 anchor.textContent = linkText;
1163
1164 if (!isInternal)
1165 anchor.setAttribute("target", "_blank");
1166
1167 return anchor;
1168 }
1169
1170 /**
1171 * @param {string} article
1172 * @param {string} title
1173 * @return {!Element}
1174 */
1175 WebInspector.createDocumentationAnchor = function(article, title)
1176 {
1177 return WebInspector.createAnchor("https://developer.chrome.com/devtools/docs /" + article, title);
1178 }
1179
1180 /**
1146 * @param {!Window} window 1181 * @param {!Window} window
1147 */ 1182 */
1148 WebInspector.initializeUIUtils = function(window) 1183 WebInspector.initializeUIUtils = function(window)
1149 { 1184 {
1150 window.addEventListener("focus", WebInspector._windowFocused.bind(WebInspect or, window.document), false); 1185 window.addEventListener("focus", WebInspector._windowFocused.bind(WebInspect or, window.document), false);
1151 window.addEventListener("blur", WebInspector._windowBlurred.bind(WebInspecto r, window.document), false); 1186 window.addEventListener("blur", WebInspector._windowBlurred.bind(WebInspecto r, window.document), false);
1152 window.document.addEventListener("focus", WebInspector._focusChanged.bind(We bInspector, window.document), true); 1187 window.document.addEventListener("focus", WebInspector._focusChanged.bind(We bInspector, window.document), true);
1153 window.document.addEventListener("blur", WebInspector._documentBlurred.bind( WebInspector, window.document), true); 1188 window.document.addEventListener("blur", WebInspector._documentBlurred.bind( WebInspector, window.document), true);
1154 } 1189 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/sourcesView.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698