| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2015 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 /** | 127 /** |
| 128 * DisplayItemDebugger is a view of a DisplayItemListSnapshot for inspecting | 128 * DisplayItemDebugger is a view of a DisplayItemListSnapshot for inspecting |
| 129 * a display item list and the pictures within it. | 129 * a display item list and the pictures within it. |
| 130 * | 130 * |
| 131 * @constructor | 131 * @constructor |
| 132 */ | 132 */ |
| 133 var DisplayItemDebugger = tr.ui.b.define( | 133 var DisplayItemDebugger = tr.ui.b.define( |
| 134 'tr-ui-e-chrome-cc-display-item-debugger'); | 134 'tr-ui-e-chrome-cc-display-item-debugger'); |
| 135 | 135 |
| 136 DisplayItemDebugger.prototype = { | 136 DisplayItemDebugger.prototype = { |
| 137 __proto__: HTMLUnknownElement.prototype, | 137 __proto__: HTMLDivElement.prototype, |
| 138 | 138 |
| 139 decorate: function() { | 139 decorate: function() { |
| 140 var node = tr.ui.b.instantiateTemplate( | 140 var node = tr.ui.b.instantiateTemplate( |
| 141 '#tr-ui-e-chrome-cc-display-item-debugger-template', THIS_DOC); | 141 '#tr-ui-e-chrome-cc-display-item-debugger-template', THIS_DOC); |
| 142 | 142 |
| 143 Polymer.dom(this).appendChild(node); | 143 Polymer.dom(this).appendChild(node); |
| 144 | 144 |
| 145 this.pictureAsImageData_ = undefined; | 145 this.pictureAsImageData_ = undefined; |
| 146 this.zoomScaleValue_ = 1; | 146 this.zoomScaleValue_ = 1; |
| 147 | 147 |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 var rawData = tr.b.Base64.atob(this.picture_.getBase64SkpData()); | 458 var rawData = tr.b.Base64.atob(this.picture_.getBase64SkpData()); |
| 459 this.saveFile_(this.skpFilename_.value, rawData); | 459 this.saveFile_(this.skpFilename_.value, rawData); |
| 460 } | 460 } |
| 461 }; | 461 }; |
| 462 | 462 |
| 463 return { | 463 return { |
| 464 DisplayItemDebugger: DisplayItemDebugger | 464 DisplayItemDebugger: DisplayItemDebugger |
| 465 }; | 465 }; |
| 466 }); | 466 }); |
| 467 </script> | 467 </script> |
| OLD | NEW |