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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js

Issue 2778873003: DevTools: Convert TextEditor from Interface to Abstract class (Closed)
Patch Set: Created 3 years, 9 months 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9c5688aadf842c078fd9aea3e90fc222a1018356..d547137faba0eb60b7b1d53b072ab64943054eb5 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js
@@ -15,60 +15,62 @@ UI.TextEditorFactory.prototype = {
};
/**
- * @interface
+ * @abstract
+ * @unrestricted
*/
-UI.TextEditor = function() {};
-
-UI.TextEditor.prototype = {
-
- /**
- * @return {!UI.Widget}
- */
- widget() {},
-
+UI.TextEditor = class extends UI.Widget {
/**
* @return {!Common.TextRange}
*/
- fullRange() {},
+ fullRange() {
+ }
/**
* @return {!Common.TextRange}
*/
- selection() {},
+ selection() {
+ }
/**
* @param {!Common.TextRange} selection
*/
- setSelection(selection) {},
+ setSelection(selection) {
+ }
/**
* @param {!Common.TextRange=} textRange
* @return {string}
*/
- text(textRange) {},
+ text(textRange) {
+ }
/**
* @param {string} text
*/
- setText(text) {},
+ setText(text) {
+ }
/**
* @param {number} lineNumber
* @return {string}
*/
- line(lineNumber) {},
+ line(lineNumber) {
+ }
- newlineAndIndent() {},
+ newlineAndIndent() {
+ }
/**
* @param {function(!KeyboardEvent)} handler
*/
- addKeyDownHandler(handler) {},
+ addKeyDownHandler(handler) {
+ }
/**
* @param {?UI.AutocompleteConfig} config
*/
- configureAutocomplete(config) {},
+ configureAutocomplete(config) {
+ }
clearAutocomplete() {}
};
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698