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) 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 } | 427 } |
428 } else { | 428 } else { |
429 if (obj.type === "function") { | 429 if (obj.type === "function") { |
430 WebInspector.ObjectPropertiesSection.formatObjectAsFunction(obj,
titleElement, false); | 430 WebInspector.ObjectPropertiesSection.formatObjectAsFunction(obj,
titleElement, false); |
431 titleElement.classList.add("object-value-function"); | 431 titleElement.classList.add("object-value-function"); |
432 } else { | 432 } else { |
433 titleElement.createTextChild(obj.description || ""); | 433 titleElement.createTextChild(obj.description || ""); |
434 } | 434 } |
435 } | 435 } |
436 var note = titleElement.createChild("span", "object-info-state-note"); | 436 var note = titleElement.createChild("span", "object-info-state-note"); |
437 WebInspector.Tooltip.install(note, WebInspector.UIString("Object value a
t left was snapshotted when logged, value below was evaluated just now.")); | 437 note.title = WebInspector.UIString("Object value at left was snapshotted
when logged, value below was evaluated just now."); |
438 var section = new WebInspector.ObjectPropertiesSection(obj, titleElement
); | 438 var section = new WebInspector.ObjectPropertiesSection(obj, titleElement
); |
439 section.enableContextMenu(); | 439 section.enableContextMenu(); |
440 elem.appendChild(section.element); | 440 elem.appendChild(section.element); |
441 section.element.classList.add("console-view-object-properties-section"); | 441 section.element.classList.add("console-view-object-properties-section"); |
442 }, | 442 }, |
443 | 443 |
444 /** | 444 /** |
445 * @param {!WebInspector.RemoteObject} func | 445 * @param {!WebInspector.RemoteObject} func |
446 * @param {!Element} element | 446 * @param {!Element} element |
447 * @param {boolean=} includePreview | 447 * @param {boolean=} includePreview |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 { | 1326 { |
1327 if (!this._wrapperElement) { | 1327 if (!this._wrapperElement) { |
1328 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this
); | 1328 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this
); |
1329 this._wrapperElement.classList.toggle("collapsed", this._collapsed); | 1329 this._wrapperElement.classList.toggle("collapsed", this._collapsed); |
1330 } | 1330 } |
1331 return this._wrapperElement; | 1331 return this._wrapperElement; |
1332 }, | 1332 }, |
1333 | 1333 |
1334 __proto__: WebInspector.ConsoleViewMessage.prototype | 1334 __proto__: WebInspector.ConsoleViewMessage.prototype |
1335 } | 1335 } |
OLD | NEW |