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

Issue 1607403004: MD History: Display synced tabs history (Closed)

Created:
4 years, 11 months ago by yingran
Modified:
4 years, 9 months ago
Reviewers:
tsergeant, calamity
CC:
chromium-reviews, vitalyp+closure_chromium.org, arv+watch_chromium.org, jlklein+watch-closure_chromium.org, dbeam+watch-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: Display synced tabs history Synced tabs cards are collapsible. Added a sidebar to navigate between history and synced tabs view. BUG=425625

Patch Set 1 #

Patch Set 2 : Renamed stuff #

Patch Set 3 : Page refresh bug fix. Favicon display bug fix #

Patch Set 4 : Cleaned up code & renamed function #

Patch Set 5 : Rebase and some minor modifications #

Patch Set 6 : Style fixes & having no synced history will hide the sidebar #

Total comments: 47

Patch Set 7 : Changed switching between pages & addressed comments #

Total comments: 20

Patch Set 8 : address comments' : #

Patch Set 9 : Merged but tests not working everything else SEEMS ok #

Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -46 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/compiled_resources.gyp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/history.html View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/resources/md_history/history.js View 1 2 3 4 5 6 7 8 3 chunks +29 lines, -4 lines 0 comments Download
A chrome/browser/resources/md_history/history_card.html View 1 2 3 4 5 6 7 8 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/history_item.html View 1 2 3 4 5 6 7 8 5 chunks +9 lines, -40 lines 0 comments Download
M chrome/browser/resources/md_history/history_item.js View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/resources/md_history/shared_style.html View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_history/side_bar.html View 1 2 3 4 5 6 7 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_history/side_bar.js View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_history/synced_device_card.html View 1 2 3 4 5 6 7 8 1 chunk +93 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_history/synced_device_card.js View 1 2 3 4 5 6 7 1 chunk +70 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_history/synced_device_manager.html View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_history/synced_device_manager.js View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/md_history_ui.cc View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (8 generated)
yingran
4 years, 11 months ago (2016-01-21 00:55:25 UTC) #2
calamity
First pass. I foresee epic merge fun when hannah tries to land some of her ...
4 years, 10 months ago (2016-02-02 04:09:48 UTC) #9
tsergeant
Review review: Solid code review, 9/10 https://codereview.chromium.org/1607403004/diff/160001/chrome/browser/resources/md_history/synced_device_card.html File chrome/browser/resources/md_history/synced_device_card.html (right): https://codereview.chromium.org/1607403004/diff/160001/chrome/browser/resources/md_history/synced_device_card.html#newcode83 chrome/browser/resources/md_history/synced_device_card.html:83: -webkit-padding-start: 0.3em; On ...
4 years, 10 months ago (2016-02-03 03:00:00 UTC) #11
yingran
https://codereview.chromium.org/1607403004/diff/160001/chrome/browser/resources/md_history/history.js File chrome/browser/resources/md_history/history.js (right): https://codereview.chromium.org/1607403004/diff/160001/chrome/browser/resources/md_history/history.js#newcode81 chrome/browser/resources/md_history/history.js:81: $('synced-device-manager').hidden = true; On 2016/02/02 04:09:47, calamity wrote: > ...
4 years, 10 months ago (2016-02-09 04:21:35 UTC) #12
calamity
https://codereview.chromium.org/1607403004/diff/160001/chrome/browser/resources/md_history/synced_device_card.js File chrome/browser/resources/md_history/synced_device_card.js (right): https://codereview.chromium.org/1607403004/diff/160001/chrome/browser/resources/md_history/synced_device_card.js#newcode54 chrome/browser/resources/md_history/synced_device_card.js:54: * Converst a boolean to a string. On 2016/02/09 ...
4 years, 10 months ago (2016-02-11 00:23:31 UTC) #13
yingran
4 years, 10 months ago (2016-02-11 02:06:36 UTC) #14
https://codereview.chromium.org/1607403004/diff/160001/chrome/browser/resourc...
File chrome/browser/resources/md_history/synced_device_manager.js (right):

https://codereview.chromium.org/1607403004/diff/160001/chrome/browser/resourc...
chrome/browser/resources/md_history/synced_device_manager.js:31: tabs:
sessionList[i].windows[0].tabs,
On 2016/02/11 00:23:31, calamity wrote:
> On 2016/02/09 04:21:34, yingran wrote:
> > On 2016/02/02 04:09:48, calamity wrote:
> > > Only 1 window? We should also have a horizontal line or something to
> separate
> > > windows.
> > 
> > Coming soon, in another CL!
> 
> Can we have tabs from all windows, unsplit? That would be a better
intermediate
> step.

they already appear... as in all tabs from all windows appear...even though it's
just windows[0].tabs

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
File chrome/browser/resources/md_history/history.js (right):

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
chrome/browser/resources/md_history/history.js:71:
$('history-card-manager').hidden = e.detail.display == 'synced-tabs-button';
On 2016/02/11 00:23:31, calamity wrote:
> Invert this.
> 
> $('synced..').hidden = ... != 'synced..'
> 
> Then the line is generalizable for other pages! So elegant. Much wow.

Done.

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
chrome/browser/resources/md_history/history.js:105: }
On 2016/02/11 00:23:31, calamity wrote:
> This whole thing would be shorter if you extracted $().hidden =
> !isTabSyncEnabled.

Done.

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
File chrome/browser/resources/md_history/shared_style.html (right):

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
chrome/browser/resources/md_history/shared_style.html:8: }
On 2016/02/11 00:23:31, calamity wrote:
> Don't think it makes sense to have :host in here.

Done.

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
chrome/browser/resources/md_history/shared_style.html:10: #main-container {
On 2016/02/11 00:23:31, calamity wrote:
> This needs a better name now.
> 
> history-item-container perhaps?
> 
> Actually, this may not work with the refactor anymore..

Done.

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
chrome/browser/resources/md_history/shared_style.html:19: #card-title {
On 2016/02/11 00:23:31, calamity wrote:
> These should all be classes.

Done.

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
File chrome/browser/resources/md_history/side_bar.html (right):

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
chrome/browser/resources/md_history/side_bar.html:30: cursor: default;
On 2016/02/11 00:23:31, calamity wrote:
> I think it makes sense to have the same cursor for selected and unselected
> items. I mean, it still ripples after you click it so it's weird to have a
> different cursor.

Done.

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
File chrome/browser/resources/md_history/side_bar.js (right):

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
chrome/browser/resources/md_history/side_bar.js:23:
Polymer.dom(this.root).querySelector('#' + e.currentTarget.id);
On 2016/02/11 00:23:31, calamity wrote:
> Can't you just use e.currentTarget?

nup

polymer-mini-extracted.js:1233 Uncaught SyntaxError: Failed to execute
'querySelector' on 'DocumentFragment': '[object HTMLDivElement]' is not a valid
selector.

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
File chrome/browser/resources/md_history/synced_device_card.html (right):

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
chrome/browser/resources/md_history/synced_device_card.html:25: }
On 2016/02/11 00:23:31, calamity wrote:
> These can be shared w/ history item.
> 
> .history-item-link perhaps.

Done.

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
chrome/browser/resources/md_history/synced_device_card.html:38: }
On 2016/02/11 00:23:31, calamity wrote:
> Can this be shared too?

Done.

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
File chrome/browser/resources/md_history/synced_device_card.js (right):

https://codereview.chromium.org/1607403004/diff/220001/chrome/browser/resourc...
chrome/browser/resources/md_history/synced_device_card.js:9: // Synced device.
On 2016/02/11 00:23:31, calamity wrote:
> // Name of the synced device?

Done.

Powered by Google App Engine
This is Rietveld 408576698