Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1129 this._element.removeEventListener("mouseout", this._longClickData.reset, false); | 1129 this._element.removeEventListener("mouseout", this._longClickData.reset, false); |
| 1130 this._element.removeEventListener("mouseup", this._longClickData.mouseUp , false); | 1130 this._element.removeEventListener("mouseup", this._longClickData.mouseUp , false); |
| 1131 this._element.addEventListener("click", this._longClickData.reset, true) ; | 1131 this._element.addEventListener("click", this._longClickData.reset, true) ; |
| 1132 delete this._longClickData; | 1132 delete this._longClickData; |
| 1133 }, | 1133 }, |
| 1134 | 1134 |
| 1135 __proto__: WebInspector.Object.prototype | 1135 __proto__: WebInspector.Object.prototype |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 /** | 1138 /** |
| 1139 * @param {string} article | |
| 1140 * @param {string} title | |
| 1141 * @return {!Element} | |
| 1142 */ | |
| 1143 WebInspector.createDocumentationAnchor = function(article, title) | |
|
vsevik
2014/10/23 15:00:03
I would remove Documentation aspect from this meth
| |
| 1144 { | |
| 1145 var anchor = createElementWithClass("a", "documentation-link"); | |
| 1146 anchor.href = "https://developer.chrome.com/devtools/docs/" + article; | |
| 1147 anchor.target = "_blank"; | |
| 1148 anchor.createTextChild(title); | |
| 1149 return anchor; | |
| 1150 } | |
| 1151 | |
| 1152 /** | |
| 1139 * @param {!Window} window | 1153 * @param {!Window} window |
| 1140 */ | 1154 */ |
| 1141 WebInspector.initializeUIUtils = function(window) | 1155 WebInspector.initializeUIUtils = function(window) |
| 1142 { | 1156 { |
| 1143 window.addEventListener("focus", WebInspector._windowFocused.bind(WebInspect or, window.document), false); | 1157 window.addEventListener("focus", WebInspector._windowFocused.bind(WebInspect or, window.document), false); |
| 1144 window.addEventListener("blur", WebInspector._windowBlurred.bind(WebInspecto r, window.document), false); | 1158 window.addEventListener("blur", WebInspector._windowBlurred.bind(WebInspecto r, window.document), false); |
| 1145 window.document.addEventListener("focus", WebInspector._focusChanged.bind(We bInspector, window.document), true); | 1159 window.document.addEventListener("focus", WebInspector._focusChanged.bind(We bInspector, window.document), true); |
| 1146 window.document.addEventListener("blur", WebInspector._documentBlurred.bind( WebInspector, window.document), true); | 1160 window.document.addEventListener("blur", WebInspector._documentBlurred.bind( WebInspector, window.document), true); |
| 1147 } | 1161 } |
| OLD | NEW |