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

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

Issue 2281703002: DevTools: Create TextEditor Interface around CodeMirrorTextEditor (Closed)
Patch Set: Remove stray textEditorBracketMatching Created 4 years, 3 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
(Empty)
1 /**
2 * @interface
3 */
4 WebInspector.TextEditorFactory = function() { }
5
6 WebInspector.TextEditorFactory.prototype = {
7 /**
8 * @param {!WebInspector.TextEditor.Options} options
9 * @return {!WebInspector.TextEditor}
10 */
11 createEditor: function(options) { }
12 }
13
14 /**
15 * @interface
16 */
17 WebInspector.TextEditor = function()
18 {
19 }
20 WebInspector.TextEditor.prototype = {
21
22 /**
23 * @return {!WebInspector.Widget}
24 */
25 widget: function() { },
26
27 /**
28 * @return {!WebInspector.TextRange}
29 */
30 range: function(){ },
dgozman 2016/08/26 19:03:24 fullRange?
einbinder 2016/08/26 23:05:33 Done.
31
32 /**
33 * @return {!WebInspector.TextRange}
34 */
35 selection: function() { },
36
37 /**
38 * @param {!WebInspector.TextRange} selection
39 */
40 setSelection: function(selection) { },
41
42 /**
43 * @param {!WebInspector.TextRange=} textRange
44 * @return {string}
45 */
46 text: function(textRange) { },
47
48 /**
49 * @param {string} text
50 */
51 setText: function(text) { },
lushnikov 2016/08/26 23:11:52 nit: we can make this accept a range as a second o
einbinder 2016/08/27 02:20:04 The editRange and setText functions seem similar t
52
53 /**
54 * @param {number} lineNumber
55 * @return {string}
56 */
57 line: function(lineNumber) { },
58
59 /**
60 * @param {function(!KeyboardEvent)} handler
61 */
62 onKeyDown: function(handler) { },
dgozman 2016/08/26 19:03:24 addKeyDownHandler
einbinder 2016/08/26 23:05:33 Done.
63
64 /**
65 * @param {?WebInspector.AutocompleteConfig} config
66 */
67 configureAutocomplete: function(config) { },
68
69 clearAutocomplete: function() { }
dgozman 2016/08/26 19:03:25 What is this one?
einbinder 2016/08/26 23:05:33 It clears the autocomplete, renamed from finishAut
70 }
71
72 /**
73 * @typedef {{
74 * bracketMatchingFlag: (string|undefined),
dgozman 2016/08/26 19:03:24 What does this string mean? Is it actually an enum
einbinder 2016/08/26 23:05:33 Replaced above with WI.Setting.
75 * lineNumbers: boolean,
76 * lineWrapping: boolean,
77 * mimeType: (string|undefined),
78 * }}
79 **/
80 WebInspector.TextEditor.Options;
81
82 /**
83 * @typedef {{
84 * substituteRangeCallback: ((function(number, number):?WebInspector.TextRan ge)|undefined),
85 * suggestionsCallback: ((function(!WebInspector.TextRange, !WebInspector.Te xtRange):?Promise.<!Array.<{title: string, className: (string|undefined)}>>)|und efined),
dgozman 2016/08/26 19:03:24 Why not use SuggestBox.Suggestions (or how it's ca
einbinder 2016/08/26 23:05:33 Closure yelled at me a lot and I gave up trying to
86 * isWordChar: ((function(string):boolean)|undefined),
87 * }}
88 **/
89 WebInspector.AutocompleteConfig;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698