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

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 accidental devtools.gypi 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 }
7
8 WebInspector.TextEditorFactory.prototype = {
9 /**
10 * @param {!WebInspector.TextEditor.Options} options
11 * @return {!WebInspector.TextEditor}
12 */
13 createEditor: function(options) { }
14 }
15
16 /**
17 * @interface
18 */
19 WebInspector.TextEditor = function()
20 {
21 }
22
23 WebInspector.TextEditor.prototype = {
24
25 /**
26 * @return {!WebInspector.Widget}
27 */
28 widget: function() { },
29
30 /**
31 * @return {!WebInspector.TextRange}
32 */
33 fullRange: function(){ },
34
35 /**
36 * @return {!WebInspector.TextRange}
37 */
38 selection: function() { },
39
40 /**
41 * @param {!WebInspector.TextRange} selection
42 */
43 setSelection: function(selection) { },
44
45 /**
46 * @param {!WebInspector.TextRange=} textRange
47 * @return {string}
48 */
49 text: function(textRange) { },
50
51 /**
52 * @param {string} text
53 */
54 setText: function(text) { },
55
56 /**
57 * @param {number} lineNumber
58 * @return {string}
59 */
60 line: function(lineNumber) { },
61
62 /**
63 * @param {function(!KeyboardEvent)} handler
64 */
65 addKeyDownHandler: function(handler) { },
66
67 /**
68 * @param {?WebInspector.AutocompleteConfig} config
69 */
70 configureAutocomplete: function(config) { },
71
72 clearAutocomplete: function() { }
73 }
74
75 /**
76 * @typedef {{
77 * bracketMatchingSetting: (!WebInspector.Setting|undefined),
78 * lineNumbers: boolean,
79 * lineWrapping: boolean,
80 * mimeType: (string|undefined)
81 * }}
82 **/
83 WebInspector.TextEditor.Options;
84
85 /**
86 * @typedef {{
87 * substituteRangeCallback: ((function(number, number):?WebInspector.TextRan ge)|undefined),
88 * suggestionsCallback: ((function(!WebInspector.TextRange, !WebInspector.Te xtRange):?Promise.<!WebInspector.SuggestBox.Suggestions>)|undefined),
89 * isWordChar: ((function(string):boolean)|undefined)
90 * }}
91 **/
92 WebInspector.AutocompleteConfig;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698