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

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

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline 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 24 matching lines...) Expand all
35 35
36 /** 36 /**
37 * @constructor 37 * @constructor
38 * @param {!WebInspector.Target} target 38 * @param {!WebInspector.Target} target
39 * @param {string} snapshotId 39 * @param {string} snapshotId
40 */ 40 */
41 WebInspector.PaintProfilerSnapshot = function(target, snapshotId) 41 WebInspector.PaintProfilerSnapshot = function(target, snapshotId)
42 { 42 {
43 this._target = target; 43 this._target = target;
44 this._id = snapshotId; 44 this._id = snapshotId;
45 } 45 };
46 46
47 /** 47 /**
48 * @param {!WebInspector.Target} target 48 * @param {!WebInspector.Target} target
49 * @param {!Array.<!WebInspector.PictureFragment>} fragments 49 * @param {!Array.<!WebInspector.PictureFragment>} fragments
50 * @return {!Promise<?WebInspector.PaintProfilerSnapshot>} 50 * @return {!Promise<?WebInspector.PaintProfilerSnapshot>}
51 */ 51 */
52 WebInspector.PaintProfilerSnapshot.loadFromFragments = function(target, fragment s) 52 WebInspector.PaintProfilerSnapshot.loadFromFragments = function(target, fragment s)
53 { 53 {
54 return target.layerTreeAgent().loadSnapshot(fragments, (error, snapshotId) = > error ? null : new WebInspector.PaintProfilerSnapshot(target, snapshotId)); 54 return target.layerTreeAgent().loadSnapshot(fragments, (error, snapshotId) = > error ? null : new WebInspector.PaintProfilerSnapshot(target, snapshotId));
55 } 55 };
56 56
57 /** 57 /**
58 * @param {!WebInspector.Target} target 58 * @param {!WebInspector.Target} target
59 * @param {string} encodedPicture 59 * @param {string} encodedPicture
60 * @return {!Promise<?WebInspector.PaintProfilerSnapshot>} 60 * @return {!Promise<?WebInspector.PaintProfilerSnapshot>}
61 */ 61 */
62 WebInspector.PaintProfilerSnapshot.load = function(target, encodedPicture) 62 WebInspector.PaintProfilerSnapshot.load = function(target, encodedPicture)
63 { 63 {
64 var fragment = { 64 var fragment = {
65 x: 0, 65 x: 0,
66 y: 0, 66 y: 0,
67 picture: encodedPicture 67 picture: encodedPicture
68 }; 68 };
69 return WebInspector.PaintProfilerSnapshot.loadFromFragments(target, [fragmen t]); 69 return WebInspector.PaintProfilerSnapshot.loadFromFragments(target, [fragmen t]);
70 } 70 };
71 71
72 WebInspector.PaintProfilerSnapshot.prototype = { 72 WebInspector.PaintProfilerSnapshot.prototype = {
73 dispose: function() 73 dispose: function()
74 { 74 {
75 this._target.layerTreeAgent().releaseSnapshot(this._id); 75 this._target.layerTreeAgent().releaseSnapshot(this._id);
76 }, 76 },
77 77
78 /** 78 /**
79 * @return {!WebInspector.Target} 79 * @return {!WebInspector.Target}
80 */ 80 */
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 /** 137 /**
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