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

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: Merged but tests not working everything else SEEMS ok 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 :host {
15 @apply(--layout-center);
16 @apply(--layout-vertical);
17 padding: 0 24px 20px 24px;
18 }
19
20 #tab-url {
21 -webkit-margin-end: 20px;
22 }
23
24 #tab-url:hover {
25 text-decoration: underline;
26 }
27
28 #card-heading {
29 @apply(--layout-justified);
30 cursor: pointer;
31 }
32
33 #icon {
34 -webkit-margin-start: 20px;
35 }
36
37 #tab-item-list {
38 padding: 8px 0;
39 }
40
41 #open-tabs {
42 -webkit-margin-start: 20px;
43 color: rgb(102, 136, 238);
44 cursor: pointer;
45 }
46
47 #open-tabs:hover {
48 text-decoration: underline;
49 }
50
51 #last-update-time {
52 -webkit-padding-start: 0.3em;
53 color: #969696;
54 }
55
56 #dropdown-indicator {
57 -webkit-margin-end: 12px;
58 max-width: 16px;
59 }
60
61 #collapse {
62 overflow: hidden;
63 }
64 </style>
65
66 <div class="history-item-container">
67 <div class="card-title" id="card-heading" aria-expanded$="[[cardOpen]]"
68 aria-controls="collapse" on-tap="toggleTabCard">
69 <div>
70 {{device}}
71 <span id="last-update-time">{{lastUpdateTime}}</span>
72 </div>
73 <iron-icon icon="expand-less" id="dropdown-indicator"></iron-icon>
74 </div>
75
76 <iron-collapse opened="{{cardOpen}}" id="collapse">
77 <div id="tab-item-list">
78 <template is="dom-repeat" items="{{tabs}}" as="tab" id="tab-list">
79 <div class="item-container">
80 <div class="website-icon" id="icon"></div>
81 <a href="{{tab.url}}" id="tab-url" class="url">{{tab.title}}</a>
82 </div>
83 </template>
84 <div class="item-container">
85 <p on-tap="openAllTabs_" id="open-tabs" i18n-content="openAll"></p>
86 </div>
87 </div>
88 </iron-collapse>
89
90 </div>
91 </template>
92 <script src="chrome://history/synced_device_card.js"></script>
93 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.js ('k') | chrome/browser/resources/md_history/synced_device_card.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698