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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4
5 /** 4 /**
6 * @interface 5 * @interface
7 */ 6 */
8 WebInspector.TextEditorFactory = function() 7 WebInspector.TextEditorFactory = function() {};
9 {
10 };
11 8
12 WebInspector.TextEditorFactory.prototype = { 9 WebInspector.TextEditorFactory.prototype = {
13 /** 10 /**
14 * @param {!WebInspector.TextEditor.Options} options 11 * @param {!WebInspector.TextEditor.Options} options
15 * @return {!WebInspector.TextEditor} 12 * @return {!WebInspector.TextEditor}
16 */ 13 */
17 createEditor: function(options) { } 14 createEditor: function(options) {}
18 }; 15 };
19 16
20 /** 17 /**
21 * @interface 18 * @interface
22 */ 19 */
23 WebInspector.TextEditor = function() 20 WebInspector.TextEditor = function() {};
24 {
25 };
26 21
27 WebInspector.TextEditor.prototype = { 22 WebInspector.TextEditor.prototype = {
28 23
29 /** 24 /**
30 * @return {!WebInspector.Widget} 25 * @return {!WebInspector.Widget}
31 */ 26 */
32 widget: function() { }, 27 widget: function() {},
33 28
34 /** 29 /**
35 * @return {!WebInspector.TextRange} 30 * @return {!WebInspector.TextRange}
36 */ 31 */
37 fullRange: function(){ }, 32 fullRange: function() {},
38 33
39 /** 34 /**
40 * @return {!WebInspector.TextRange} 35 * @return {!WebInspector.TextRange}
41 */ 36 */
42 selection: function() { }, 37 selection: function() {},
43 38
44 /** 39 /**
45 * @param {!WebInspector.TextRange} selection 40 * @param {!WebInspector.TextRange} selection
46 */ 41 */
47 setSelection: function(selection) { }, 42 setSelection: function(selection) {},
48 43
49 /** 44 /**
50 * @param {!WebInspector.TextRange=} textRange 45 * @param {!WebInspector.TextRange=} textRange
51 * @return {string} 46 * @return {string}
52 */ 47 */
53 text: function(textRange) { }, 48 text: function(textRange) {},
54 49
55 /** 50 /**
56 * @param {string} text 51 * @param {string} text
57 */ 52 */
58 setText: function(text) { }, 53 setText: function(text) {},
59 54
60 /** 55 /**
61 * @param {number} lineNumber 56 * @param {number} lineNumber
62 * @return {string} 57 * @return {string}
63 */ 58 */
64 line: function(lineNumber) { }, 59 line: function(lineNumber) {},
65 60
66 newlineAndIndent: function() { }, 61 newlineAndIndent: function() {},
67 62
68 /** 63 /**
69 * @param {function(!KeyboardEvent)} handler 64 * @param {function(!KeyboardEvent)} handler
70 */ 65 */
71 addKeyDownHandler: function(handler) { }, 66 addKeyDownHandler: function(handler) {},
72 67
73 /** 68 /**
74 * @param {?WebInspector.AutocompleteConfig} config 69 * @param {?WebInspector.AutocompleteConfig} config
75 */ 70 */
76 configureAutocomplete: function(config) { }, 71 configureAutocomplete: function(config) {},
77 72
78 clearAutocomplete: function() { } 73 clearAutocomplete: function() {}
79 }; 74 };
80 75
81 /** 76 /**
82 * @typedef {{ 77 * @typedef {{
83 * bracketMatchingSetting: (!WebInspector.Setting|undefined), 78 * bracketMatchingSetting: (!WebInspector.Setting|undefined),
84 * lineNumbers: boolean, 79 * lineNumbers: boolean,
85 * lineWrapping: boolean, 80 * lineWrapping: boolean,
86 * mimeType: (string|undefined), 81 * mimeType: (string|undefined),
87 * autoHeight: (boolean|undefined) 82 * autoHeight: (boolean|undefined)
88 * }} 83 * }}
89 */ 84 */
90 WebInspector.TextEditor.Options; 85 WebInspector.TextEditor.Options;
91 86
92 /** 87 /**
93 * @typedef {{ 88 * @typedef {{
94 * substituteRangeCallback: ((function(number, number):?WebInspector.TextRan ge)|undefined), 89 * substituteRangeCallback: ((function(number, number):?WebInspector.TextRan ge)|undefined),
95 * suggestionsCallback: ((function(!WebInspector.TextRange, !WebInspector.Te xtRange):?Promise.<!WebInspector.SuggestBox.Suggestions>)|undefined), 90 * suggestionsCallback: ((function(!WebInspector.TextRange, !WebInspector.Te xtRange):?Promise.<!WebInspector.SuggestBox.Suggestions>)|undefined),
96 * isWordChar: ((function(string):boolean)|undefined), 91 * isWordChar: ((function(string):boolean)|undefined),
97 * captureEnter: (boolean|undefined) 92 * captureEnter: (boolean|undefined)
98 * }} 93 * }}
99 */ 94 */
100 WebInspector.AutocompleteConfig; 95 WebInspector.AutocompleteConfig;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698