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

Side by Side 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: removed accidental change 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @constructor 8 * @constructor
9 * @param {!WebInspector.BackingStorage} backingStorage 9 * @param {!WebInspector.BackingStorage} backingStorage
10 */ 10 */
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 var payload = JSON.parse(result); 711 var payload = JSON.parse(result);
712 callback(payload["args"]["snapshot"]); 712 callback(payload["args"]["snapshot"]);
713 } catch (e) { 713 } catch (e) {
714 WebInspector.console.error("Malformed event data in backing stor age"); 714 WebInspector.console.error("Malformed event data in backing stor age");
715 callback(null); 715 callback(null);
716 } 716 }
717 } 717 }
718 }, 718 },
719 719
720 /** 720 /**
721 * @return {!Promise<?Object>}
722 */
723 objectPromise: function()
724 {
725 return new Promise(this.requestObject.bind(this));
726 },
727
728 /**
721 * @override 729 * @override
722 * @param {?function():!Promise.<?string>} backingStorage 730 * @param {?function():!Promise.<?string>} backingStorage
723 */ 731 */
724 _setBackingStorage: function(backingStorage) 732 _setBackingStorage: function(backingStorage)
725 { 733 {
726 if (!backingStorage) 734 if (!backingStorage)
727 return; 735 return;
728 this._backingStorage = backingStorage; 736 this._backingStorage = backingStorage;
729 this.args = {}; 737 this.args = {};
730 }, 738 },
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 /** 1018 /**
1011 * @return {!Array.<!WebInspector.TracingModel.AsyncEvent>} 1019 * @return {!Array.<!WebInspector.TracingModel.AsyncEvent>}
1012 */ 1020 */
1013 asyncEvents: function() 1021 asyncEvents: function()
1014 { 1022 {
1015 return this._asyncEvents; 1023 return this._asyncEvents;
1016 }, 1024 },
1017 1025
1018 __proto__: WebInspector.TracingModel.NamedObject.prototype 1026 __proto__: WebInspector.TracingModel.NamedObject.prototype
1019 } 1027 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698