| OLD | NEW |
| 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 /** | 4 /** |
| 5 * @interface | 5 * @interface |
| 6 */ | 6 */ |
| 7 UI.TextEditorFactory = function() {}; | 7 UI.TextEditorFactory = function() {}; |
| 8 | 8 |
| 9 UI.TextEditorFactory.prototype = { | 9 UI.TextEditorFactory.prototype = { |
| 10 /** | 10 /** |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 addKeyDownHandler(handler) {}, | 66 addKeyDownHandler(handler) {}, |
| 67 | 67 |
| 68 /** | 68 /** |
| 69 * @param {?UI.AutocompleteConfig} config | 69 * @param {?UI.AutocompleteConfig} config |
| 70 */ | 70 */ |
| 71 configureAutocomplete(config) {}, | 71 configureAutocomplete(config) {}, |
| 72 | 72 |
| 73 clearAutocomplete() {} | 73 clearAutocomplete() {} |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 /** @enum symbol */ |
| 77 UI.TextEditor.Events = { |
| 78 EditorResized: Symbol('EditorResized') |
| 79 }; |
| 80 |
| 76 /** | 81 /** |
| 77 * @typedef {{ | 82 * @typedef {{ |
| 78 * bracketMatchingSetting: (!Common.Setting|undefined), | 83 * bracketMatchingSetting: (!Common.Setting|undefined), |
| 79 * lineNumbers: boolean, | 84 * lineNumbers: boolean, |
| 80 * lineWrapping: boolean, | 85 * lineWrapping: boolean, |
| 81 * mimeType: (string|undefined), | 86 * mimeType: (string|undefined), |
| 82 * autoHeight: (boolean|undefined) | 87 * autoHeight: (boolean|undefined) |
| 83 * }} | 88 * }} |
| 84 */ | 89 */ |
| 85 UI.TextEditor.Options; | 90 UI.TextEditor.Options; |
| 86 | 91 |
| 87 /** | 92 /** |
| 88 * @typedef {{ | 93 * @typedef {{ |
| 89 * substituteRangeCallback: ((function(number, number):?Common.TextRange)|un
defined), | 94 * substituteRangeCallback: ((function(number, number):?Common.TextRange)|un
defined), |
| 90 * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boo
lean=, string=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined), | 95 * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boo
lean=, string=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined), |
| 91 * isWordChar: ((function(string):boolean)|undefined), | 96 * isWordChar: ((function(string):boolean)|undefined), |
| 92 * captureEnter: (boolean|undefined) | 97 * captureEnter: (boolean|undefined) |
| 93 * }} | 98 * }} |
| 94 */ | 99 */ |
| 95 UI.AutocompleteConfig; | 100 UI.AutocompleteConfig; |
| OLD | NEW |