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

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: yay 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 /**
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 addKeyDownHandler(handler) {}, 66 addKeyDownHandler(handler) {},
67 67
68 /** 68 /**
69 * @param {?UI.AutocompleteConfig} config 69 * @param {?UI.AutocompleteConfig} config
70 */ 70 */
71 configureAutocomplete(config) {}, 71 configureAutocomplete(config) {},
72 72
73 clearAutocomplete() {} 73 clearAutocomplete() {}
74 }; 74 };
75 75
76 /** @implements {Common.Emittable} */
77 UI.TextEditor.TextChangedEvent = class {
78 /**
79 * @param {!Common.TextRange} oldRange
80 * @param {!Common.TextRange} newRange
81 */
82 constructor(oldRange, newRange) {
83 this.oldRange = oldRange;
84 this.newRange = newRange;
85 }
86 };
87
76 /** 88 /**
77 * @typedef {{ 89 * @typedef {{
78 * bracketMatchingSetting: (!Common.Setting|undefined), 90 * bracketMatchingSetting: (!Common.Setting|undefined),
79 * lineNumbers: boolean, 91 * lineNumbers: boolean,
80 * lineWrapping: boolean, 92 * lineWrapping: boolean,
81 * mimeType: (string|undefined), 93 * mimeType: (string|undefined),
82 * autoHeight: (boolean|undefined), 94 * autoHeight: (boolean|undefined),
83 * padBottom: (boolean|undefined) 95 * padBottom: (boolean|undefined)
84 * }} 96 * }}
85 */ 97 */
86 UI.TextEditor.Options; 98 UI.TextEditor.Options;
87 99
88 /** 100 /**
89 * @typedef {{ 101 * @typedef {{
90 * substituteRangeCallback: ((function(number, number):?Common.TextRange)|un defined), 102 * substituteRangeCallback: ((function(number, number):?Common.TextRange)|un defined),
91 * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boo lean=, string=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined), 103 * suggestionsCallback: ((function(!Common.TextRange, !Common.TextRange, boo lean=, string=):?Promise.<!UI.SuggestBox.Suggestions>)|undefined),
92 * isWordChar: ((function(string):boolean)|undefined), 104 * isWordChar: ((function(string):boolean)|undefined),
93 * captureEnter: (boolean|undefined) 105 * captureEnter: (boolean|undefined)
94 * }} 106 * }}
95 */ 107 */
96 UI.AutocompleteConfig; 108 UI.AutocompleteConfig;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698