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

Unified Diff: Source/devtools/front_end/sdk/TracingModel.js

Issue 1184383002: DevTools: adopt FilmStripModel to new screenshot recorder trace format (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/sdk/TracingModel.js
diff --git a/Source/devtools/front_end/sdk/TracingModel.js b/Source/devtools/front_end/sdk/TracingModel.js
index 5259db5484e2208aad02df0d350f1e0f19a720f4..e5e1d7cdd0e40fa2c491873f76cc39c6d663ad05 100644
--- a/Source/devtools/front_end/sdk/TracingModel.js
+++ b/Source/devtools/front_end/sdk/TracingModel.js
@@ -688,7 +688,7 @@ WebInspector.TracingModel.ObjectSnapshot.fromPayload = function(payload, thread)
WebInspector.TracingModel.ObjectSnapshot.prototype = {
/**
- * @param {function(?Object)} callback
+ * @param {function(?)} callback
*/
requestObject: function(callback)
{
@@ -718,8 +718,18 @@ WebInspector.TracingModel.ObjectSnapshot.prototype = {
},
/**
+ * @return {!Promise<?>}
+ */
+ objectPromise: function()
+ {
+ if (!this._objectPromise)
+ this._objectPromise = new Promise(this.requestObject.bind(this));
+ return this._objectPromise;
+ },
+
+ /**
* @override
- * @param {?function():!Promise.<?string>} backingStorage
+ * @param {?function():!Promise.<?>} backingStorage
*/
_setBackingStorage: function(backingStorage)
{
« no previous file with comments | « Source/devtools/front_end/components_lazy/FilmStripView.js ('k') | Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698