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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/TextEditor.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/TextEditor.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js b/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js
index 8b8e0529633f02bc93b029d046ebfbcd817372a1..5ab5013acd9be9e1b75fe07f41c5fcbf29bc829f 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js
@@ -11,7 +11,7 @@ UI.TextEditorFactory.prototype = {
* @param {!UI.TextEditor.Options} options
* @return {!UI.TextEditor}
*/
- createEditor: function(options) {}
+ createEditor(options) {}
};
/**
@@ -24,53 +24,53 @@ UI.TextEditor.prototype = {
/**
* @return {!UI.Widget}
*/
- widget: function() {},
+ widget() {},
/**
* @return {!Common.TextRange}
*/
- fullRange: function() {},
+ fullRange() {},
/**
* @return {!Common.TextRange}
*/
- selection: function() {},
+ selection() {},
/**
* @param {!Common.TextRange} selection
*/
- setSelection: function(selection) {},
+ setSelection(selection) {},
/**
* @param {!Common.TextRange=} textRange
* @return {string}
*/
- text: function(textRange) {},
+ text(textRange) {},
/**
* @param {string} text
*/
- setText: function(text) {},
+ setText(text) {},
/**
* @param {number} lineNumber
* @return {string}
*/
- line: function(lineNumber) {},
+ line(lineNumber) {},
- newlineAndIndent: function() {},
+ newlineAndIndent() {},
/**
* @param {function(!KeyboardEvent)} handler
*/
- addKeyDownHandler: function(handler) {},
+ addKeyDownHandler(handler) {},
/**
* @param {?UI.AutocompleteConfig} config
*/
- configureAutocomplete: function(config) {},
+ configureAutocomplete(config) {},
- clearAutocomplete: function() {}
+ clearAutocomplete() {}
};
/**

Powered by Google App Engine
This is Rietveld 408576698