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

Unified Diff: third_party/WebKit/Source/devtools/front_end/heap_snapshot_worker/HeapSnapshot.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/heap_snapshot_worker/HeapSnapshot.js
diff --git a/third_party/WebKit/Source/devtools/front_end/heap_snapshot_worker/HeapSnapshot.js b/third_party/WebKit/Source/devtools/front_end/heap_snapshot_worker/HeapSnapshot.js
index f809a42743f34f833716c652688d0d2bc3739fc3..be90fc7e4a2936d61004f2d86250ce23f7e51fcb 100644
--- a/third_party/WebKit/Source/devtools/front_end/heap_snapshot_worker/HeapSnapshot.js
+++ b/third_party/WebKit/Source/devtools/front_end/heap_snapshot_worker/HeapSnapshot.js
@@ -36,12 +36,12 @@ HeapSnapshotWorker.HeapSnapshotItem.prototype = {
/**
* @return {number}
*/
- itemIndex: function() {},
+ itemIndex() {},
/**
* @return {!Object}
*/
- serialize: function() {}
+ serialize() {}
};
/**
@@ -143,14 +143,14 @@ HeapSnapshotWorker.HeapSnapshotItemIterator.prototype = {
/**
* @return {boolean}
*/
- hasNext: function() {},
+ hasNext() {},
/**
* @return {!HeapSnapshotWorker.HeapSnapshotItem}
*/
- item: function() {},
+ item() {},
- next: function() {}
+ next() {}
};
/**
@@ -163,7 +163,7 @@ HeapSnapshotWorker.HeapSnapshotItemIndexProvider.prototype = {
* @param {number} newIndex
* @return {!HeapSnapshotWorker.HeapSnapshotItem}
*/
- itemForIndex: function(newIndex) {},
+ itemForIndex(newIndex) {},
};
/**

Powered by Google App Engine
This is Rietveld 408576698