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

Unified Diff: chrome/browser/resources/md_history/synced_device_card.html

Issue 1729263005: MD History: Display synced tabs history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mdh_shared_styles
Patch Set: add tests 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/synced_device_card.html
diff --git a/chrome/browser/resources/md_history/synced_device_card.html b/chrome/browser/resources/md_history/synced_device_card.html
new file mode 100644
index 0000000000000000000000000000000000000000..a28ee2dddadd0d4e88622bdf52771ff6b5a1d7af
--- /dev/null
+++ b/chrome/browser/resources/md_history/synced_device_card.html
@@ -0,0 +1,110 @@
+<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-collapse.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html">
+<link rel="import" href="chrome://resources/html/util.html">
+<link rel="import" href="chrome://history/shared_style.html">
+
+<dom-module id="synced-device-card">
+ <template>
+ <style include="shared-style"></style>
+ <style>
+ :host {
+ @apply(--layout-center);
+ @apply(--layout-vertical);
+ padding: 0 24px 20px 24px;
+ }
+
+ #card-heading {
+ @apply(--layout-justified);
+ cursor: pointer;
+ }
+
+ #icon {
+ -webkit-margin-start: 20px;
+ }
+
+ #tab-item-list {
+ padding: 8px 0;
+ }
+
+ #open-tabs {
+ -webkit-margin-start: 20px;
+ color: rgb(102, 136, 238);
+ cursor: pointer;
+ }
+
+ #open-tabs:hover {
+ text-decoration: underline;
+ }
+
+ #last-update-time {
+ -webkit-padding-start: 0.3em;
+ color: #969696;
+ }
+
+ #dropdown-indicator {
+ -webkit-margin-end: 12px;
+ max-width: 16px;
+ }
+
+ #collapse {
+ overflow: hidden;
+ }
+
+ #history-item-container {
+ background: #fff;
+ border: 1px solid var(--card-border-color);
+ border-bottom-width: 2px;
+ max-width: var(--card-max-width);
+ min-width: var(--card-min-width);
+ width: 100%;
+ }
+
+ #item-container {
+ @apply(--layout-center);
+ @apply(--layout-horizontal);
+ min-height: 40px;
+ }
+
+ #windowSeparator {
tsergeant 2016/03/01 03:58:23 Nit: #window-separator
calamity 2016/03/08 02:46:51 Done.
+ background-color: var(--card-border-color);
+ height: 1px;
+ margin: 5px auto;
+ width: 80%;
+ }
+ </style>
+ <div id="history-item-container">
+ <div class="card-title" id="card-heading" aria-expanded$="[[cardOpen]]"
+ aria-controls="collapse" on-tap="toggleTabCard">
+ <div>
+ {{device}}
+ <span id="last-update-time">{{lastUpdateTime}}</span>
+ </div>
+ <iron-icon icon="expand-less" id="dropdown-indicator"></iron-icon>
+ </div>
+
+ <iron-collapse opened="{{cardOpen}}" id="collapse">
+ <div id="tab-item-list">
+ <template is="dom-repeat" items="{{tabs}}" as="tab" id="tab-list">
+ <div id="item-container">
+ <div id="icon" class="website-icon"></div>
+ <a href="{{tab.url}}" class="website-title" title="{{tab.title}}">
+ {{tab.title}}
+ </a>
+ </div>
+ <template is="dom-if" if="{{tab.needsWindowSeparator}}">
+ <div id="windowSeparator"></div>
+ </template>
+ </template>
+ <div class="item-container">
+ <p on-tap="openAllTabs_" id="open-tabs" i18n-content="openAll"></p>
+ </div>
+ </div>
+ </iron-collapse>
+ </div>
+ </template>
+ <script src="chrome://history/synced_device_card.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698