| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <!-- |
| 3 Copyright 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/extras/chrome/blame_context/blame_context.html
"> |
| 9 |
| 10 <script> |
| 11 'use strict'; |
| 12 |
| 13 /** |
| 14 * @fileoverview Trace Viewer side's correspondence of Chrome's |
| 15 * content::TopLevelBlameContext class. |
| 16 * |
| 17 */ |
| 18 tr.exportTo('tr.e.chrome', function() { |
| 19 var BlameContextSnapshot = tr.e.chrome.BlameContextSnapshot; |
| 20 var BlameContextInstance = tr.e.chrome.BlameContextInstance; |
| 21 |
| 22 function TopLevelSnapshot() { |
| 23 BlameContextSnapshot.apply(this, arguments); |
| 24 } |
| 25 |
| 26 TopLevelSnapshot.prototype = { |
| 27 __proto__: BlameContextSnapshot.prototype, |
| 28 |
| 29 get userFriendlyName() { |
| 30 return 'TopLevel'; |
| 31 } |
| 32 }; |
| 33 |
| 34 tr.model.ObjectSnapshot.register( |
| 35 TopLevelSnapshot, |
| 36 {typeName: 'TopLevel'}); |
| 37 |
| 38 function TopLevelInstance() { |
| 39 BlameContextInstance.apply(this, arguments); |
| 40 } |
| 41 |
| 42 TopLevelInstance.prototype = { |
| 43 __proto__: BlameContextInstance.prototype, |
| 44 |
| 45 get blameContextType() { |
| 46 return 'TopLevel'; |
| 47 } |
| 48 }; |
| 49 |
| 50 tr.model.ObjectInstance.register( |
| 51 TopLevelInstance, |
| 52 {typeName: 'TopLevel'}); |
| 53 |
| 54 return { |
| 55 TopLevelSnapshot: TopLevelSnapshot, |
| 56 TopLevelInstance: TopLevelInstance |
| 57 }; |
| 58 }); |
| 59 </script> |
| OLD | NEW |