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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: all done 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 9369556ca9e6ed7acfd24c75b239d42a58e50c49..1716db34d41bd55e771ab27ada4e370bc48bdf3c 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js
@@ -1,81 +1,76 @@
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
/**
* @interface
*/
-WebInspector.TextEditorFactory = function()
-{
-};
+WebInspector.TextEditorFactory = function() {};
WebInspector.TextEditorFactory.prototype = {
- /**
- * @param {!WebInspector.TextEditor.Options} options
- * @return {!WebInspector.TextEditor}
- */
- createEditor: function(options) { }
+ /**
+ * @param {!WebInspector.TextEditor.Options} options
+ * @return {!WebInspector.TextEditor}
+ */
+ createEditor: function(options) {}
};
/**
* @interface
*/
-WebInspector.TextEditor = function()
-{
-};
+WebInspector.TextEditor = function() {};
WebInspector.TextEditor.prototype = {
- /**
- * @return {!WebInspector.Widget}
- */
- widget: function() { },
-
- /**
- * @return {!WebInspector.TextRange}
- */
- fullRange: function(){ },
-
- /**
- * @return {!WebInspector.TextRange}
- */
- selection: function() { },
-
- /**
- * @param {!WebInspector.TextRange} selection
- */
- setSelection: function(selection) { },
-
- /**
- * @param {!WebInspector.TextRange=} textRange
- * @return {string}
- */
- text: function(textRange) { },
-
- /**
- * @param {string} text
- */
- setText: function(text) { },
-
- /**
- * @param {number} lineNumber
- * @return {string}
- */
- line: function(lineNumber) { },
-
- newlineAndIndent: function() { },
-
- /**
- * @param {function(!KeyboardEvent)} handler
- */
- addKeyDownHandler: function(handler) { },
-
- /**
- * @param {?WebInspector.AutocompleteConfig} config
- */
- configureAutocomplete: function(config) { },
-
- clearAutocomplete: function() { }
+ /**
+ * @return {!WebInspector.Widget}
+ */
+ widget: function() {},
+
+ /**
+ * @return {!WebInspector.TextRange}
+ */
+ fullRange: function() {},
+
+ /**
+ * @return {!WebInspector.TextRange}
+ */
+ selection: function() {},
+
+ /**
+ * @param {!WebInspector.TextRange} selection
+ */
+ setSelection: function(selection) {},
+
+ /**
+ * @param {!WebInspector.TextRange=} textRange
+ * @return {string}
+ */
+ text: function(textRange) {},
+
+ /**
+ * @param {string} text
+ */
+ setText: function(text) {},
+
+ /**
+ * @param {number} lineNumber
+ * @return {string}
+ */
+ line: function(lineNumber) {},
+
+ newlineAndIndent: function() {},
+
+ /**
+ * @param {function(!KeyboardEvent)} handler
+ */
+ addKeyDownHandler: function(handler) {},
+
+ /**
+ * @param {?WebInspector.AutocompleteConfig} config
+ */
+ configureAutocomplete: function(config) {},
+
+ clearAutocomplete: function() {}
};
/**

Powered by Google App Engine
This is Rietveld 408576698