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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js
index 3ceb8f8d5b721ad2a5dd2e495ed4af322bd39d50..50e553b555dda47cf73d17367b04861219f8aaa8 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js
@@ -37,13 +37,13 @@ UI.FlameChartDelegate.prototype = {
* @param {number} startTime
* @param {number} endTime
*/
- requestWindowTimes: function(startTime, endTime) {},
+ requestWindowTimes(startTime, endTime) {},
/**
* @param {number} startTime
* @param {number} endTime
*/
- updateRangeSelection: function(startTime, endTime) {},
+ updateRangeSelection(startTime, endTime) {},
};
/**
@@ -1265,64 +1265,64 @@ UI.FlameChartDataProvider.prototype = {
/**
* @return {number}
*/
- barHeight: function() {},
+ barHeight() {},
/**
* @return {number}
*/
- minimumBoundary: function() {},
+ minimumBoundary() {},
/**
* @return {number}
*/
- totalTime: function() {},
+ totalTime() {},
/**
* @param {number} value
* @param {number=} precision
* @return {string}
*/
- formatValue: function(value, precision) {},
+ formatValue(value, precision) {},
/**
* @return {number}
*/
- maxStackDepth: function() {},
+ maxStackDepth() {},
/**
* @return {?UI.FlameChart.TimelineData}
*/
- timelineData: function() {},
+ timelineData() {},
/**
* @param {number} entryIndex
* @return {?Element}
*/
- prepareHighlightedEntryInfo: function(entryIndex) {},
+ prepareHighlightedEntryInfo(entryIndex) {},
/**
* @param {number} entryIndex
* @return {boolean}
*/
- canJumpToEntry: function(entryIndex) {},
+ canJumpToEntry(entryIndex) {},
/**
* @param {number} entryIndex
* @return {?string}
*/
- entryTitle: function(entryIndex) {},
+ entryTitle(entryIndex) {},
/**
* @param {number} entryIndex
* @return {?string}
*/
- entryFont: function(entryIndex) {},
+ entryFont(entryIndex) {},
/**
* @param {number} entryIndex
* @return {string}
*/
- entryColor: function(entryIndex) {},
+ entryColor(entryIndex) {},
/**
* @param {number} entryIndex
@@ -1336,34 +1336,34 @@ UI.FlameChartDataProvider.prototype = {
* @param {number} timeToPixels
* @return {boolean}
*/
- decorateEntry: function(entryIndex, context, text, barX, barY, barWidth, barHeight, unclippedBarX, timeToPixels) {},
+ decorateEntry(entryIndex, context, text, barX, barY, barWidth, barHeight, unclippedBarX, timeToPixels) {},
/**
* @param {number} entryIndex
* @return {boolean}
*/
- forceDecoration: function(entryIndex) {},
+ forceDecoration(entryIndex) {},
/**
* @param {number} entryIndex
* @return {string}
*/
- textColor: function(entryIndex) {},
+ textColor(entryIndex) {},
/**
* @return {number}
*/
- textBaseline: function() {},
+ textBaseline() {},
/**
* @return {number}
*/
- textPadding: function() {},
+ textPadding() {},
/**
* @return {number}
*/
- paddingLeft: function() {},
+ paddingLeft() {},
};
/**
@@ -1375,17 +1375,17 @@ UI.FlameChartMarker.prototype = {
/**
* @return {number}
*/
- startTime: function() {},
+ startTime() {},
/**
* @return {string}
*/
- color: function() {},
+ color() {},
/**
* @return {string}
*/
- title: function() {},
+ title() {},
/**
* @param {!CanvasRenderingContext2D} context
@@ -1393,7 +1393,7 @@ UI.FlameChartMarker.prototype = {
* @param {number} height
* @param {number} pixelsPerMillisecond
*/
- draw: function(context, x, height, pixelsPerMillisecond) {},
+ draw(context, x, height, pixelsPerMillisecond) {},
};
/** @enum {symbol} */

Powered by Google App Engine
This is Rietveld 408576698