OLD | NEW |
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-flex-layout/iron-f
lex-layout.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.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/paper-button/paper-butt
on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> |
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
8 <link rel="import" href="chrome://resources/html/icon.html"> | 8 <link rel="import" href="chrome://resources/html/icon.html"> |
9 <link rel="import" href="chrome://resources/html/util.html"> | 9 <link rel="import" href="chrome://resources/html/util.html"> |
| 10 <link rel="import" href="chrome://history/browser_service.html"> |
10 <link rel="import" href="chrome://history/constants.html"> | 11 <link rel="import" href="chrome://history/constants.html"> |
11 <link rel="import" href="chrome://history/searched_label.html"> | 12 <link rel="import" href="chrome://history/searched_label.html"> |
12 <link rel="import" href="chrome://history/shared_style.html"> | 13 <link rel="import" href="chrome://history/shared_style.html"> |
13 | 14 |
14 <dom-module id="history-item"> | 15 <dom-module id="history-item"> |
15 <template> | 16 <template> |
16 <style include="shared-style"> | 17 <style include="shared-style"> |
17 :host { | 18 :host { |
18 @apply(--layout-center); | 19 @apply(--layout-center); |
19 @apply(--layout-vertical); | 20 @apply(--layout-vertical); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 105 |
105 #menu-button iron-icon { | 106 #menu-button iron-icon { |
106 height: 20px; | 107 height: 20px; |
107 width: 20px; | 108 width: 20px; |
108 } | 109 } |
109 | 110 |
110 #bookmark-star { | 111 #bookmark-star { |
111 -webkit-margin-end: 10px; | 112 -webkit-margin-end: 10px; |
112 -webkit-margin-start: 20px; | 113 -webkit-margin-start: 20px; |
113 color: rgb(68, 136, 255); | 114 color: rgb(68, 136, 255); |
| 115 height: 20px; |
| 116 visibility: hidden; |
| 117 width: 20px; |
| 118 } |
| 119 |
| 120 #bookmark-star iron-icon { |
114 height: 16px; | 121 height: 16px; |
115 visibility: hidden; | |
116 width: 16px; | 122 width: 16px; |
117 } | 123 } |
118 | 124 |
119 :host([starred]) #bookmark-star { | 125 :host([starred]) #bookmark-star { |
120 visibility: visible; | 126 visibility: visible; |
121 } | 127 } |
122 | 128 |
123 #time-gap-separator { | 129 #time-gap-separator { |
124 -webkit-border-start: 1px solid #888; | 130 -webkit-border-start: 1px solid #888; |
125 -webkit-margin-start: 77px; | 131 -webkit-margin-start: 77px; |
(...skipping 10 matching lines...) Expand all Loading... |
136 </paper-checkbox> | 142 </paper-checkbox> |
137 <span id="time-accessed">[[item.readableTimestamp]]</span> | 143 <span id="time-accessed">[[item.readableTimestamp]]</span> |
138 <div class="website-icon" id="icon"></div> | 144 <div class="website-icon" id="icon"></div> |
139 <div id="title-and-domain"> | 145 <div id="title-and-domain"> |
140 <a href="[[item.url]]" id="title" class="website-title"> | 146 <a href="[[item.url]]" id="title" class="website-title"> |
141 <history-searched-label title="[[cropItemTitle_(item.title)]]" | 147 <history-searched-label title="[[cropItemTitle_(item.title)]]" |
142 search-term="[[searchTerm]]"></history-searched-label> | 148 search-term="[[searchTerm]]"></history-searched-label> |
143 </a> | 149 </a> |
144 <span id="domain">[[item.domain]]</span> | 150 <span id="domain">[[item.domain]]</span> |
145 </div> | 151 </div> |
146 <iron-icon icon="cr:star" id="bookmark-star"></iron-icon> | 152 <button is="paper-icon-button-light" id="bookmark-star" |
| 153 title="$i18n{removeBookmark}" on-tap="onRemoveBookmarkTap_"> |
| 154 <iron-icon icon="cr:star"></iron-icon> |
| 155 </button> |
147 <button is="paper-icon-button-light" id="menu-button" | 156 <button is="paper-icon-button-light" id="menu-button" |
148 on-tap="onMenuButtonTap_"> | 157 on-tap="onMenuButtonTap_"> |
149 <iron-icon icon="cr:more-vert"></iron-icon> | 158 <iron-icon icon="cr:more-vert"></iron-icon> |
150 </button> | 159 </button> |
151 </div> | 160 </div> |
152 <template is="dom-if" if="[[hasTimeGap]]"> | 161 <template is="dom-if" if="[[hasTimeGap]]"> |
153 <div id="time-gap-separator"></div> | 162 <div id="time-gap-separator"></div> |
154 </template> | 163 </template> |
155 </div> | 164 </div> |
156 </template> | 165 </template> |
157 <script src="chrome://history/history_item.js"></script> | 166 <script src="chrome://history/history_item.js"></script> |
158 </dom-module> | 167 </dom-module> |
OLD | NEW |