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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: Created 3 years, 9 months 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 /** 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 24 matching lines...) Expand all
80 * lineWrapping: boolean, 80 * lineWrapping: boolean,
81 * mimeType: (string|undefined), 81 * mimeType: (string|undefined),
82 * autoHeight: (boolean|undefined), 82 * autoHeight: (boolean|undefined),
83 * padBottom: (boolean|undefined) 83 * padBottom: (boolean|undefined)
84 * }} 84 * }}
85 */ 85 */
86 UI.TextEditor.Options; 86 UI.TextEditor.Options;
87 87
88 /** 88 /**
89 * @typedef {{ 89 * @typedef {{
90 * substituteRangeCallback: ((function(number, number):?Common.TextRange)|un defined), 90 * substituteRangeCallback: ((function(number, number):?TextUtils.TextRange) |undefined),
91 * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boo lean=, string=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined), 91 * suggestionsCallback: ((function(!TextUtils.TextRange, !TextUtils.TextRang e, boolean=, string=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined),
92 * isWordChar: ((function(string):boolean)|undefined), 92 * isWordChar: ((function(string):boolean)|undefined),
93 * captureEnter: (boolean|undefined) 93 * captureEnter: (boolean|undefined)
94 * }} 94 * }}
95 */ 95 */
96 UI.AutocompleteConfig; 96 UI.AutocompleteConfig;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698