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

Issue 2781863003: [DevTools] Filtered list enhancements (Closed)

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

Description

[DevTools] Filtered list enhancements Some enhancements that are needed for the frames menu but also seem useful for other clients of the FilteredListWidget. 1. Selection is preserved while the filter string is being updated. 2. Items are highlighted on hover. Provider is notified when mouse moves over the item. 3. It is now possible to set the selection. BUG=698027 Review-Url: https://codereview.chromium.org/2781863003 Cr-Commit-Position: refs/heads/master@{#460799} Committed: https://chromium.googlesource.com/chromium/src/+/76c041dbcc4de828135d0af8c39256c4861b1a01

Patch Set 1 #

Total comments: 14

Patch Set 2 : [DevTools] Enhancements for a filtered list #

Total comments: 6

Patch Set 3 : [DevTools] Enhancements for a filtered list #

Total comments: 4

Patch Set 4 : [DevTools] Enhancements for a filtered list #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -2 lines) Patch
M third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js View 1 2 3 8 chunks +57 lines, -2 lines 2 comments Download
M third_party/WebKit/Source/devtools/front_end/quick_open/filteredListWidget.css View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (17 generated)
eostroukhov
3 years, 8 months ago (2017-03-28 22:50:32 UTC) #5
caseq
https://codereview.chromium.org/2781863003/diff/1/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js File third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js (right): https://codereview.chromium.org/2781863003/diff/1/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js#newcode51 third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js:51: this._hoveredItem = null; nit: this._hoveredItemIndex https://codereview.chromium.org/2781863003/diff/1/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js#newcode54 third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js:54: this._selectedItem = ...
3 years, 8 months ago (2017-03-28 23:35:54 UTC) #7
eostroukhov
Please take another look. https://codereview.chromium.org/2781863003/diff/1/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js File third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js (right): https://codereview.chromium.org/2781863003/diff/1/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js#newcode51 third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js:51: this._hoveredItem = null; On 2017/03/28 ...
3 years, 8 months ago (2017-03-28 23:59:08 UTC) #9
eostroukhov
Code updated, please take another look.
3 years, 8 months ago (2017-03-29 00:12:43 UTC) #10
caseq
https://codereview.chromium.org/2781863003/diff/20001/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js File third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js (right): https://codereview.chromium.org/2781863003/diff/20001/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js#newcode40 third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js:40: this._itemElementsContainer.addEventListener('mousemove', event => this._updateHover(event)); You usually need one for ...
3 years, 8 months ago (2017-03-29 00:13:22 UTC) #11
eostroukhov
Updated, please take another look. https://codereview.chromium.org/2781863003/diff/20001/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js File third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js (right): https://codereview.chromium.org/2781863003/diff/20001/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js#newcode40 third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js:40: this._itemElementsContainer.addEventListener('mousemove', event => this._updateHover(event)); ...
3 years, 8 months ago (2017-03-29 00:32:32 UTC) #13
caseq
https://codereview.chromium.org/2781863003/diff/40001/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js File third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js (right): https://codereview.chromium.org/2781863003/diff/40001/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js#newcode41 third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js:41: this._itemElementsContainer.addEventListener('mouseout', () => this._removeHover()); With a properly written updateHover() ...
3 years, 8 months ago (2017-03-29 00:46:21 UTC) #15
eostroukhov
Thank you for the review. I updated the CL, please take another look. https://codereview.chromium.org/2781863003/diff/40001/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js File ...
3 years, 8 months ago (2017-03-29 22:28:18 UTC) #20
caseq
lgtm https://codereview.chromium.org/2781863003/diff/60001/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js File third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js (right): https://codereview.chromium.org/2781863003/diff/60001/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js#newcode457 third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js:457: if (this._selectedItemIndex !== null) { nit: drop !== ...
3 years, 8 months ago (2017-03-30 16:26:48 UTC) #23
eostroukhov
Thank you for the review. https://codereview.chromium.org/2781863003/diff/60001/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js File third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js (right): https://codereview.chromium.org/2781863003/diff/60001/third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js#newcode457 third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js:457: if (this._selectedItemIndex !== null) ...
3 years, 8 months ago (2017-03-30 16:51:11 UTC) #24
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/2781863003/60001
3 years, 8 months ago (2017-03-30 16:51:37 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/76c041dbcc4de828135d0af8c39256c4861b1a01
3 years, 8 months ago (2017-03-30 16:58:36 UTC) #29
pfeldman
3 years, 8 months ago (2017-03-31 01:05:37 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2793483002/ by pfeldman@chromium.org.

The reason for reverting is: Breaks selection, don't think was necessary at
first place!.

Powered by Google App Engine
This is Rietveld 408576698