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

Issue 2565113002: DevTools: update console viewport scroll when prompt is resized (Closed)

Created:
4 years ago by luoe
Modified:
3 years, 8 months ago
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: update console viewport scroll when prompt is resized Console's viewport used to jump to bottom when prompt input happens. This misses cases when prompt text changes after the 'input' event or the 'input' event does not fire: - Press 'Up' when not scrolled to bottom to load multiline text - Start typing a multiline command from history and use autocomplete Now, it will listen to a more accurate event from the text editor. BUG=674374, 698428 Review-Url: https://codereview.chromium.org/2565113002 Cr-Commit-Position: refs/heads/master@{#461921} Committed: https://chromium.googlesource.com/chromium/src/+/c1faecf64579d2d1a8525e775913fa7b6df43de6

Patch Set 1 #

Total comments: 4

Patch Set 2 : DevTools: console should update viewport when codemirror resizes #

Total comments: 3

Patch Set 3 : ac #

Patch Set 4 : return to first approach #

Total comments: 2

Patch Set 5 : rebase #

Patch Set 6 : update with events! #

Patch Set 7 : update promptinput to promptContentChanged #

Total comments: 5

Patch Set 8 : SourcesTE listen to same event #

Total comments: 4

Patch Set 9 : yay #

Total comments: 5

Patch Set 10 : ac and move mute into SourceFrame #

Total comments: 6

Patch Set 11 : ac #

Patch Set 12 : rebaseline #

Messages

Total messages: 50 (24 generated)
luoe
Looking for feedback on a new event EditorResized to tell the console to update its ...
4 years ago (2016-12-12 19:43:28 UTC) #4
einbinder
https://codereview.chromium.org/2565113002/diff/1/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js File third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js (right): https://codereview.chromium.org/2565113002/diff/1/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode35 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:35: var consoleView = Console.ConsoleView.instance(); Instead of finding a consoleView ...
4 years ago (2016-12-12 20:35:20 UTC) #5
luoe
https://codereview.chromium.org/2565113002/diff/1/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js File third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js (right): https://codereview.chromium.org/2565113002/diff/1/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode35 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:35: var consoleView = Console.ConsoleView.instance(); On 2016/12/12 20:35:20, einbinder wrote: ...
4 years ago (2016-12-13 03:34:44 UTC) #9
einbinder
lgtm https://codereview.chromium.org/2565113002/diff/20001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2565113002/diff/20001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode1027 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:1027: this.widget().invalidateSize(); this.widget() actually returns this. this.invalidateSize();
4 years ago (2016-12-13 19:35:30 UTC) #10
pfeldman
https://codereview.chromium.org/2565113002/diff/20001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js File third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js (right): https://codereview.chromium.org/2565113002/diff/20001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode50 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:50: this.invalidateSize(); What is the semantics of this code? When ...
4 years ago (2016-12-13 20:06:39 UTC) #12
luoe
https://codereview.chromium.org/2565113002/diff/20001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js File third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js (right): https://codereview.chromium.org/2565113002/diff/20001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode50 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:50: this.invalidateSize(); On 2016/12/13 20:06:39, pfeldman wrote: > What is ...
4 years ago (2016-12-13 20:29:55 UTC) #14
dgozman
https://codereview.chromium.org/2565113002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js File third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js (right): https://codereview.chromium.org/2565113002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode35 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:35: var consoleView = Console.ConsoleView.instance(); This looks bad - ConsolePrompt ...
4 years ago (2016-12-14 17:28:43 UTC) #16
pfeldman
ping
3 years, 10 months ago (2017-02-23 01:19:00 UTC) #19
luoe
ptal
3 years, 10 months ago (2017-02-23 18:55:58 UTC) #20
luoe
Pleeeease take another look
3 years, 9 months ago (2017-03-11 01:12:08 UTC) #22
luoe
On 2017/03/11 01:12:08, luoe wrote: > Pleeeease take another look @einbinder, @lushnikov specifically. The approach ...
3 years, 9 months ago (2017-03-13 17:32:13 UTC) #23
einbinder
https://codereview.chromium.org/2565113002/diff/120001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2565113002/diff/120001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode1053 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:1053: this.widget().emit(new UI.TextEditor.ContentChangedEvent()); this.widget() is just a hack for the ...
3 years, 9 months ago (2017-03-13 18:08:20 UTC) #24
lushnikov
https://codereview.chromium.org/2565113002/diff/120001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2565113002/diff/120001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode1053 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:1053: this.widget().emit(new UI.TextEditor.ContentChangedEvent()); On 2017/03/13 18:08:18, einbinder wrote: > this.widget() ...
3 years, 9 months ago (2017-03-14 21:43:39 UTC) #25
luoe
Made SourcesTextEditor listen to the ContentChanged event instead of the codeMirror 'changes' event. Please take ...
3 years, 9 months ago (2017-03-14 21:59:59 UTC) #26
lushnikov
https://codereview.chromium.org/2565113002/diff/140001/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js File third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js (right): https://codereview.chromium.org/2565113002/diff/140001/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js#newcode402 third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js:402: this.dispatchEventToListeners(SourceFrame.SourcesTextEditor.Events.TextChanged, edits[i]); can we move this method up to ...
3 years, 9 months ago (2017-03-17 01:33:36 UTC) #27
luoe
ptal https://codereview.chromium.org/2565113002/diff/140001/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js File third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js (right): https://codereview.chromium.org/2565113002/diff/140001/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js#newcode402 third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js:402: this.dispatchEventToListeners(SourceFrame.SourcesTextEditor.Events.TextChanged, edits[i]); Yes we can! https://codereview.chromium.org/2565113002/diff/140001/third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js File third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js ...
3 years, 9 months ago (2017-03-17 23:44:49 UTC) #28
einbinder
lgtm
3 years, 9 months ago (2017-03-21 23:33:55 UTC) #29
lushnikov
lgtm
3 years, 9 months ago (2017-03-24 22:08:11 UTC) #34
pfeldman
https://codereview.chromium.org/2565113002/diff/160001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js File third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js (right): https://codereview.chromium.org/2565113002/diff/160001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode35 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:35: this._editor.widget().on(UI.TextEditor.TextChangedEvent, this._onTextChanged, this); You don't know that the widget ...
3 years, 9 months ago (2017-03-24 22:28:33 UTC) #35
luoe
pfeldman@, please let me know if this looks good to you! https://codereview.chromium.org/2565113002/diff/160001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js File third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js (right): ...
3 years, 8 months ago (2017-03-28 17:40:41 UTC) #36
luoe
Thanks for helping me understand better how things work. I've moved muting up to SF. ...
3 years, 8 months ago (2017-03-31 02:18:08 UTC) #37
luoe
Gentle ping
3 years, 8 months ago (2017-04-03 15:44:07 UTC) #38
pfeldman
lgtm @ nits https://codereview.chromium.org/2565113002/diff/180001/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js File third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js (right): https://codereview.chromium.org/2565113002/diff/180001/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js#newcode61 third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js:61: this._muteChangeEventsForSetContent; Makes sense to me. https://codereview.chromium.org/2565113002/diff/180001/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js ...
3 years, 8 months ago (2017-04-04 20:21:09 UTC) #39
luoe
Thanks for the reviews! https://codereview.chromium.org/2565113002/diff/180001/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js File third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js (right): https://codereview.chromium.org/2565113002/diff/180001/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js#newcode308 third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js:308: this.emit(new UI.TextEditor.TextChangedEvent(range, newRange)); On 2017/04/04 ...
3 years, 8 months ago (2017-04-04 21:09:00 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2565113002/220001
3 years, 8 months ago (2017-04-05 00:35:59 UTC) #47
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 00:51:35 UTC) #50
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/c1faecf64579d2d1a8525e775913...

Powered by Google App Engine
This is Rietveld 408576698