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

Side by Side Diff: tracing/tracing/extras/chrome/blame_context/top_level.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 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>
OLDNEW
« no previous file with comments | « tracing/tracing/extras/chrome/blame_context/render_frame.html ('k') | tracing/tracing/extras/chrome/frame_tree_node.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698