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

Unified Diff: chrome/browser/resources/md_history/history_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/history_card.html
diff --git a/chrome/browser/resources/md_history/history_card.html b/chrome/browser/resources/md_history/history_card.html
new file mode 100644
index 0000000000000000000000000000000000000000..cbb82aacd94dd0eab5463447a19fc6bedcf7f079
--- /dev/null
+++ b/chrome/browser/resources/md_history/history_card.html
@@ -0,0 +1,50 @@
+<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.html">
+<link rel="import" href="chrome://history/history_item.html">
+
+<link rel="import" href="chrome://history/shared_style.html">
+<dom-module id="history-card">
+ <template>
+ <style include="shared-style"></style>
+ <style>
+ :host {
+ @apply(--layout-center);
+ @apply(--layout-vertical);
+ padding: 0 24px 20px 24px;
+ }
+
+ #time-gap-separator {
+ -webkit-border-start: 1px solid #888;
+ -webkit-margin-start: 77px;
+ height: 15px;
+ }
+
+ #history-item-list {
+ padding: 8px 0;
+ }
+ </style>
+
+ <div class="history-item-container">
+ <div class="card-title">[[historyDate]]</div>
+ <div id="history-item-list">
+ <template is="dom-repeat" items="{{historyItems}}"
+ as="historyItem">
+ <history-item time-accessed_="[[historyItem.dateTimeOfDay]]"
+ website-title_="[[historyItem.title]]"
+ website-domain_="[[historyItem.domain]]"
+ website-url_="[[historyItem.url]]"
+ starred="[[historyItem.starred]]"
+ selected="{{historyItem.selected}}"
+ timestamp_="[[historyItem.time]]">
+ </history-item>
+ <template is="dom-if"
+ if="[[needsTimeGap_(index, historyItems.length)]]">
+ <div id="time-gap-separator"></div>
+ </template>
+ </template>
+ </div>
+ </div>
+ </template>
+ <script src="chrome://history/history_card.js"></script>
+</dom-module>
« no previous file with comments | « chrome/browser/resources/md_history/history.js ('k') | chrome/browser/resources/md_history/history_item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698