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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 var section = new WebInspector.ObjectPropertiesSection(obj, titleElement
); | 429 var section = new WebInspector.ObjectPropertiesSection(obj, titleElement
); |
430 section.enableContextMenu(); | 430 section.enableContextMenu(); |
431 elem.appendChild(section.element); | 431 elem.appendChild(section.element); |
432 | 432 |
433 var note = section.titleElement.createChild("span", "object-info-state-n
ote"); | 433 var note = section.titleElement.createChild("span", "object-info-state-n
ote"); |
434 note.title = WebInspector.UIString("Object state below is captured upon
first expansion"); | 434 note.title = WebInspector.UIString("Object state below is captured upon
first expansion"); |
435 }, | 435 }, |
436 | 436 |
437 /** | 437 /** |
438 * @param {!WebInspector.RemoteObject} obj | 438 * @param {!WebInspector.RemoteObject} obj |
| 439 * @param {?Event} event |
439 */ | 440 */ |
440 _contextMenuEventFired: function(obj, event) | 441 _contextMenuEventFired: function(obj, event) |
441 { | 442 { |
442 var contextMenu = new WebInspector.ContextMenu(event); | 443 var contextMenu = new WebInspector.ContextMenu(event); |
443 contextMenu.appendApplicableItems(obj); | 444 contextMenu.appendApplicableItems(obj); |
444 contextMenu.show(); | 445 contextMenu.show(); |
445 }, | 446 }, |
446 | 447 |
447 /** | 448 /** |
448 * @param {!WebInspector.RemoteObject} obj | 449 * @param {!WebInspector.RemoteObject} obj |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1236 { | 1237 { |
1237 if (!this._wrapperElement) { | 1238 if (!this._wrapperElement) { |
1238 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this
); | 1239 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this
); |
1239 this._wrapperElement.classList.toggle("collapsed", this._collapsed); | 1240 this._wrapperElement.classList.toggle("collapsed", this._collapsed); |
1240 } | 1241 } |
1241 return this._wrapperElement; | 1242 return this._wrapperElement; |
1242 }, | 1243 }, |
1243 | 1244 |
1244 __proto__: WebInspector.ConsoleViewMessage.prototype | 1245 __proto__: WebInspector.ConsoleViewMessage.prototype |
1245 } | 1246 } |
OLD | NEW |