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

Unified Diff: tracing/tracing/extras/chrome/blame_context/blame_context.html

Issue 1996303002: [Tracing] Introduce Frame Data Side Panel (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Respond to ROI; Merge Frame and FTN Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: tracing/tracing/extras/chrome/blame_context/blame_context.html
diff --git a/tracing/tracing/extras/chrome/render_frame.html b/tracing/tracing/extras/chrome/blame_context/blame_context.html
similarity index 64%
rename from tracing/tracing/extras/chrome/render_frame.html
rename to tracing/tracing/extras/chrome/blame_context/blame_context.html
index 289477d18adf50c97f02dda62438efb67115df4d..acc00004c58474c2c2c525ca7fca10610130a44e 100644
--- a/tracing/tracing/extras/chrome/render_frame.html
+++ b/tracing/tracing/extras/chrome/blame_context/blame_context.html
@@ -5,6 +5,7 @@ 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/model/event_set.html">
<link rel="import" href="/tracing/model/object_instance.html">
<script>
@@ -16,11 +17,12 @@ tr.exportTo('tr.e.chrome', function() {
var ObjectSnapshot = tr.model.ObjectSnapshot;
var ObjectInstance = tr.model.ObjectInstance;
- function RenderFrameSnapshot() {
+ function BlameContextSnapshot() {
ObjectSnapshot.apply(this, arguments);
+ this.eventSet = new tr.model.EventSet();
}
- RenderFrameSnapshot.prototype = {
+ BlameContextSnapshot.prototype = {
__proto__: ObjectSnapshot.prototype,
preInitialize: function() {
@@ -30,29 +32,21 @@ tr.exportTo('tr.e.chrome', function() {
},
get userFriendlyName() {
- return 'RenderFrame';
+ return 'BlameContext';
}
};
- ObjectSnapshot.register(
- RenderFrameSnapshot,
- {typeName: 'RenderFrame'});
-
- function RenderFrameInstance() {
+ function BlameContextInstance() {
ObjectInstance.apply(this, arguments);
}
- RenderFrameInstance.prototype = {
+ BlameContextInstance.prototype = {
__proto__: ObjectInstance.prototype
};
- ObjectInstance.register(
- RenderFrameInstance,
- {typeName: 'RenderFrame'});
-
return {
- RenderFrameSnapshot: RenderFrameSnapshot,
- RenderFrameInstance: RenderFrameInstance
+ BlameContextSnapshot: BlameContextSnapshot,
+ BlameContextInstance: BlameContextInstance
};
});
</script>

Powered by Google App Engine
This is Rietveld 408576698