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

Issue 2977523002: MD Bookmarks: Scroll and select items that are added to the main list (Closed)

Created:
3 years, 5 months ago by tsergeant
Modified:
3 years, 4 months ago
Reviewers:
Devlin, calamity, dpapad
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, dcheng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Bookmarks: Scroll and select items that are added to the main list This 'highlights' bookmark items in the following situations: * A new item is created in the list * Item(s) are pasted into the list * Item(s) are dropped into the list * 'Show in folder' is selected on a search result The list of items which will be created is not always known ahead of time. Therefore, each time the user performs an action which can create items, we track all items that are created and updated, and highlight those items once the action has finished processing. BUG=738958 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2977523002 Cr-Commit-Position: refs/heads/master@{#490223} Committed: https://chromium.googlesource.com/chromium/src/+/f42530c8a51162f2b510188de04752edf06a1345

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix test #

Total comments: 15

Patch Set 4 : Review comments #

Patch Set 5 : Finish highlight on API callback #

Total comments: 5

Patch Set 6 : Review comments, change how highlighting triggers #

Total comments: 2

Patch Set 7 : Add debouncer, rebase past DND change #

Total comments: 10

Patch Set 8 : Review comments #

Total comments: 6

Patch Set 9 : Reformat json schema #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -50 lines) Patch
M chrome/browser/resources/md_bookmarks/actions.js View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/api_listener.js View 1 2 3 4 5 6 7 6 chunks +67 lines, -16 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/app.js View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/command_manager.js View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/resources/md_bookmarks/compiled_resources2.gyp View 1 2 3 4 5 6 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/dialog_focus_manager.js View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/resources/md_bookmarks/dnd_manager.js View 1 2 3 4 5 6 7 3 chunks +33 lines, -8 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/edit_dialog.js View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/md_bookmarks/list.html View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/list.js View 1 2 3 4 5 6 7 chunks +56 lines, -10 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/store_client.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_bookmarks/timer_proxy.js View 1 2 3 4 5 6 7 2 chunks +57 lines, -1 line 0 comments Download
M chrome/common/extensions/api/bookmark_manager_private.json View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/command_manager_test.js View 1 2 3 4 5 6 3 chunks +86 lines, -2 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/list_test.js View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/test_store.js View 1 2 3 4 3 chunks +11 lines, -4 lines 0 comments Download
M third_party/closure_compiler/externs/bookmark_manager_private.js View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 67 (47 generated)
tsergeant
PTAL. Note that at the moment, focusing the items gives them a focus ring. I'm ...
3 years, 5 months ago (2017-07-11 23:19:40 UTC) #16
calamity
This is pretty noice! Any possibility of something similar for undo/redo? https://codereview.chromium.org/2977523002/diff/40001/chrome/browser/resources/md_bookmarks/list.js File chrome/browser/resources/md_bookmarks/list.js (right): ...
3 years, 5 months ago (2017-07-14 04:14:40 UTC) #17
tsergeant
https://codereview.chromium.org/2977523002/diff/40001/chrome/browser/resources/md_bookmarks/list.js File chrome/browser/resources/md_bookmarks/list.js (right): https://codereview.chromium.org/2977523002/diff/40001/chrome/browser/resources/md_bookmarks/list.js#newcode177 chrome/browser/resources/md_bookmarks/list.js:177: (e.detail.filter((item) => this.displayedIds_.indexOf(item) != -1)); On 2017/07/14 04:14:39, calamity ...
3 years, 5 months ago (2017-07-14 06:39:20 UTC) #18
calamity
https://codereview.chromium.org/2977523002/diff/40001/chrome/browser/resources/md_bookmarks/list.js File chrome/browser/resources/md_bookmarks/list.js (right): https://codereview.chromium.org/2977523002/diff/40001/chrome/browser/resources/md_bookmarks/list.js#newcode177 chrome/browser/resources/md_bookmarks/list.js:177: (e.detail.filter((item) => this.displayedIds_.indexOf(item) != -1)); On 2017/07/14 06:39:20, tsergeant ...
3 years, 5 months ago (2017-07-17 05:09:49 UTC) #19
tsergeant
https://codereview.chromium.org/2977523002/diff/40001/chrome/browser/resources/md_bookmarks/list.js File chrome/browser/resources/md_bookmarks/list.js (right): https://codereview.chromium.org/2977523002/diff/40001/chrome/browser/resources/md_bookmarks/list.js#newcode183 chrome/browser/resources/md_bookmarks/list.js:183: bookmarks.actions.selectAll(toHighlight, this.getState(), leadId)); On 2017/07/17 05:09:49, calamity wrote: > ...
3 years, 5 months ago (2017-07-18 01:08:55 UTC) #24
calamity
https://codereview.chromium.org/2977523002/diff/100001/chrome/browser/resources/md_bookmarks/api_listener.js File chrome/browser/resources/md_bookmarks/api_listener.js (right): https://codereview.chromium.org/2977523002/diff/100001/chrome/browser/resources/md_bookmarks/api_listener.js#newcode49 chrome/browser/resources/md_bookmarks/api_listener.js:49: assert(trackUpdates); Try mashing Ctrl+V while you drop something. I ...
3 years, 5 months ago (2017-07-19 05:25:14 UTC) #27
tsergeant
https://codereview.chromium.org/2977523002/diff/100001/chrome/browser/resources/md_bookmarks/api_listener.js File chrome/browser/resources/md_bookmarks/api_listener.js (right): https://codereview.chromium.org/2977523002/diff/100001/chrome/browser/resources/md_bookmarks/api_listener.js#newcode49 chrome/browser/resources/md_bookmarks/api_listener.js:49: assert(trackUpdates); On 2017/07/19 05:25:14, calamity wrote: > Try mashing ...
3 years, 5 months ago (2017-07-19 06:53:12 UTC) #30
calamity
https://codereview.chromium.org/2977523002/diff/120001/chrome/browser/resources/md_bookmarks/api_listener.js File chrome/browser/resources/md_bookmarks/api_listener.js (right): https://codereview.chromium.org/2977523002/diff/120001/chrome/browser/resources/md_bookmarks/api_listener.js#newcode19 chrome/browser/resources/md_bookmarks/api_listener.js:19: var shouldHighlightAfterBatch = false; As discussed, it would be ...
3 years, 5 months ago (2017-07-20 05:49:03 UTC) #37
tsergeant
https://codereview.chromium.org/2977523002/diff/120001/chrome/browser/resources/md_bookmarks/api_listener.js File chrome/browser/resources/md_bookmarks/api_listener.js (right): https://codereview.chromium.org/2977523002/diff/120001/chrome/browser/resources/md_bookmarks/api_listener.js#newcode19 chrome/browser/resources/md_bookmarks/api_listener.js:19: var shouldHighlightAfterBatch = false; On 2017/07/20 05:49:03, calamity wrote: ...
3 years, 5 months ago (2017-07-25 00:13:00 UTC) #42
calamity
Basically LG. https://codereview.chromium.org/2977523002/diff/140001/chrome/browser/resources/md_bookmarks/dnd_manager.js File chrome/browser/resources/md_bookmarks/dnd_manager.js (right): https://codereview.chromium.org/2977523002/diff/140001/chrome/browser/resources/md_bookmarks/dnd_manager.js#newcode483 chrome/browser/resources/md_bookmarks/dnd_manager.js:483: bookmarks.ApiListener.highlightUpdatedItems(); optional: Consider using an array of ...
3 years, 4 months ago (2017-07-26 05:36:07 UTC) #43
tsergeant
https://codereview.chromium.org/2977523002/diff/140001/chrome/browser/resources/md_bookmarks/dnd_manager.js File chrome/browser/resources/md_bookmarks/dnd_manager.js (right): https://codereview.chromium.org/2977523002/diff/140001/chrome/browser/resources/md_bookmarks/dnd_manager.js#newcode483 chrome/browser/resources/md_bookmarks/dnd_manager.js:483: bookmarks.ApiListener.highlightUpdatedItems(); On 2017/07/26 05:36:06, calamity wrote: > optional: Consider ...
3 years, 4 months ago (2017-07-26 06:34:07 UTC) #44
calamity
lgtm
3 years, 4 months ago (2017-07-26 06:46:07 UTC) #45
tsergeant
+rdevlin.cronin@ for chrome/common/extensions/api/bookmark_manager_private.json +dpapad@ for third_party/closure_compiler/externs/bookmark_manager_private.js PTAL, thanks!
3 years, 4 months ago (2017-07-26 07:10:48 UTC) #47
Devlin
https://codereview.chromium.org/2977523002/diff/160001/chrome/common/extensions/api/bookmark_manager_private.json File chrome/common/extensions/api/bookmark_manager_private.json (right): https://codereview.chromium.org/2977523002/diff/160001/chrome/common/extensions/api/bookmark_manager_private.json#newcode175 chrome/common/extensions/api/bookmark_manager_private.json:175: {"type": "function", "name": "callback", "optional": true, "parameters": []} nit: ...
3 years, 4 months ago (2017-07-26 16:10:38 UTC) #48
tsergeant
https://codereview.chromium.org/2977523002/diff/160001/chrome/common/extensions/api/bookmark_manager_private.json File chrome/common/extensions/api/bookmark_manager_private.json (right): https://codereview.chromium.org/2977523002/diff/160001/chrome/common/extensions/api/bookmark_manager_private.json#newcode175 chrome/common/extensions/api/bookmark_manager_private.json:175: {"type": "function", "name": "callback", "optional": true, "parameters": []} On ...
3 years, 4 months ago (2017-07-26 23:36:39 UTC) #50
tsergeant
https://codereview.chromium.org/2977523002/diff/160001/third_party/closure_compiler/externs/bookmark_manager_private.js File third_party/closure_compiler/externs/bookmark_manager_private.js (right): https://codereview.chromium.org/2977523002/diff/160001/third_party/closure_compiler/externs/bookmark_manager_private.js#newcode93 third_party/closure_compiler/externs/bookmark_manager_private.js:93: * @param {Function=} callback On 2017/07/26 23:36:39, tsergeant wrote: ...
3 years, 4 months ago (2017-07-27 03:06:20 UTC) #51
Devlin
lgtm (note: I also own externs, so dpapad might not be necessary on this CL? ...
3 years, 4 months ago (2017-07-27 16:36:36 UTC) #52
tsergeant
Ah, didn't realise you were an owner for both. I'm going to go ahead and ...
3 years, 4 months ago (2017-07-28 02:37:08 UTC) #61
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/2977523002/200001
3 years, 4 months ago (2017-07-28 02:37:30 UTC) #64
commit-bot: I haz the power
3 years, 4 months ago (2017-07-28 02:45:26 UTC) #67
Message was sent while issue was closed.
Committed patchset #9 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/f42530c8a51162f2b510188de047...

Powered by Google App Engine
This is Rietveld 408576698