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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 // Define row and header height, should be in sync with styles for timeline grap hs. 1267 // Define row and header height, should be in sync with styles for timeline grap hs.
1268 Timeline.TimelinePanel.rowHeight = 18; 1268 Timeline.TimelinePanel.rowHeight = 18;
1269 Timeline.TimelinePanel.headerHeight = 20; 1269 Timeline.TimelinePanel.headerHeight = 20;
1270 1270
1271 /** 1271 /**
1272 * @interface 1272 * @interface
1273 */ 1273 */
1274 Timeline.TimelineLifecycleDelegate = function() {}; 1274 Timeline.TimelineLifecycleDelegate = function() {};
1275 1275
1276 Timeline.TimelineLifecycleDelegate.prototype = { 1276 Timeline.TimelineLifecycleDelegate.prototype = {
1277 recordingStarted: function() {}, 1277 recordingStarted() {},
1278 1278
1279 /** 1279 /**
1280 * @param {number} usage 1280 * @param {number} usage
1281 */ 1281 */
1282 recordingProgress: function(usage) {}, 1282 recordingProgress(usage) {},
1283 1283
1284 loadingStarted: function() {}, 1284 loadingStarted() {},
1285 1285
1286 /** 1286 /**
1287 * @param {number=} progress 1287 * @param {number=} progress
1288 */ 1288 */
1289 loadingProgress: function(progress) {}, 1289 loadingProgress(progress) {},
1290 1290
1291 /** 1291 /**
1292 * @param {boolean} success 1292 * @param {boolean} success
1293 */ 1293 */
1294 loadingComplete: function(success) {}, 1294 loadingComplete(success) {},
1295 }; 1295 };
1296 1296
1297 /** 1297 /**
1298 * @unrestricted 1298 * @unrestricted
1299 */ 1299 */
1300 Timeline.TimelineDetailsView = class extends UI.TabbedPane { 1300 Timeline.TimelineDetailsView = class extends UI.TabbedPane {
1301 /** 1301 /**
1302 * @param {!TimelineModel.TimelineModel} timelineModel 1302 * @param {!TimelineModel.TimelineModel} timelineModel
1303 * @param {!Array<!TimelineModel.TimelineModel.Filter>} filters 1303 * @param {!Array<!TimelineModel.TimelineModel.Filter>} filters
1304 * @param {!Timeline.TimelineModeViewDelegate} delegate 1304 * @param {!Timeline.TimelineModeViewDelegate} delegate
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 /** 1485 /**
1486 * @interface 1486 * @interface
1487 * @extends {Common.EventTarget} 1487 * @extends {Common.EventTarget}
1488 */ 1488 */
1489 Timeline.TimelineModeView = function() {}; 1489 Timeline.TimelineModeView = function() {};
1490 1490
1491 Timeline.TimelineModeView.prototype = { 1491 Timeline.TimelineModeView.prototype = {
1492 /** 1492 /**
1493 * @return {!UI.Widget} 1493 * @return {!UI.Widget}
1494 */ 1494 */
1495 view: function() {}, 1495 view() {},
1496 1496
1497 dispose: function() {}, 1497 dispose() {},
1498 1498
1499 /** 1499 /**
1500 * @return {?Element} 1500 * @return {?Element}
1501 */ 1501 */
1502 resizerElement: function() {}, 1502 resizerElement() {},
1503 1503
1504 reset: function() {}, 1504 reset() {},
1505 1505
1506 refreshRecords: function() {}, 1506 refreshRecords() {},
1507 1507
1508 /** 1508 /**
1509 * @param {?SDK.TracingModel.Event} event 1509 * @param {?SDK.TracingModel.Event} event
1510 * @param {string=} regex 1510 * @param {string=} regex
1511 * @param {boolean=} select 1511 * @param {boolean=} select
1512 */ 1512 */
1513 highlightSearchResult: function(event, regex, select) {}, 1513 highlightSearchResult(event, regex, select) {},
1514 1514
1515 /** 1515 /**
1516 * @param {number} startTime 1516 * @param {number} startTime
1517 * @param {number} endTime 1517 * @param {number} endTime
1518 */ 1518 */
1519 setWindowTimes: function(startTime, endTime) {}, 1519 setWindowTimes(startTime, endTime) {},
1520 1520
1521 /** 1521 /**
1522 * @param {?Timeline.TimelineSelection} selection 1522 * @param {?Timeline.TimelineSelection} selection
1523 */ 1523 */
1524 setSelection: function(selection) {}, 1524 setSelection(selection) {},
1525 1525
1526 /** 1526 /**
1527 * @param {?SDK.TracingModel.Event} event 1527 * @param {?SDK.TracingModel.Event} event
1528 */ 1528 */
1529 highlightEvent: function(event) {} 1529 highlightEvent(event) {}
1530 }; 1530 };
1531 1531
1532 /** 1532 /**
1533 * @interface 1533 * @interface
1534 */ 1534 */
1535 Timeline.TimelineModeViewDelegate = function() {}; 1535 Timeline.TimelineModeViewDelegate = function() {};
1536 1536
1537 Timeline.TimelineModeViewDelegate.prototype = { 1537 Timeline.TimelineModeViewDelegate.prototype = {
1538 /** 1538 /**
1539 * @param {number} startTime 1539 * @param {number} startTime
1540 * @param {number} endTime 1540 * @param {number} endTime
1541 */ 1541 */
1542 requestWindowTimes: function(startTime, endTime) {}, 1542 requestWindowTimes(startTime, endTime) {},
1543 1543
1544 /** 1544 /**
1545 * @param {?Timeline.TimelineSelection} selection 1545 * @param {?Timeline.TimelineSelection} selection
1546 * @param {!Timeline.TimelinePanel.DetailsTab=} preferredTab 1546 * @param {!Timeline.TimelinePanel.DetailsTab=} preferredTab
1547 */ 1547 */
1548 select: function(selection, preferredTab) {}, 1548 select(selection, preferredTab) {},
1549 1549
1550 /** 1550 /**
1551 * @param {number} time 1551 * @param {number} time
1552 */ 1552 */
1553 selectEntryAtTime: function(time) {}, 1553 selectEntryAtTime(time) {},
1554 1554
1555 /** 1555 /**
1556 * @param {!Node} node 1556 * @param {!Node} node
1557 */ 1557 */
1558 showInDetails: function(node) {}, 1558 showInDetails(node) {},
1559 1559
1560 /** 1560 /**
1561 * @param {?SDK.TracingModel.Event} event 1561 * @param {?SDK.TracingModel.Event} event
1562 */ 1562 */
1563 highlightEvent: function(event) {} 1563 highlightEvent(event) {}
1564 }; 1564 };
1565 1565
1566 /** 1566 /**
1567 * @unrestricted 1567 * @unrestricted
1568 */ 1568 */
1569 Timeline.TimelineCategoryFilter = class extends TimelineModel.TimelineModel.Filt er { 1569 Timeline.TimelineCategoryFilter = class extends TimelineModel.TimelineModel.Filt er {
1570 constructor() { 1570 constructor() {
1571 super(); 1571 super();
1572 } 1572 }
1573 1573
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 /** 2002 /**
2003 * @param {!Event} event 2003 * @param {!Event} event
2004 */ 2004 */
2005 _onKeyDown(event) { 2005 _onKeyDown(event) {
2006 if (event.keyCode === UI.KeyboardShortcut.Keys.Enter.code) { 2006 if (event.keyCode === UI.KeyboardShortcut.Keys.Enter.code) {
2007 event.preventDefault(); 2007 event.preventDefault();
2008 this._apply(); 2008 this._apply();
2009 } 2009 }
2010 } 2010 }
2011 }; 2011 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698