Chromium Code Reviews| 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 /** @implements {Common.Emittable} */ | |
| 77 UI.TextEditor.ContentChangedEvent = class { | |
|
lushnikov
2017/03/17 01:33:36
we should move the SourceFrame.SourcesTextEditor.E
luoe
2017/03/17 23:44:48
Done.
| |
| 78 /** | |
| 79 * @param {!Array<!CodeMirror.ChangeObject>} changes | |
| 80 */ | |
| 81 constructor(changes) { | |
| 82 this.changes = changes; | |
| 83 } | |
| 84 }; | |
| 85 | |
| 76 /** | 86 /** |
| 77 * @typedef {{ | 87 * @typedef {{ |
| 78 * bracketMatchingSetting: (!Common.Setting|undefined), | 88 * bracketMatchingSetting: (!Common.Setting|undefined), |
| 79 * lineNumbers: boolean, | 89 * lineNumbers: boolean, |
| 80 * lineWrapping: boolean, | 90 * lineWrapping: boolean, |
| 81 * mimeType: (string|undefined), | 91 * mimeType: (string|undefined), |
| 82 * autoHeight: (boolean|undefined), | 92 * autoHeight: (boolean|undefined), |
| 83 * padBottom: (boolean|undefined) | 93 * padBottom: (boolean|undefined) |
| 84 * }} | 94 * }} |
| 85 */ | 95 */ |
| 86 UI.TextEditor.Options; | 96 UI.TextEditor.Options; |
| 87 | 97 |
| 88 /** | 98 /** |
| 89 * @typedef {{ | 99 * @typedef {{ |
| 90 * substituteRangeCallback: ((function(number, number):?Common.TextRange)|un defined), | 100 * substituteRangeCallback: ((function(number, number):?Common.TextRange)|un defined), |
| 91 * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boo lean=, string=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined), | 101 * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boo lean=, string=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined), |
| 92 * isWordChar: ((function(string):boolean)|undefined), | 102 * isWordChar: ((function(string):boolean)|undefined), |
| 93 * captureEnter: (boolean|undefined) | 103 * captureEnter: (boolean|undefined) |
| 94 * }} | 104 * }} |
| 95 */ | 105 */ |
| 96 UI.AutocompleteConfig; | 106 UI.AutocompleteConfig; |
| OLD | NEW |