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 /** |
11 * @param {!UI.TextEditor.Options} options | 11 * @param {!UI.TextEditor.Options} options |
12 * @return {!UI.TextEditor} | 12 * @return {!UI.TextEditor} |
13 */ | 13 */ |
14 createEditor(options) {} | 14 createEditor(options) {} |
15 }; | 15 }; |
16 | 16 |
17 /** | 17 /** |
18 * @interface | 18 * @interface |
19 */ | 19 */ |
20 UI.TextEditor = function() {}; | 20 UI.TextEditor = function() {}; |
21 | 21 |
22 UI.TextEditor.prototype = { | 22 UI.TextEditor.prototype = { |
23 | 23 |
24 /** | 24 /** |
25 * @return {!UI.Widget} | 25 * @return {!UI.Widget} |
26 */ | 26 */ |
27 widget() {}, | 27 widget() {}, |
28 | 28 |
29 /** | 29 /** |
30 * @return {!Common.TextRange} | 30 * @return {!TextUtils.TextRange} |
31 */ | 31 */ |
32 fullRange() {}, | 32 fullRange() {}, |
33 | 33 |
34 /** | 34 /** |
35 * @return {!Common.TextRange} | 35 * @return {!TextUtils.TextRange} |
36 */ | 36 */ |
37 selection() {}, | 37 selection() {}, |
38 | 38 |
39 /** | 39 /** |
40 * @param {!Common.TextRange} selection | 40 * @param {!TextUtils.TextRange} selection |
41 */ | 41 */ |
42 setSelection(selection) {}, | 42 setSelection(selection) {}, |
43 | 43 |
44 /** | 44 /** |
45 * @param {!Common.TextRange=} textRange | 45 * @param {!TextUtils.TextRange=} textRange |
46 * @return {string} | 46 * @return {string} |
47 */ | 47 */ |
48 text(textRange) {}, | 48 text(textRange) {}, |
49 | 49 |
50 /** | 50 /** |
51 * @param {string} text | 51 * @param {string} text |
52 */ | 52 */ |
53 setText(text) {}, | 53 setText(text) {}, |
54 | 54 |
55 /** | 55 /** |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 * lineWrapping: boolean, | 87 * lineWrapping: boolean, |
88 * mimeType: (string|undefined), | 88 * mimeType: (string|undefined), |
89 * autoHeight: (boolean|undefined), | 89 * autoHeight: (boolean|undefined), |
90 * padBottom: (boolean|undefined) | 90 * padBottom: (boolean|undefined) |
91 * }} | 91 * }} |
92 */ | 92 */ |
93 UI.TextEditor.Options; | 93 UI.TextEditor.Options; |
94 | 94 |
95 /** | 95 /** |
96 * @typedef {{ | 96 * @typedef {{ |
97 * substituteRangeCallback: ((function(number, number):?Common.TextRange)|un
defined), | 97 * substituteRangeCallback: ((function(number, number):?TextUtils.TextRange)
|undefined), |
98 * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boo
lean=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined), | 98 * suggestionsCallback: ((function(!TextUtils.TextRange, !TextUtils.TextRang
e, boolean=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined), |
99 * isWordChar: ((function(string):boolean)|undefined), | 99 * isWordChar: ((function(string):boolean)|undefined), |
100 * captureEnter: (boolean|undefined) | 100 * captureEnter: (boolean|undefined) |
101 * }} | 101 * }} |
102 */ | 102 */ |
103 UI.AutocompleteConfig; | 103 UI.AutocompleteConfig; |
OLD | NEW |