OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 /** | 299 /** |
300 * @return {!Element} | 300 * @return {!Element} |
301 */ | 301 */ |
302 function createNodeElement() { | 302 function createNodeElement() { |
303 var valueElement = createElementWithClass('span', 'object-value-node'); | 303 var valueElement = createElementWithClass('span', 'object-value-node'); |
304 Components.DOMPresentationUtils.createSpansForNodeTitle(valueElement, /**
@type {string} */ (description)); | 304 Components.DOMPresentationUtils.createSpansForNodeTitle(valueElement, /**
@type {string} */ (description)); |
305 valueElement.addEventListener('click', event => { | 305 valueElement.addEventListener('click', event => { |
306 Common.Revealer.reveal(value); | 306 Common.Revealer.reveal(value); |
307 event.consume(true); | 307 event.consume(true); |
308 }, false); | 308 }, false); |
309 valueElement.addEventListener('mousemove', () => SDK.OverlayModel.highligh
tObjectAsDOMNode(value), false); | 309 valueElement.addEventListener('mousemove', () => SDK.DOMModel.highlightObj
ectAsDOMNode(value), false); |
310 valueElement.addEventListener('mouseleave', () => SDK.OverlayModel.hideDOM
NodeHighlight(), false); | 310 valueElement.addEventListener('mouseleave', () => SDK.DOMModel.hideDOMNode
Highlight(), false); |
311 return valueElement; | 311 return valueElement; |
312 } | 312 } |
313 | 313 |
314 /** | 314 /** |
315 * @return {!Element} | 315 * @return {!Element} |
316 */ | 316 */ |
317 function createNumberWithExponentElement() { | 317 function createNumberWithExponentElement() { |
318 var valueElement = createElementWithClass('span', 'object-value-number'); | 318 var valueElement = createElementWithClass('span', 'object-value-number'); |
319 var numberParts = description.split('e'); | 319 var numberParts = description.split('e'); |
320 valueElement.createChild('span', 'object-value-scientific-notation-mantiss
a').textContent = numberParts[0]; | 320 valueElement.createChild('span', 'object-value-scientific-notation-mantiss
a').textContent = numberParts[0]; |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1368 var title = options.title; | 1368 var title = options.title; |
1369 var section = new ObjectUI.ObjectPropertiesSection(object, title); | 1369 var section = new ObjectUI.ObjectPropertiesSection(object, title); |
1370 if (!title) | 1370 if (!title) |
1371 section.titleLessMode(); | 1371 section.titleLessMode(); |
1372 if (options.expanded) | 1372 if (options.expanded) |
1373 section.expand(); | 1373 section.expand(); |
1374 section.editable = !!options.editable; | 1374 section.editable = !!options.editable; |
1375 return Promise.resolve(section.element); | 1375 return Promise.resolve(section.element); |
1376 } | 1376 } |
1377 }; | 1377 }; |
OLD | NEW |