| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 | 7 |
| 8 <link rel="import" href="/tracing/base/base64.html"> | 8 <link rel="import" href="/tracing/base/base64.html"> |
| 9 <link rel="import" href="/tracing/extras/chrome/cc/picture.html"> | 9 <link rel="import" href="/tracing/extras/chrome/cc/picture.html"> |
| 10 <link rel="import" href="/tracing/ui/analysis/generic_object_view.html"> | 10 <link rel="import" href="/tracing/ui/analysis/generic_object_view.html"> |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 /** | 114 /** |
| 115 * PictureDebugger is a view of a PictureSnapshot for inspecting | 115 * PictureDebugger is a view of a PictureSnapshot for inspecting |
| 116 * the picture in detail. (e.g., timing information, etc.) | 116 * the picture in detail. (e.g., timing information, etc.) |
| 117 * | 117 * |
| 118 * @constructor | 118 * @constructor |
| 119 */ | 119 */ |
| 120 var PictureDebugger = tr.ui.b.define('tr-ui-e-chrome-cc-picture-debugger'); | 120 var PictureDebugger = tr.ui.b.define('tr-ui-e-chrome-cc-picture-debugger'); |
| 121 | 121 |
| 122 PictureDebugger.prototype = { | 122 PictureDebugger.prototype = { |
| 123 __proto__: HTMLUnknownElement.prototype, | 123 __proto__: HTMLDivElement.prototype, |
| 124 | 124 |
| 125 decorate: function() { | 125 decorate: function() { |
| 126 var node = tr.ui.b.instantiateTemplate( | 126 var node = tr.ui.b.instantiateTemplate( |
| 127 '#tr-ui-e-chrome-cc-picture-debugger-template', THIS_DOC); | 127 '#tr-ui-e-chrome-cc-picture-debugger-template', THIS_DOC); |
| 128 | 128 |
| 129 Polymer.dom(this).appendChild(node); | 129 Polymer.dom(this).appendChild(node); |
| 130 | 130 |
| 131 this.pictureAsImageData_ = undefined; | 131 this.pictureAsImageData_ = undefined; |
| 132 this.showOverdraw_ = false; | 132 this.showOverdraw_ = false; |
| 133 this.zoomScaleValue_ = 1; | 133 this.zoomScaleValue_ = 1; |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 y: e.clientY - this.rasterArea_.offsetTop | 486 y: e.clientY - this.rasterArea_.offsetTop |
| 487 }; | 487 }; |
| 488 } | 488 } |
| 489 }; | 489 }; |
| 490 | 490 |
| 491 return { | 491 return { |
| 492 PictureDebugger: PictureDebugger | 492 PictureDebugger: PictureDebugger |
| 493 }; | 493 }; |
| 494 }); | 494 }); |
| 495 </script> | 495 </script> |
| OLD | NEW |