Chromium Code Reviews| Index: tracing/tracing/extras/chrome/blame_context/frame.html |
| diff --git a/tracing/tracing/extras/chrome/blame_context/frame.html b/tracing/tracing/extras/chrome/blame_context/frame.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d4c6769e5360997307d0cc314222dbfac7a35526 |
| --- /dev/null |
| +++ b/tracing/tracing/extras/chrome/blame_context/frame.html |
| @@ -0,0 +1,56 @@ |
| +<!DOCTYPE html> |
| +<!-- |
| +Copyright (c) 2016 The Chromium Authors. All rights reserved. |
|
Sami
2016/05/24 09:49:57
nit: no "(c)" needed anymore (here and elsewhere).
Xiaocheng
2016/05/25 10:17:46
Done.
|
| +Use of this source code is governed by a BSD-style license that can be |
| +found in the LICENSE file. |
| +--> |
| + |
| +<link rel="import" href="/tracing/extras/chrome/blame_context/blame_context.html"> |
| + |
| +<script> |
| +'use strict'; |
| + |
| +tr.exportTo('tr.e.chrome', function() { |
| + var constants = tr.e.cc.constants; |
| + |
| + var BlameContextSnapshot = tr.e.chrome.BlameContextSnapshot; |
| + var BlameContextInstance = tr.e.chrome.BlameContextInstance; |
| + |
| + function FrameSnapshot() { |
| + BlameContextSnapshot.apply(this, arguments); |
| + } |
| + |
| + FrameSnapshot.prototype = { |
| + __proto__: BlameContextSnapshot.prototype, |
| + |
| + setFrameTreeNode: function(frameTreeNode) { |
| + this.args.FrameTreeNode = frameTreeNode; |
| + }, |
| + |
| + get userFriendlyName() { |
| + return 'Frame'; |
| + } |
| + }; |
| + |
| + tr.model.ObjectSnapshot.register( |
| + FrameSnapshot, |
| + {typeName: 'Frame'}); |
| + |
| + function FrameInstance() { |
| + BlameContextInstance.apply(this, arguments); |
| + } |
| + |
| + FrameInstance.prototype = { |
| + __proto__: BlameContextInstance.prototype |
| + }; |
| + |
| + tr.model.ObjectInstance.register( |
| + FrameInstance, |
| + {typeName: 'Frame'}); |
| + |
| + return { |
| + FrameSnapshot: FrameSnapshot, |
| + FrameInstance: FrameInstance |
| + }; |
| +}); |
| +</script> |