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

Unified Diff: chrome/browser/resources/md_history/history_item.js

Issue 1641543002: MD History: Refactored design for displaying history information (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@second_patch
Patch Set: closure 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_item.js
diff --git a/chrome/browser/resources/md_history/history_item.js b/chrome/browser/resources/md_history/history_item.js
index 4b988cd6437cc1bde1cccea3e4f79947977d9da0..375da18be14d4e25b8095de06ab3cbd7de34549a 100644
--- a/chrome/browser/resources/md_history/history_item.js
+++ b/chrome/browser/resources/md_history/history_item.js
@@ -6,12 +6,18 @@ Polymer({
is: 'history-item',
properties: {
- timeAccessed_: {
+ // The date of these history items.
+ historyDate: {
type: String,
value: ''
},
- websiteTitle_: {
+ timeAccessed: {
+ type: String,
+ value: ''
+ },
+
+ websiteTitle: {
type: String,
value: ''
},
@@ -20,7 +26,7 @@ Polymer({
// Gives the user some idea of which history items are different pages
// belonging to the same site, and can be used to look for more items
// from the same site.
- websiteDomain_: {
+ websiteDomain: {
type: String,
value: ''
},
@@ -28,7 +34,7 @@ Polymer({
// The website url is used to define where the link should take you if
// you click on the title, and also to define which icon the history-item
// should display.
- websiteUrl_: {
+ websiteUrl: {
type: String,
value: '',
observer: 'showIcon_'
@@ -42,7 +48,7 @@ Polymer({
},
// The time in seconds of when the website was accessed.
- timestamp_: {
+ timestamp: {
type: Number,
value: 0
},
@@ -51,6 +57,23 @@ Polymer({
type: Boolean,
value: false,
notify: true
+ },
+
+ isCardStart: {
+ type: Boolean,
+ value: false,
+ reflectToAttribute: true
+ },
+
+ isCardEnd: {
+ type: Boolean,
+ value: false,
+ reflectToAttribute: true
+ },
+
+ hasTimeGap: {
+ type: Boolean,
+ value: false
}
},
@@ -72,7 +95,7 @@ Polymer({
*/
showIcon_: function() {
this.$['website-icon'].style.backgroundImage =
- getFaviconImageSet(this.websiteUrl_);
+ getFaviconImageSet(this.websiteUrl);
},
/**
@@ -85,7 +108,7 @@ Polymer({
this.fire('toggle-menu', {
x: position.left,
y: position.top,
- accessTime: this.timestamp_
+ accessTime: this.timestamp
});
// Stops the 'tap' event from closing the menu when it opens.
« no previous file with comments | « chrome/browser/resources/md_history/history_item.html ('k') | chrome/browser/resources/md_history/history_list.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698