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

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

Issue 2565113002: DevTools: update console viewport scroll when prompt is resized (Closed)
Patch Set: ac and move mute into SourceFrame Created 3 years, 8 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 * @extends {Common.EventTarget}
19 */ 20 */
20 UI.TextEditor = function() {}; 21 UI.TextEditor = function() {};
21 22
22 UI.TextEditor.prototype = { 23 UI.TextEditor.prototype = {
23 24
24 /** 25 /**
25 * @return {!UI.Widget} 26 * @return {!UI.Widget}
26 */ 27 */
27 widget() {}, 28 widget() {},
28 29
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 addKeyDownHandler(handler) {}, 67 addKeyDownHandler(handler) {},
67 68
68 /** 69 /**
69 * @param {?UI.AutocompleteConfig} config 70 * @param {?UI.AutocompleteConfig} config
70 */ 71 */
71 configureAutocomplete(config) {}, 72 configureAutocomplete(config) {},
72 73
73 clearAutocomplete() {} 74 clearAutocomplete() {}
74 }; 75 };
75 76
77 /** @implements {Common.Emittable} */
78 UI.TextEditor.TextChangedEvent = class {
79 /**
80 * @param {!Common.TextRange} oldRange
81 * @param {!Common.TextRange} newRange
82 */
83 constructor(oldRange, newRange) {
84 this.oldRange = oldRange;
85 this.newRange = newRange;
86 }
87 };
88
76 /** 89 /**
77 * @typedef {{ 90 * @typedef {{
78 * bracketMatchingSetting: (!Common.Setting|undefined), 91 * bracketMatchingSetting: (!Common.Setting|undefined),
79 * lineNumbers: boolean, 92 * lineNumbers: boolean,
80 * lineWrapping: boolean, 93 * lineWrapping: boolean,
81 * mimeType: (string|undefined), 94 * mimeType: (string|undefined),
82 * autoHeight: (boolean|undefined), 95 * autoHeight: (boolean|undefined),
83 * padBottom: (boolean|undefined) 96 * padBottom: (boolean|undefined)
84 * }} 97 * }}
85 */ 98 */
86 UI.TextEditor.Options; 99 UI.TextEditor.Options;
87 100
88 /** 101 /**
89 * @typedef {{ 102 * @typedef {{
90 * substituteRangeCallback: ((function(number, number):?Common.TextRange)|un defined), 103 * substituteRangeCallback: ((function(number, number):?Common.TextRange)|un defined),
91 * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boo lean=, string=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined), 104 * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boo lean=, string=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined),
92 * isWordChar: ((function(string):boolean)|undefined), 105 * isWordChar: ((function(string):boolean)|undefined),
93 * captureEnter: (boolean|undefined) 106 * captureEnter: (boolean|undefined)
94 * }} 107 * }}
95 */ 108 */
96 UI.AutocompleteConfig; 109 UI.AutocompleteConfig;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698