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

Side by Side Diff: chrome/browser/resources/md_history/synced_device_card.html

Issue 1607403004: MD History: Display synced tabs history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@second_patch
Patch Set: Changed switching between pages & addressed comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll apse.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml">
6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html">
7 <link rel="import" href="chrome://resources/html/util.html">
8
9 <link rel="import" href="chrome://history/shared_style.html">
10 <dom-module id="synced-device-card">
11 <template>
12 <style include="shared-style"></style>
13 <style>
14 #tab-url {
15 -webkit-margin-end: 20px;
16 color: #333;
17 overflow: hidden;
18 text-decoration: none;
19 text-overflow: ellipsis;
20 white-space: nowrap;
21 }
22
23 #tab-url:hover {
24 text-decoration: underline;
25 }
calamity 2016/02/11 00:23:31 These can be shared w/ history item. .history-ite
yingran 2016/02/11 02:06:36 Done.
26
27 .card-heading {
28 @apply(--layout-justified);
29 border: 0;
30 cursor: pointer;
31 }
32
33 .website-icon {
34 -webkit-margin-end: 16px;
35 -webkit-margin-start: 20px;
36 height: 16px;
37 min-width: 16px;
38 }
calamity 2016/02/11 00:23:31 Can this be shared too?
yingran 2016/02/11 02:06:36 Done.
39
40 .item-container {
41 @apply(--layout-center);
42 @apply(--layout-horizontal);
43 min-height: 40px;
44 }
45
46 #tab-item-list {
47 padding: 8px 0;
48 }
49
50 #open-tabs {
51 -webkit-margin-start: 20px;
52 color: rgb(102, 136, 238);
53 cursor: pointer;
54 }
55
56 #open-tabs:hover {
57 text-decoration: underline;
58 }
59
60 #last-update-time {
61 -webkit-padding-start: 0.3em;
62 color: #969696;
63 }
64
65 #dropdown-indicator {
66 -webkit-margin-end: 12px;
67 max-width: 16px;
68 }
69
70 #collapse {
71 overflow: hidden;
72 }
73 </style>
74
75 <div id="main-container">
76 <div id="card-title" class="card-heading" aria-expanded$="[[cardOpen]]"
77 aria-controls="collapse" on-tap="toggleTabCard">
78 <div>
79 {{device}}
80 <span id="last-update-time">{{lastUpdateTime}}</span>
81 </div>
82 <iron-icon icon="expand-less" id="dropdown-indicator"></iron-icon>
83 </div>
84
85 <iron-collapse opened="{{cardOpen}}" id="collapse">
86 <div id="tab-item-list">
87 <template is="dom-repeat" items="{{tabs}}" as="tab" id="tab-list">
88 <div class="item-container">
89 <div class="website-icon" id="icon"></div>
90 <a href="{{tab.url}}" id="tab-url">{{tab.title}}</a>
91 </div>
92 </template>
93 <div class="item-container">
94 <p on-tap="openAllTabs_" id="open-tabs" i18n-content="openAll"></p>
95 </div>
96 </div>
97 </iron-collapse>
98
99 </div>
100 </template>
101 <script src="chrome://history/synced_device_card.js"></script>
102 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698