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

Issue 2439223002: DevTools: Use grey hint text for applied suggestion in TextPrompt (Closed)

Created:
4 years, 2 months ago by einbinder
Modified:
4 years ago
Reviewers:
lushnikov
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: Use grey hint text for applied suggestion in TextPrompt Auto completions in TextPrompt used to appear as selected text. Now they always show up as grey hint text. This is now consistent with the console prompt and sources panel text editor. BUG=none Committed: https://crrev.com/5ba3f4712604e0201423db169c25178db98a16a0 Cr-Commit-Position: refs/heads/master@{#427916}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix bug with completing in the middle of a prompt #

Total comments: 16

Patch Set 3 : prefixRange #

Patch Set 4 : newline for test #

Total comments: 7

Patch Set 5 : Merge #

Patch Set 6 : merge #

Total comments: 2

Patch Set 7 : Was removing ghostText twice #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -103 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt-hint.html View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt-hint-expected.txt View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js View 1 2 3 4 5 6 12 chunks +52 lines, -102 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
einbinder
ptal https://codereview.chromium.org/2439223002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2439223002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode348 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:348: this._autocompleteElement.textContent = this._currentHintText.substring(text.length); broken
4 years, 2 months ago (2016-10-21 23:52:20 UTC) #2
lushnikov
https://codereview.chromium.org/2439223002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (left): https://codereview.chromium.org/2439223002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#oldcode349 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:349: var hasCommonPrefix = text.startsWith(this._previousText) || this._previousText.startsWith(text); let's get it ...
4 years, 2 months ago (2016-10-22 02:15:11 UTC) #4
einbinder
I renamed _userEnteredRange -> _prefixRange https://codereview.chromium.org/2439223002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (left): https://codereview.chromium.org/2439223002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#oldcode349 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:349: var hasCommonPrefix = text.startsWith(this._previousText) ...
4 years, 2 months ago (2016-10-22 02:30:06 UTC) #5
lushnikov
1. let's establish a consistent vocabulary throughout the TextPrompt, as we discussed offline 2. can ...
4 years, 1 month ago (2016-10-24 21:27:21 UTC) #11
einbinder
ptal
4 years, 1 month ago (2016-10-27 00:13:20 UTC) #14
lushnikov
lgtm https://codereview.chromium.org/2439223002/diff/100001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2439223002/diff/100001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode553 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:553: this._ghostTextElement.remove(); let's get rid of that
4 years, 1 month ago (2016-10-27 00:35:50 UTC) #15
einbinder
https://codereview.chromium.org/2439223002/diff/100001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2439223002/diff/100001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode553 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:553: this._ghostTextElement.remove(); On 2016/10/27 at 00:35:50, lushnikov wrote: > let's ...
4 years, 1 month ago (2016-10-27 00:56:50 UTC) #17
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/2439223002/120001
4 years, 1 month ago (2016-10-27 00:57:29 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-10-27 02:14:48 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 02:16:30 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5ba3f4712604e0201423db169c25178db98a16a0
Cr-Commit-Position: refs/heads/master@{#427916}

Powered by Google App Engine
This is Rietveld 408576698