OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
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 are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1396 | 1396 |
1397 /** | 1397 /** |
1398 * @param {?string} imageURL | 1398 * @param {?string} imageURL |
1399 */ | 1399 */ |
1400 function onGotImage(imageURL) { | 1400 function onGotImage(imageURL) { |
1401 if (!imageURL) { | 1401 if (!imageURL) { |
1402 callback(); | 1402 callback(); |
1403 return; | 1403 return; |
1404 } | 1404 } |
1405 var container = createElement('div'); | 1405 var container = createElement('div'); |
| 1406 UI.appendStyle(container, 'components/imagePreview.css'); |
1406 container.classList.add('image-preview-container', 'vbox', 'link'); | 1407 container.classList.add('image-preview-container', 'vbox', 'link'); |
1407 var img = container.createChild('img'); | 1408 var img = container.createChild('img'); |
1408 img.src = imageURL; | 1409 img.src = imageURL; |
1409 var paintProfilerButton = container.createChild('a'); | 1410 var paintProfilerButton = container.createChild('a'); |
1410 paintProfilerButton.textContent = Common.UIString('Paint Profiler'); | 1411 paintProfilerButton.textContent = Common.UIString('Paint Profiler'); |
1411 container.addEventListener('click', showPaintProfiler, false); | 1412 container.addEventListener('click', showPaintProfiler, false); |
1412 callback(container); | 1413 callback(container); |
1413 } | 1414 } |
1414 | 1415 |
1415 function showPaintProfiler() { | 1416 function showPaintProfiler() { |
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2295 * @param {string=} warningType | 2296 * @param {string=} warningType |
2296 */ | 2297 */ |
2297 appendWarningRow(event, warningType) { | 2298 appendWarningRow(event, warningType) { |
2298 var warning = Timeline.TimelineUIUtils.eventWarning(event, warningType); | 2299 var warning = Timeline.TimelineUIUtils.eventWarning(event, warningType); |
2299 if (warning) | 2300 if (warning) |
2300 this.appendElementRow(Common.UIString('Warning'), warning, true); | 2301 this.appendElementRow(Common.UIString('Warning'), warning, true); |
2301 } | 2302 } |
2302 }; | 2303 }; |
2303 | 2304 |
2304 Timeline.TimelineUIUtils._categoryBreakdownCacheSymbol = Symbol('categoryBreakdo
wnCache'); | 2305 Timeline.TimelineUIUtils._categoryBreakdownCacheSymbol = Symbol('categoryBreakdo
wnCache'); |
OLD | NEW |