| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <!-- | |
| 3 Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
| 4 Use of this source code is governed by a BSD-style license that can be | |
| 5 found in the LICENSE file. | |
| 6 --> | |
| 7 | |
| 8 <link rel="import" href="/tracing/model/object_instance.html"> | |
| 9 | |
| 10 <script> | |
| 11 'use strict'; | |
| 12 | |
| 13 tr.exportTo('tr.e.chrome', function() { | |
| 14 var constants = tr.e.cc.constants; | |
| 15 | |
| 16 var ObjectSnapshot = tr.model.ObjectSnapshot; | |
| 17 var ObjectInstance = tr.model.ObjectInstance; | |
| 18 | |
| 19 function RenderFrameSnapshot() { | |
| 20 ObjectSnapshot.apply(this, arguments); | |
| 21 } | |
| 22 | |
| 23 RenderFrameSnapshot.prototype = { | |
| 24 __proto__: ObjectSnapshot.prototype, | |
| 25 | |
| 26 preInitialize: function() { | |
| 27 }, | |
| 28 | |
| 29 initialize: function() { | |
| 30 }, | |
| 31 | |
| 32 referencedAt: function(item, object, field) { | |
| 33 if (item instanceof tr.e.chrome.FrameTreeNodeSnapshot && | |
| 34 object === item.args && | |
| 35 field === 'RenderFrame') { | |
| 36 this.args.frameTreeNode = item; | |
| 37 } | |
| 38 }, | |
| 39 | |
| 40 get userFriendlyName() { | |
| 41 return 'RenderFrame'; | |
| 42 } | |
| 43 }; | |
| 44 | |
| 45 ObjectSnapshot.register( | |
| 46 RenderFrameSnapshot, | |
| 47 {typeName: 'RenderFrame'}); | |
| 48 | |
| 49 function RenderFrameInstance() { | |
| 50 ObjectInstance.apply(this, arguments); | |
| 51 } | |
| 52 | |
| 53 RenderFrameInstance.prototype = { | |
| 54 __proto__: ObjectInstance.prototype | |
| 55 }; | |
| 56 | |
| 57 ObjectInstance.register( | |
| 58 RenderFrameInstance, | |
| 59 {typeName: 'RenderFrame'}); | |
| 60 | |
| 61 return { | |
| 62 RenderFrameSnapshot: RenderFrameSnapshot, | |
| 63 RenderFrameInstance: RenderFrameInstance | |
| 64 }; | |
| 65 }); | |
| 66 </script> | |
| OLD | NEW |