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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/PaintProfiler.js

Issue 2453673002: [DevTools] Scope common protocol infrastructure under Protocol namespace in a separate module. (Closed)
Patch Set: Created 4 years, 1 month 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
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 }, 84 },
85 85
86 /** 86 /**
87 * @param {?number} firstStep 87 * @param {?number} firstStep
88 * @param {?number} lastStep 88 * @param {?number} lastStep
89 * @param {?number} scale 89 * @param {?number} scale
90 * @param {function(string=)} callback 90 * @param {function(string=)} callback
91 */ 91 */
92 requestImage: function(firstStep, lastStep, scale, callback) 92 requestImage: function(firstStep, lastStep, scale, callback)
93 { 93 {
94 var wrappedCallback = InspectorBackend.wrapClientCallback(callback, "Lay erTreeAgent.replaySnapshot(): "); 94 var wrappedCallback = Protocol.wrapClientCallback(callback, "LayerTreeAg ent.replaySnapshot(): ");
95 this._target.layerTreeAgent().replaySnapshot(this._id, firstStep || unde fined, lastStep || undefined, scale || 1.0, wrappedCallback); 95 this._target.layerTreeAgent().replaySnapshot(this._id, firstStep || unde fined, lastStep || undefined, scale || 1.0, wrappedCallback);
96 }, 96 },
97 97
98 /** 98 /**
99 * @param {?DOMAgent.Rect} clipRect 99 * @param {?DOMAgent.Rect} clipRect
100 * @param {function(!Array.<!LayerTreeAgent.PaintProfile>=)} callback 100 * @param {function(!Array.<!LayerTreeAgent.PaintProfile>=)} callback
101 */ 101 */
102 profile: function(clipRect, callback) 102 profile: function(clipRect, callback)
103 { 103 {
104 var wrappedCallback = InspectorBackend.wrapClientCallback(callback, "Lay erTreeAgent.profileSnapshot(): "); 104 var wrappedCallback = Protocol.wrapClientCallback(callback, "LayerTreeAg ent.profileSnapshot(): ");
105 this._target.layerTreeAgent().profileSnapshot(this._id, 5, 1, clipRect | | undefined, wrappedCallback); 105 this._target.layerTreeAgent().profileSnapshot(this._id, 5, 1, clipRect | | undefined, wrappedCallback);
106 }, 106 },
107 107
108 /** 108 /**
109 * @param {function(!Array.<!WebInspector.PaintProfilerLogItem>=)} callback 109 * @param {function(!Array.<!WebInspector.PaintProfilerLogItem>=)} callback
110 */ 110 */
111 commandLog: function(callback) 111 commandLog: function(callback)
112 { 112 {
113 /** 113 /**
114 * @param {?string} error 114 * @param {?string} error
(...skipping 23 matching lines...) Expand all
138 * @constructor 138 * @constructor
139 * @param {!WebInspector.RawPaintProfilerLogItem} rawEntry 139 * @param {!WebInspector.RawPaintProfilerLogItem} rawEntry
140 * @param {number} commandIndex 140 * @param {number} commandIndex
141 */ 141 */
142 WebInspector.PaintProfilerLogItem = function(rawEntry, commandIndex) 142 WebInspector.PaintProfilerLogItem = function(rawEntry, commandIndex)
143 { 143 {
144 this.method = rawEntry.method; 144 this.method = rawEntry.method;
145 this.params = rawEntry.params; 145 this.params = rawEntry.params;
146 this.commandIndex = commandIndex; 146 this.commandIndex = commandIndex;
147 }; 147 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698