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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (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 19 matching lines...) Expand all
30 /** 30 /**
31 * @interface 31 * @interface
32 */ 32 */
33 UI.FlameChartDelegate = function() {}; 33 UI.FlameChartDelegate = function() {};
34 34
35 UI.FlameChartDelegate.prototype = { 35 UI.FlameChartDelegate.prototype = {
36 /** 36 /**
37 * @param {number} startTime 37 * @param {number} startTime
38 * @param {number} endTime 38 * @param {number} endTime
39 */ 39 */
40 requestWindowTimes: function(startTime, endTime) {}, 40 requestWindowTimes(startTime, endTime) {},
41 41
42 /** 42 /**
43 * @param {number} startTime 43 * @param {number} startTime
44 * @param {number} endTime 44 * @param {number} endTime
45 */ 45 */
46 updateRangeSelection: function(startTime, endTime) {}, 46 updateRangeSelection(startTime, endTime) {},
47 }; 47 };
48 48
49 /** 49 /**
50 * @unrestricted 50 * @unrestricted
51 */ 51 */
52 UI.FlameChart = class extends UI.ChartViewport { 52 UI.FlameChart = class extends UI.ChartViewport {
53 /** 53 /**
54 * @param {!UI.FlameChartDataProvider} dataProvider 54 * @param {!UI.FlameChartDataProvider} dataProvider
55 * @param {!UI.FlameChartDelegate} flameChartDelegate 55 * @param {!UI.FlameChartDelegate} flameChartDelegate
56 * @param {!Common.Setting=} groupExpansionSetting 56 * @param {!Common.Setting=} groupExpansionSetting
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 this.flowStartLevels = []; 1258 this.flowStartLevels = [];
1259 this.flowEndTimes = []; 1259 this.flowEndTimes = [];
1260 this.flowEndLevels = []; 1260 this.flowEndLevels = [];
1261 } 1261 }
1262 }; 1262 };
1263 1263
1264 UI.FlameChartDataProvider.prototype = { 1264 UI.FlameChartDataProvider.prototype = {
1265 /** 1265 /**
1266 * @return {number} 1266 * @return {number}
1267 */ 1267 */
1268 barHeight: function() {}, 1268 barHeight() {},
1269 1269
1270 /** 1270 /**
1271 * @return {number} 1271 * @return {number}
1272 */ 1272 */
1273 minimumBoundary: function() {}, 1273 minimumBoundary() {},
1274 1274
1275 /** 1275 /**
1276 * @return {number} 1276 * @return {number}
1277 */ 1277 */
1278 totalTime: function() {}, 1278 totalTime() {},
1279 1279
1280 /** 1280 /**
1281 * @param {number} value 1281 * @param {number} value
1282 * @param {number=} precision 1282 * @param {number=} precision
1283 * @return {string} 1283 * @return {string}
1284 */ 1284 */
1285 formatValue: function(value, precision) {}, 1285 formatValue(value, precision) {},
1286 1286
1287 /** 1287 /**
1288 * @return {number} 1288 * @return {number}
1289 */ 1289 */
1290 maxStackDepth: function() {}, 1290 maxStackDepth() {},
1291 1291
1292 /** 1292 /**
1293 * @return {?UI.FlameChart.TimelineData} 1293 * @return {?UI.FlameChart.TimelineData}
1294 */ 1294 */
1295 timelineData: function() {}, 1295 timelineData() {},
1296 1296
1297 /** 1297 /**
1298 * @param {number} entryIndex 1298 * @param {number} entryIndex
1299 * @return {?Element} 1299 * @return {?Element}
1300 */ 1300 */
1301 prepareHighlightedEntryInfo: function(entryIndex) {}, 1301 prepareHighlightedEntryInfo(entryIndex) {},
1302 1302
1303 /** 1303 /**
1304 * @param {number} entryIndex 1304 * @param {number} entryIndex
1305 * @return {boolean} 1305 * @return {boolean}
1306 */ 1306 */
1307 canJumpToEntry: function(entryIndex) {}, 1307 canJumpToEntry(entryIndex) {},
1308 1308
1309 /** 1309 /**
1310 * @param {number} entryIndex 1310 * @param {number} entryIndex
1311 * @return {?string} 1311 * @return {?string}
1312 */ 1312 */
1313 entryTitle: function(entryIndex) {}, 1313 entryTitle(entryIndex) {},
1314 1314
1315 /** 1315 /**
1316 * @param {number} entryIndex 1316 * @param {number} entryIndex
1317 * @return {?string} 1317 * @return {?string}
1318 */ 1318 */
1319 entryFont: function(entryIndex) {}, 1319 entryFont(entryIndex) {},
1320 1320
1321 /** 1321 /**
1322 * @param {number} entryIndex 1322 * @param {number} entryIndex
1323 * @return {string} 1323 * @return {string}
1324 */ 1324 */
1325 entryColor: function(entryIndex) {}, 1325 entryColor(entryIndex) {},
1326 1326
1327 /** 1327 /**
1328 * @param {number} entryIndex 1328 * @param {number} entryIndex
1329 * @param {!CanvasRenderingContext2D} context 1329 * @param {!CanvasRenderingContext2D} context
1330 * @param {?string} text 1330 * @param {?string} text
1331 * @param {number} barX 1331 * @param {number} barX
1332 * @param {number} barY 1332 * @param {number} barY
1333 * @param {number} barWidth 1333 * @param {number} barWidth
1334 * @param {number} barHeight 1334 * @param {number} barHeight
1335 * @param {number} unclippedBarX 1335 * @param {number} unclippedBarX
1336 * @param {number} timeToPixels 1336 * @param {number} timeToPixels
1337 * @return {boolean} 1337 * @return {boolean}
1338 */ 1338 */
1339 decorateEntry: function(entryIndex, context, text, barX, barY, barWidth, barHe ight, unclippedBarX, timeToPixels) {}, 1339 decorateEntry(entryIndex, context, text, barX, barY, barWidth, barHeight, uncl ippedBarX, timeToPixels) {},
1340 1340
1341 /** 1341 /**
1342 * @param {number} entryIndex 1342 * @param {number} entryIndex
1343 * @return {boolean} 1343 * @return {boolean}
1344 */ 1344 */
1345 forceDecoration: function(entryIndex) {}, 1345 forceDecoration(entryIndex) {},
1346 1346
1347 /** 1347 /**
1348 * @param {number} entryIndex 1348 * @param {number} entryIndex
1349 * @return {string} 1349 * @return {string}
1350 */ 1350 */
1351 textColor: function(entryIndex) {}, 1351 textColor(entryIndex) {},
1352 1352
1353 /** 1353 /**
1354 * @return {number} 1354 * @return {number}
1355 */ 1355 */
1356 textBaseline: function() {}, 1356 textBaseline() {},
1357 1357
1358 /** 1358 /**
1359 * @return {number} 1359 * @return {number}
1360 */ 1360 */
1361 textPadding: function() {}, 1361 textPadding() {},
1362 1362
1363 /** 1363 /**
1364 * @return {number} 1364 * @return {number}
1365 */ 1365 */
1366 paddingLeft: function() {}, 1366 paddingLeft() {},
1367 }; 1367 };
1368 1368
1369 /** 1369 /**
1370 * @interface 1370 * @interface
1371 */ 1371 */
1372 UI.FlameChartMarker = function() {}; 1372 UI.FlameChartMarker = function() {};
1373 1373
1374 UI.FlameChartMarker.prototype = { 1374 UI.FlameChartMarker.prototype = {
1375 /** 1375 /**
1376 * @return {number} 1376 * @return {number}
1377 */ 1377 */
1378 startTime: function() {}, 1378 startTime() {},
1379 1379
1380 /** 1380 /**
1381 * @return {string} 1381 * @return {string}
1382 */ 1382 */
1383 color: function() {}, 1383 color() {},
1384 1384
1385 /** 1385 /**
1386 * @return {string} 1386 * @return {string}
1387 */ 1387 */
1388 title: function() {}, 1388 title() {},
1389 1389
1390 /** 1390 /**
1391 * @param {!CanvasRenderingContext2D} context 1391 * @param {!CanvasRenderingContext2D} context
1392 * @param {number} x 1392 * @param {number} x
1393 * @param {number} height 1393 * @param {number} height
1394 * @param {number} pixelsPerMillisecond 1394 * @param {number} pixelsPerMillisecond
1395 */ 1395 */
1396 draw: function(context, x, height, pixelsPerMillisecond) {}, 1396 draw(context, x, height, pixelsPerMillisecond) {},
1397 }; 1397 };
1398 1398
1399 /** @enum {symbol} */ 1399 /** @enum {symbol} */
1400 UI.FlameChart.Events = { 1400 UI.FlameChart.Events = {
1401 EntrySelected: Symbol('EntrySelected') 1401 EntrySelected: Symbol('EntrySelected')
1402 }; 1402 };
1403 1403
1404 /** 1404 /**
1405 * @unrestricted 1405 * @unrestricted
1406 */ 1406 */
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 } 1546 }
1547 1547
1548 /** 1548 /**
1549 * @override 1549 * @override
1550 * @return {number} 1550 * @return {number}
1551 */ 1551 */
1552 boundarySpan() { 1552 boundarySpan() {
1553 return this._maximumBoundaries - this._minimumBoundaries; 1553 return this._maximumBoundaries - this._minimumBoundaries;
1554 } 1554 }
1555 }; 1555 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698