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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/FileUtils.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/bindings/FileUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/FileUtils.js b/third_party/WebKit/Source/devtools/front_end/bindings/FileUtils.js
index 9b744ad894db11654d52e03bbe22bd20b0e2e1bd..c37cd7e374a216da2b1322aba61c17d2c963160c 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/FileUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/FileUtils.js
@@ -33,20 +33,20 @@
Bindings.OutputStreamDelegate = function() {};
Bindings.OutputStreamDelegate.prototype = {
- onTransferStarted: function() {},
+ onTransferStarted() {},
- onTransferFinished: function() {},
+ onTransferFinished() {},
/**
* @param {!Bindings.ChunkedReader} reader
*/
- onChunkTransferred: function(reader) {},
+ onChunkTransferred(reader) {},
/**
* @param {!Bindings.ChunkedReader} reader
* @param {!Event} event
*/
- onError: function(reader, event) {},
+ onError(reader, event) {},
};
/**
@@ -58,19 +58,19 @@ Bindings.ChunkedReader.prototype = {
/**
* @return {number}
*/
- fileSize: function() {},
+ fileSize() {},
/**
* @return {number}
*/
- loadedSize: function() {},
+ loadedSize() {},
/**
* @return {string}
*/
- fileName: function() {},
+ fileName() {},
- cancel: function() {}
+ cancel() {}
};
/**

Powered by Google App Engine
This is Rietveld 408576698