Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: tracing/tracing/extras/chrome/render_frame.html

Issue 2016213002: Introduce base classes for blame contexts (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Remove isTracedByRenderer from blame_context_test.html Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW
« no previous file with comments | « tracing/tracing/extras/chrome/frame_tree_node.html ('k') | tracing/tracing/extras/chrome_config.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698