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

Issue 2331053002: DevTools: Implement the console prompt with CodeMirror (Closed)

Created:
4 years, 3 months ago by einbinder
Modified:
4 years, 3 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, pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Implement the console prompt with CodeMirror BUG=607690 Committed: https://crrev.com/fd9f42976b2d7c512f5242dffe713bfa06c22a9c Cr-Commit-Position: refs/heads/master@{#419305}

Patch Set 1 #

Patch Set 2 : Merge with PageUp fix #

Total comments: 28

Patch Set 3 : Move async handling into ConsolePrompt #

Patch Set 4 : Merge #

Total comments: 44

Patch Set 5 : Copyright #

Total comments: 14

Patch Set 6 : Style #

Total comments: 2

Patch Set 7 : Remove consoleBracketMatching setting #

Patch Set 8 : Fix browser tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -87 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js View 1 2 1 chunk +1 line, -8 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/console/console-auto-completion.html View 1 chunk +0 lines, -38 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/console/console-auto-completion-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-viewport-stick-to-bottom.html View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Tests.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js View 1 2 3 4 5 6 1 chunk +257 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js View 1 2 3 4 5 7 chunks +24 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/consoleView.css View 1 2 3 4 5 1 chunk +14 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/module.json View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/text_editor/TextEditorAutocompleteController.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js View 5 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js View 1 2 3 4 5 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (13 generated)
einbinder
Ptal
4 years, 3 months ago (2016-09-12 18:02:50 UTC) #2
dgozman
https://codereview.chromium.org/2331053002/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/2331053002/diff/20001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode23 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:23: prompt.setEditor(factory.createEditor({ Let's pass editor/factory in constructor instead. https://codereview.chromium.org/2331053002/diff/20001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode62 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:62: ...
4 years, 3 months ago (2016-09-12 21:38:57 UTC) #4
einbinder
https://codereview.chromium.org/2331053002/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/2331053002/diff/20001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode23 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:23: prompt.setEditor(factory.createEditor({ On 2016/09/12 at 21:38:56, dgozman wrote: > Let's ...
4 years, 3 months ago (2016-09-13 01:08:00 UTC) #5
pfeldman
lgtm % comments https://codereview.chromium.org/2331053002/diff/60001/third_party/WebKit/Source/devtools/BUILD.gn File third_party/WebKit/Source/devtools/BUILD.gn (right): https://codereview.chromium.org/2331053002/diff/60001/third_party/WebKit/Source/devtools/BUILD.gn#newcode396 third_party/WebKit/Source/devtools/BUILD.gn:396: "front_end/console/ConsolePrompt.js", sort alphabetically https://codereview.chromium.org/2331053002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js File third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js ...
4 years, 3 months ago (2016-09-14 00:31:53 UTC) #6
lushnikov
https://codereview.chromium.org/2331053002/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/2331053002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode48 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:48: nit: stray line https://codereview.chromium.org/2331053002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode76 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:76: return !!this._editor && this._editor.selection().collapseToEnd().compareTo(this._editor.fullRange().collapseToEnd()) ...
4 years, 3 months ago (2016-09-14 01:11:22 UTC) #7
dgozman
https://codereview.chromium.org/2331053002/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/2331053002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode40 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:40: this.setText(this._initialText) semicolon https://codereview.chromium.org/2331053002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode41 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:41: if (this._needsFocus) delete this._initialText; https://codereview.chromium.org/2331053002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode210 ...
4 years, 3 months ago (2016-09-14 04:26:18 UTC) #8
einbinder
ptal https://codereview.chromium.org/2331053002/diff/60001/third_party/WebKit/Source/devtools/BUILD.gn File third_party/WebKit/Source/devtools/BUILD.gn (right): https://codereview.chromium.org/2331053002/diff/60001/third_party/WebKit/Source/devtools/BUILD.gn#newcode396 third_party/WebKit/Source/devtools/BUILD.gn:396: "front_end/console/ConsolePrompt.js", On 2016/09/14 at 00:31:52, pfeldman wrote: > ...
4 years, 3 months ago (2016-09-14 20:21:07 UTC) #9
dgozman
lgtm https://codereview.chromium.org/2331053002/diff/80001/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/2331053002/diff/80001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode1 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:1: // Copyright (c) 2016 The Chromium Authors. All ...
4 years, 3 months ago (2016-09-14 21:20:17 UTC) #10
einbinder
https://codereview.chromium.org/2331053002/diff/80001/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/2331053002/diff/80001/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js#newcode1 third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 3 months ago (2016-09-15 00:14:10 UTC) #11
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/2331053002/100001
4 years, 3 months ago (2016-09-16 04:34:00 UTC) #14
lushnikov
https://codereview.chromium.org/2331053002/diff/100001/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/2331053002/diff/100001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode985 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:985: this._codeMirror.setSize(width, "auto"); don't we want to do skip this ...
4 years, 3 months ago (2016-09-16 17:17:14 UTC) #16
lushnikov
lgtm % comment about the resize method
4 years, 3 months ago (2016-09-16 17:17:49 UTC) #17
einbinder
https://codereview.chromium.org/2331053002/diff/100001/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/2331053002/diff/100001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode985 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:985: this._codeMirror.setSize(width, "auto"); On 2016/09/16 at 17:17:14, lushnikov wrote: > ...
4 years, 3 months ago (2016-09-16 18:25:12 UTC) #18
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/2331053002/120001
4 years, 3 months ago (2016-09-16 18:25:52 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/297884)
4 years, 3 months ago (2016-09-16 19:23:42 UTC) #23
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/2331053002/140001
4 years, 3 months ago (2016-09-16 19:53:07 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-09-16 22:34:04 UTC) #29
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 22:37:24 UTC) #31
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/fd9f42976b2d7c512f5242dffe713bfa06c22a9c
Cr-Commit-Position: refs/heads/master@{#419305}

Powered by Google App Engine
This is Rietveld 408576698