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

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

Issue 2207323002: [MD History] Factor out a common HistoryListBehavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll apse.html"> 2 <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-icon/iron-icon.htm l"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
4 <link rel="import" href="chrome://history/constants.html"> 4 <link rel="import" href="chrome://history/constants.html">
5 <link rel="import" href="chrome://history/history_item.html"> 5 <link rel="import" href="chrome://history/history_item.html">
6 <link rel="import" href="chrome://history/history_list_behavior.html">
6 <link rel="import" href="chrome://history/shared_style.html"> 7 <link rel="import" href="chrome://history/shared_style.html">
7 8
8 <dom-module id="history-grouped-list"> 9 <dom-module id="history-grouped-list">
9 <template> 10 <template>
10 <style include="shared-style"> 11 <style include="shared-style">
11 :host { 12 :host {
12 display: block; 13 display: block;
13 overflow: auto; 14 overflow: auto;
14 position: relative; 15 position: relative;
15 } 16 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 <template is="dom-if" if="[[domain.rendered]]"> 96 <template is="dom-if" if="[[domain.rendered]]">
96 <template is="dom-repeat" items="[[domain.visits]]" 97 <template is="dom-repeat" items="[[domain.visits]]"
97 as="item" initial-count="5" index-as="itemIndex"> 98 as="item" initial-count="5" index-as="itemIndex">
98 <history-item item="[[item]]" 99 <history-item item="[[item]]"
99 starred="[[item.starred]]" 100 starred="[[item.starred]]"
100 selected="{{item.selected}}" 101 selected="{{item.selected}}"
101 has-time-gap="[[needsTimeGap_( 102 has-time-gap="[[needsTimeGap_(
102 groupIndex, domainIndex, itemIndex)]]" 103 groupIndex, domainIndex, itemIndex)]]"
103 search-term="[[searchedTerm]]" 104 search-term="[[searchedTerm]]"
104 number-of-items="[[historyData.length]]" 105 number-of-items="[[historyData.length]]"
106 path="[[pathForItem_(
107 groupIndex, domainIndex, itemIndex)]]"
105 embedded> 108 embedded>
106 </history-item> 109 </history-item>
107 </template> 110 </template>
108 </template> 111 </template>
109 </iron-collapse> 112 </iron-collapse>
110 </div> 113 </div>
111 </template> 114 </template>
112 </div> 115 </div>
113 </template> 116 </template>
114 </div> 117 </div>
115 </template> 118 </template>
116 <script src="chrome://history/grouped_list.js"></script> 119 <script src="chrome://history/grouped_list.js"></script>
117 </dom-module> 120 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698