| OLD | NEW |
| (Empty) | |
| 1 /** |
| 2 * @interface |
| 3 */ |
| 4 WebInspector.TextEditorFactory = function() |
| 5 { |
| 6 } |
| 7 |
| 8 WebInspector.TextEditorFactory.prototype = { |
| 9 /** |
| 10 * @param {!WebInspector.TextEditor.Options} options |
| 11 * @return {!WebInspector.TextEditor} |
| 12 */ |
| 13 createEditor: function(options) { } |
| 14 } |
| 15 |
| 16 /** |
| 17 * @interface |
| 18 */ |
| 19 WebInspector.TextEditor = function() |
| 20 { |
| 21 } |
| 22 |
| 23 WebInspector.TextEditor.prototype = { |
| 24 |
| 25 /** |
| 26 * @return {!WebInspector.Widget} |
| 27 */ |
| 28 widget: function() { }, |
| 29 |
| 30 /** |
| 31 * @return {!WebInspector.TextRange} |
| 32 */ |
| 33 fullRange: function(){ }, |
| 34 |
| 35 /** |
| 36 * @return {!WebInspector.TextRange} |
| 37 */ |
| 38 selection: function() { }, |
| 39 |
| 40 /** |
| 41 * @param {!WebInspector.TextRange} selection |
| 42 */ |
| 43 setSelection: function(selection) { }, |
| 44 |
| 45 /** |
| 46 * @param {!WebInspector.TextRange=} textRange |
| 47 * @return {string} |
| 48 */ |
| 49 text: function(textRange) { }, |
| 50 |
| 51 /** |
| 52 * @param {string} text |
| 53 */ |
| 54 setText: function(text) { }, |
| 55 |
| 56 /** |
| 57 * @param {number} lineNumber |
| 58 * @return {string} |
| 59 */ |
| 60 line: function(lineNumber) { }, |
| 61 |
| 62 /** |
| 63 * @param {function(!KeyboardEvent)} handler |
| 64 */ |
| 65 addKeyDownHandler: function(handler) { }, |
| 66 |
| 67 /** |
| 68 * @param {?WebInspector.AutocompleteConfig} config |
| 69 */ |
| 70 configureAutocomplete: function(config) { }, |
| 71 |
| 72 clearAutocomplete: function() { } |
| 73 } |
| 74 |
| 75 /** |
| 76 * @typedef {{ |
| 77 * bracketMatchingSetting: (!WebInspector.Setting|undefined), |
| 78 * lineNumbers: boolean, |
| 79 * lineWrapping: boolean, |
| 80 * mimeType: (string|undefined) |
| 81 * }} |
| 82 **/ |
| 83 WebInspector.TextEditor.Options; |
| 84 |
| 85 /** |
| 86 * @typedef {{ |
| 87 * substituteRangeCallback: ((function(number, number):?WebInspector.TextRan
ge)|undefined), |
| 88 * suggestionsCallback: ((function(!WebInspector.TextRange, !WebInspector.Te
xtRange):?Promise.<!WebInspector.SuggestBox.Suggestions>)|undefined), |
| 89 * isWordChar: ((function(string):boolean)|undefined) |
| 90 * }} |
| 91 **/ |
| 92 WebInspector.AutocompleteConfig; |
| OLD | NEW |