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

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

Issue 2251323002: MD History: Synced Tabs fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@history_css_shuffle
Patch Set: Review comment, revulcanize Created 4 years, 4 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
1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 1 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll apse.html"> 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"> 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-flex-layout/iron-f lex-layout.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
7 <link rel="import" href="chrome://resources/html/icon.html"> 7 <link rel="import" href="chrome://resources/html/icon.html">
8 <link rel="import" href="chrome://history/browser_service.html"> 8 <link rel="import" href="chrome://history/browser_service.html">
9 <link rel="import" href="chrome://history/constants.html"> 9 <link rel="import" href="chrome://history/constants.html">
10 <link rel="import" href="chrome://history/searched_label.html"> 10 <link rel="import" href="chrome://history/searched_label.html">
11 <link rel="import" href="chrome://history/shared_style.html"> 11 <link rel="import" href="chrome://history/shared_style.html">
12 12
13 <dom-module id="history-synced-device-card"> 13 <dom-module id="history-synced-device-card">
14 <template> 14 <template>
15 <style include="shared-style"> 15 <style include="shared-style">
16 :host { 16 :host {
17 @apply(--card-sizing); 17 @apply(--card-sizing);
18 display: block; 18 display: block;
19 padding-bottom: var(--card-padding-between); 19 padding-bottom: var(--card-padding-between);
20 } 20 }
21 21
22 #card-heading { 22 #card-heading {
23 @apply(--layout-justified); 23 @apply(--layout-justified);
24 cursor: pointer; 24 cursor: pointer;
25 } 25 }
26 26
27 #icon {
28 -webkit-margin-start: 20px;
29 }
30
31 #tab-item-list { 27 #tab-item-list {
32 padding: 8px 0; 28 padding: 8px 0;
33 } 29 }
34 30
35 #last-update-time { 31 #last-update-time {
36 color: var(--secondary-text-color); 32 color: var(--secondary-text-color);
37 } 33 }
38 34
39 #right-buttons { 35 #right-buttons {
40 -webkit-margin-end: 4px; 36 -webkit-margin-end: 4px;
41 } 37 }
42 38
43 #menu-button { 39 #menu-button {
44 -webkit-margin-end: 8px; 40 -webkit-margin-end: 8px;
45 } 41 }
46 42
47 #collapse { 43 #collapse {
48 overflow: hidden; 44 overflow: hidden;
49 } 45 }
50 46
51 #history-item-container { 47 #history-item-container {
52 @apply(--card-box-shadow); 48 @apply(--card-box-shadow);
53 background: #fff; 49 background: #fff;
54 border-radius: 2px; 50 border-radius: 2px;
55 } 51 }
56 52
57 #item-container { 53 #item-container {
58 @apply(--layout-center); 54 @apply(--layout-center);
59 @apply(--layout-horizontal); 55 @apply(--layout-horizontal);
56 margin: 0 20px;
60 min-height: var(--item-height); 57 min-height: var(--item-height);
61 } 58 }
62 59
63 #window-separator { 60 #window-separator {
64 background-color: var(--card-border-color); 61 background-color: var(--card-border-color);
65 height: 1px; 62 height: 1px;
66 margin: 5px auto; 63 margin: 5px auto;
67 width: 80%; 64 width: 80%;
68 } 65 }
69 </style> 66 </style>
70 <div id="history-item-container"> 67 <div id="history-item-container">
71 <div class="card-title" id="card-heading" aria-expanded$="[[cardOpen_]]" 68 <div class="card-title" id="card-heading" aria-expanded$="[[opened]]"
72 aria-controls="collapse" on-tap="toggleTabCard"> 69 aria-controls="collapse" on-tap="toggleTabCard">
73 <div> 70 <div>
74 [[device]] 71 [[device]]
75 <span id="last-update-time">[[lastUpdateTime]]</span> 72 <span id="last-update-time">[[lastUpdateTime]]</span>
76 </div> 73 </div>
77 <div id="right-buttons"> 74 <div id="right-buttons">
78 <button is="paper-icon-button-light" id="menu-button" 75 <button is="paper-icon-button-light" id="menu-button"
79 class="icon-button" on-tap="onMenuButtonTap_" 76 class="icon-button" on-tap="onMenuButtonTap_"
80 title="$i18n{moreActionsButton}"> 77 title="$i18n{moreActionsButton}">
81 <iron-icon icon="cr:more-vert"></iron-icon> 78 <iron-icon icon="cr:more-vert"></iron-icon>
82 </button> 79 </button>
83 <button is="paper-icon-button-light" class="icon-button" 80 <button is="paper-icon-button-light" class="icon-button"
84 title$="[[getCollapseTitle_(cardOpen_)]]"> 81 title$="[[getCollapseTitle_(opened)]]">
85 <iron-icon icon="cr:expand-less" id="dropdown-indicator"> 82 <iron-icon icon="[[getCollapseIcon_(opened)]]"
83 id="dropdown-indicator">
86 </iron-icon> 84 </iron-icon>
87 </button> 85 </button>
88 </div> 86 </div>
89 </div> 87 </div>
90 88
91 <iron-collapse opened="{{cardOpen_}}" id="collapse"> 89 <iron-collapse opened="{{opened}}" id="collapse">
92 <div id="tab-item-list"> 90 <div id="tab-item-list">
93 <template is="dom-repeat" items="[[tabs]]" as="tab" id="tab-list"> 91 <template is="dom-repeat" items="[[tabs]]" as="tab" id="tab-list">
94 <div id="item-container"> 92 <div id="item-container">
95 <div id="icon" class="website-icon"></div> 93 <div id="icon" class="website-icon"></div>
96 <a href="[[tab.url]]" class="website-title" title="[[tab.title]]" 94 <a href="[[tab.url]]" class="website-title" title="[[tab.title]]"
97 on-click="openTab_"> 95 on-click="openTab_">
98 <history-searched-label title="[[tab.title]]" 96 <history-searched-label title="[[tab.title]]"
99 search-term="[[searchTerm]]"></history-searched-label> 97 search-term="[[searchTerm]]"></history-searched-label>
100 </a> 98 </a>
101 </div> 99 </div>
102 <div id="window-separator" 100 <div id="window-separator"
103 hidden$="[[!isWindowSeparatorIndex_(index, separatorIndexes)]]"> 101 hidden$="[[!isWindowSeparatorIndex_(index, separatorIndexes)]]">
104 </div> 102 </div>
105 </template> 103 </template>
106 </div> 104 </div>
107 </iron-collapse> 105 </iron-collapse>
108 </div> 106 </div>
109 </template> 107 </template>
110 <script src="chrome://history/synced_device_card.js"></script> 108 <script src="chrome://history/synced_device_card.js"></script>
111 </dom-module> 109 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/app.vulcanized.html ('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