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

Issue 1641543002: MD History: Refactored design for displaying history information (Closed)

Created:
4 years, 10 months ago by yingran
Modified:
4 years, 10 months ago
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-closure_chromium.org, jlklein+watch-closure_chromium.org, vitalyp+closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@second_patch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD History: Refactored design for displaying history information. Iron list now iterates over a list of history items to improve performance and loading for infinite scroll as each item is similarly sized. History cards have been completely removed. BUG=425625 Committed: https://crrev.com/404625f55ce32a752ba7ab0944e0bfec26bd2272 Cr-Commit-Position: refs/heads/master@{#375133}

Patch Set 1 #

Patch Set 2 : Renamed files #

Patch Set 3 : Stops requesting data when no more history #

Patch Set 4 : Fixed tests #

Patch Set 5 : removed dodgy fix for end of history query: #

Total comments: 24

Patch Set 6 : Address reviewer's comments #

Total comments: 12

Patch Set 7 : Addressed reviewer's comments #

Patch Set 8 : The rename thing #

Patch Set 9 : rebase #

Patch Set 10 : Some comments addressed #

Patch Set 11 : concat -> push #

Total comments: 12

Patch Set 12 : Borders + comments addressed #

Total comments: 22

Patch Set 13 : Rebase + reply to comments #

Total comments: 14

Patch Set 14 : That thing we talked about regarding setting last history item #

Total comments: 2

Patch Set 15 : Rebased tests + added some more #

Total comments: 14

Patch Set 16 : Rebase+ #

Patch Set 17 : Added that one case for the separators tests #

Total comments: 4

Patch Set 18 : nits resolved #

Patch Set 19 : closure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -981 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/resources/md_history/compiled_resources.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/md_history/history.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/resources/md_history/history.js View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +6 lines, -6 lines 0 comments Download
D chrome/browser/resources/md_history/history_card.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -70 lines 0 comments Download
D chrome/browser/resources/md_history/history_card.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -37 lines 0 comments Download
M chrome/browser/resources/md_history/history_card_manager.html View 1 1 chunk +0 lines, -61 lines 0 comments Download
D chrome/browser/resources/md_history/history_card_manager.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -240 lines 0 comments Download
M chrome/browser/resources/md_history/history_item.html View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +74 lines, -14 lines 0 comments Download
M chrome/browser/resources/md_history/history_item.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +30 lines, -7 lines 0 comments Download
A + chrome/browser/resources/md_history/history_list.html View 1 2 3 4 5 6 5 chunks +21 lines, -12 lines 0 comments Download
A + chrome/browser/resources/md_history/history_list.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +105 lines, -100 lines 0 comments Download
M chrome/browser/ui/webui/md_history_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -8 lines 0 comments Download
D chrome/test/data/webui/md_history/history_card_manager_test.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -208 lines 0 comments Download
D chrome/test/data/webui/md_history/history_card_test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -58 lines 0 comments Download
A + chrome/test/data/webui/md_history/history_item_test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +50 lines, -33 lines 0 comments Download
A + chrome/test/data/webui/md_history/history_list_test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +72 lines, -97 lines 0 comments Download
M chrome/test/data/webui/md_history/history_overflow_menu_test.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/md_history/history_supervised_user_test.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +12 lines, -10 lines 0 comments Download
M chrome/test/data/webui/md_history/history_toolbar_test.js View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/data/webui/md_history/md_history_browsertest.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 47 (16 generated)
yingran
4 years, 10 months ago (2016-01-27 06:58:54 UTC) #3
tsergeant
Not going to do a proper review until other stuff starts landing, but: 1) Overall, ...
4 years, 10 months ago (2016-01-27 22:22:52 UTC) #5
tsergeant
https://codereview.chromium.org/1641543002/diff/160001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/1641543002/diff/160001/chrome/browser/browser_resources.grd#newcode209 chrome/browser/browser_resources.grd:209: <include name="IDR_MD_HISTORY_HISTORY_HTML" file="resources\md_history\history.html" type="BINDATA" /> history.html is out of ...
4 years, 10 months ago (2016-02-02 05:58:00 UTC) #10
yingran
https://codereview.chromium.org/1641543002/diff/160001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/1641543002/diff/160001/chrome/browser/browser_resources.grd#newcode209 chrome/browser/browser_resources.grd:209: <include name="IDR_MD_HISTORY_HISTORY_HTML" file="resources\md_history\history.html" type="BINDATA" /> On 2016/02/02 05:58:00, tsergeant ...
4 years, 10 months ago (2016-02-02 06:49:11 UTC) #11
tsergeant
https://codereview.chromium.org/1641543002/diff/180001/chrome/browser/resources/md_history/history_item.js File chrome/browser/resources/md_history/history_item.js (right): https://codereview.chromium.org/1641543002/diff/180001/chrome/browser/resources/md_history/history_item.js#newcode68 chrome/browser/resources/md_history/history_item.js:68: isLastCard: { Forgot to mention this explicitly, but you ...
4 years, 10 months ago (2016-02-02 23:47:33 UTC) #12
tsergeant
Also, please update your CL description to use the new names and be a little ...
4 years, 10 months ago (2016-02-02 23:54:16 UTC) #13
yingran
https://codereview.chromium.org/1641543002/diff/180001/chrome/browser/resources/md_history/history_item.js File chrome/browser/resources/md_history/history_item.js (right): https://codereview.chromium.org/1641543002/diff/180001/chrome/browser/resources/md_history/history_item.js#newcode68 chrome/browser/resources/md_history/history_item.js:68: isLastCard: { On 2016/02/02 23:47:33, tsergeant wrote: > Forgot ...
4 years, 10 months ago (2016-02-04 02:13:42 UTC) #14
tsergeant
Generally looking good. Make sure this is rebased, as well, since some stuff has changed. ...
4 years, 10 months ago (2016-02-04 03:11:51 UTC) #15
yingran
4 years, 10 months ago (2016-02-05 00:21:03 UTC) #18
yingran
+dbeam for browser_resources.grd OWNERS. PTAL thanks :)
4 years, 10 months ago (2016-02-05 04:55:27 UTC) #20
Dan Beam
lgtm
4 years, 10 months ago (2016-02-06 03:33:45 UTC) #21
tsergeant
Mostly looks good. A couple of extra things: 1. Can you try adding borders to ...
4 years, 10 months ago (2016-02-08 00:10:54 UTC) #22
tsergeant
https://codereview.chromium.org/1641543002/diff/320001/chrome/browser/resources/md_history/history_item.html File chrome/browser/resources/md_history/history_item.html (right): https://codereview.chromium.org/1641543002/diff/320001/chrome/browser/resources/md_history/history_item.html#newcode147 chrome/browser/resources/md_history/history_item.html:147: <a href="{{websiteUrl}}" id="title">{{websiteTitle}}</a> While you're here, when you use ...
4 years, 10 months ago (2016-02-08 02:23:59 UTC) #23
yingran
https://codereview.chromium.org/1641543002/diff/320001/chrome/browser/resources/md_history/history_item.html File chrome/browser/resources/md_history/history_item.html (right): https://codereview.chromium.org/1641543002/diff/320001/chrome/browser/resources/md_history/history_item.html#newcode147 chrome/browser/resources/md_history/history_item.html:147: <a href="{{websiteUrl}}" id="title">{{websiteTitle}}</a> On 2016/02/08 02:23:59, tsergeant wrote: > ...
4 years, 10 months ago (2016-02-08 03:20:36 UTC) #25
tsergeant
Two more things: 1) Please rebase from master. I wasn't able to apply your patch ...
4 years, 10 months ago (2016-02-08 03:44:51 UTC) #26
Dan Beam
https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_list.js File chrome/browser/resources/md_history/history_list.js (right): https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_list.js#newcode102 chrome/browser/resources/md_history/history_list.js:102: this.push.apply(this, results); On 2016/02/08 03:44:51, tsergeant wrote: > Should ...
4 years, 10 months ago (2016-02-08 23:50:47 UTC) #27
calamity
https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_item.html File chrome/browser/resources/md_history/history_item.html (right): https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_item.html#newcode144 chrome/browser/resources/md_history/history_item.html:144: nit: stray newline. https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_item.js File chrome/browser/resources/md_history/history_item.js (right): https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_item.js#newcode15 chrome/browser/resources/md_history/history_item.js:15: ...
4 years, 10 months ago (2016-02-09 12:25:29 UTC) #28
yingran
https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_item.html File chrome/browser/resources/md_history/history_item.html (right): https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_item.html#newcode22 chrome/browser/resources/md_history/history_item.html:22: border-left: 1px solid rgba(0, 0, 0, 0.14); On 2016/02/08 ...
4 years, 10 months ago (2016-02-11 00:41:43 UTC) #29
yingran
4 years, 10 months ago (2016-02-11 02:39:57 UTC) #30
tsergeant
Comments are mostly on patchset 13 https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_item.js File chrome/browser/resources/md_history/history_item.js (right): https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_item.js#newcode15 chrome/browser/resources/md_history/history_item.js:15: timeAccessed: { On ...
4 years, 10 months ago (2016-02-11 02:43:02 UTC) #31
yingran
https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_item.js File chrome/browser/resources/md_history/history_item.js (right): https://codereview.chromium.org/1641543002/diff/340001/chrome/browser/resources/md_history/history_item.js#newcode15 chrome/browser/resources/md_history/history_item.js:15: timeAccessed: { On 2016/02/11 02:43:02, tsergeant wrote: > On ...
4 years, 10 months ago (2016-02-12 02:03:05 UTC) #32
calamity
https://codereview.chromium.org/1641543002/diff/400001/chrome/browser/resources/md_history/history_list.js File chrome/browser/resources/md_history/history_list.js (right): https://codereview.chromium.org/1641543002/diff/400001/chrome/browser/resources/md_history/history_list.js#newcode15 chrome/browser/resources/md_history/history_list.js:15: // The time in seconds of the last history ...
4 years, 10 months ago (2016-02-12 02:50:23 UTC) #34
tsergeant
https://codereview.chromium.org/1641543002/diff/400001/chrome/test/data/webui/md_history/history_item_test.js File chrome/test/data/webui/md_history/history_item_test.js (right): https://codereview.chromium.org/1641543002/diff/400001/chrome/test/data/webui/md_history/history_item_test.js#newcode42 chrome/test/data/webui/md_history/history_item_test.js:42: test('separator insertion after deletion', function(done) { I think this ...
4 years, 10 months ago (2016-02-12 03:05:52 UTC) #35
yingran
https://codereview.chromium.org/1641543002/diff/400001/chrome/browser/resources/md_history/history_list.js File chrome/browser/resources/md_history/history_list.js (right): https://codereview.chromium.org/1641543002/diff/400001/chrome/browser/resources/md_history/history_list.js#newcode15 chrome/browser/resources/md_history/history_list.js:15: // The time in seconds of the last history ...
4 years, 10 months ago (2016-02-12 03:30:32 UTC) #37
calamity
lgtm
4 years, 10 months ago (2016-02-12 04:11:10 UTC) #38
tsergeant
Very close https://codereview.chromium.org/1641543002/diff/460001/chrome/browser/resources/md_history/history_list.js File chrome/browser/resources/md_history/history_list.js (right): https://codereview.chromium.org/1641543002/diff/460001/chrome/browser/resources/md_history/history_list.js#newcode166 chrome/browser/resources/md_history/history_list.js:166: if (this.historyData[i - 1].needsTimeGap) { Nit: {} ...
4 years, 10 months ago (2016-02-12 04:14:30 UTC) #39
tsergeant
lgtm ヾ(⌐■_■)ノ♪ Triple check the closure compile before you commit -- you don't want this ...
4 years, 10 months ago (2016-02-12 04:22:20 UTC) #40
yingran
https://codereview.chromium.org/1641543002/diff/460001/chrome/browser/resources/md_history/history_list.js File chrome/browser/resources/md_history/history_list.js (right): https://codereview.chromium.org/1641543002/diff/460001/chrome/browser/resources/md_history/history_list.js#newcode166 chrome/browser/resources/md_history/history_list.js:166: if (this.historyData[i - 1].needsTimeGap) { On 2016/02/12 04:14:30, tsergeant ...
4 years, 10 months ago (2016-02-12 04:37:43 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1641543002/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1641543002/500001
4 years, 10 months ago (2016-02-12 04:43:28 UTC) #44
commit-bot: I haz the power
Committed patchset #19 (id:500001)
4 years, 10 months ago (2016-02-12 05:54:43 UTC) #45
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:41:58 UTC) #47
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/404625f55ce32a752ba7ab0944e0bfec26bd2272
Cr-Commit-Position: refs/heads/master@{#375133}

Powered by Google App Engine
This is Rietveld 408576698