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

Side by Side Diff: Source/devtools/front_end/layers/PaintProfilerView.js

Issue 340513003: DevTools: Add JSDoc for static methods, fix JSDoc types and induced errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 this.sidebarTree.appendChild(node); 231 this.sidebarTree.appendChild(node);
232 } 232 }
233 }, 233 },
234 234
235 /** 235 /**
236 * @param {!Element} target 236 * @param {!Element} target
237 * @return {!Element} 237 * @return {!Element}
238 */ 238 */
239 _getHoverAnchor: function(target) 239 _getHoverAnchor: function(target)
240 { 240 {
241 return target.enclosingNodeOrSelfWithNodeName("span"); 241 return /** @type {!Element} */ (target.enclosingNodeOrSelfWithNodeName(" span"));
242 }, 242 },
243 243
244 /** 244 /**
245 * @param {!Element} element 245 * @param {!Element} element
246 * @param {function(!WebInspector.RemoteObject, boolean, !Element=):undefine d} showCallback 246 * @param {function(!WebInspector.RemoteObject, boolean, !Element=):undefine d} showCallback
247 */ 247 */
248 _resolveObjectForPopover: function(element, showCallback) 248 _resolveObjectForPopover: function(element, showCallback)
249 { 249 {
250 var liElement = element.enclosingNodeOrSelfWithNodeName("li"); 250 var liElement = element.enclosingNodeOrSelfWithNodeName("li");
251 var logItem = liElement.treeElement.representedObject; 251 var logItem = liElement.treeElement.representedObject;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 /** 322 /**
323 * @param {boolean} hovered 323 * @param {boolean} hovered
324 */ 324 */
325 setHovered: function(hovered) 325 setHovered: function(hovered)
326 { 326 {
327 this.listItemElement.classList.toggle("hovered", hovered); 327 this.listItemElement.classList.toggle("hovered", hovered);
328 }, 328 },
329 329
330 __proto__: TreeElement.prototype 330 __proto__: TreeElement.prototype
331 }; 331 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698