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

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

Issue 2684493002: MD History: Delete Grouped History (Closed)
Patch Set: Rebase Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
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">
3 <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/paper-styles/shadow.htm l">
5 <link rel="import" href="chrome://history/constants.html">
6 <link rel="import" href="chrome://history/history_item.html">
7 <link rel="import" href="chrome://history/history_list_behavior.html">
8 <link rel="import" href="chrome://history/shared_style.html">
9
10 <dom-module id="history-grouped-list">
11 <template>
12 <style include="shared-style">
13 :host {
14 display: block;
15 overflow: auto;
16 position: relative;
17 }
18
19 #main-container {
20 @apply(--card-sizing);
21 align-items: center;
22 display: flex;
23 flex-direction: column;
24 padding-top: var(--first-card-padding-top);
25 }
26
27 .domain-heading {
28 align-items: center;
29 display: flex;
30 height: var(--item-height);
31 padding: 0 20px;
32 }
33
34 .domain-count {
35 color: var(--secondary-text-color);
36 padding-left: 10px;
37 }
38
39 .domain-heading-text {
40 display: flex;
41 }
42
43 .group-container {
44 @apply(--shadow-elevation-2dp);
45 background: #fff;
46 border-radius: 2px;
47 margin-bottom: var(--card-padding-between);
48 max-width: var(--card-max-width);
49 min-width: var(--card-min-width);
50 width: 100%;
51 }
52
53 .card-title {
54 margin-bottom: var(--card-first-last-item-padding);
55 }
56
57 .domain-heading-text {
58 flex: 1 1 0;
59 }
60
61 .dropdown-indicator {
62 max-width: 16px;
63 }
64
65 history-item {
66 padding-left: 20px;
67 }
68 </style>
69 <div id="no-results" class="centered-message"
70 hidden$="[[hasResults(groupedHistoryData_.length)]]">
71 [[noResultsMessage(searchedTerm, querying)]]
72 </div>
73 <div id="main-container"
74 hidden$="[[!hasResults(groupedHistoryData_.length)]]">
75 <template is="dom-repeat" items="[[groupedHistoryData_]]" as="group"
76 initial-count="1" index-as="groupIndex">
77 <div class="group-container">
78 <div class="card-title">
79 [[group.title]]
80 </div>
81
82 <template is="dom-repeat" items="[[group.domains]]" as="domain"
83 initial-count="10" index-as="domainIndex">
84 <div>
85 <div class="domain-heading" on-tap="toggleDomainExpanded_">
86 <div class="domain-heading-text">
87 <div class="website-icon"
88 style="[[getWebsiteIconStyle_(domain)]]"></div>
89 <span>[[domain.domain]]</span>
90 <span class="domain-count">[[domain.visits.length]]</span>
91 </div>
92 <iron-icon icon="[[getDropdownIcon_(domain.expanded)]]"
93 class="dropdown-indicator"></iron-icon>
94 </div>
95 <iron-collapse opened="{{domain.expanded}}" id="collapse">
96 <template is="dom-if" if="[[domain.rendered]]">
97 <template is="dom-repeat" items="[[domain.visits]]"
98 as="item" initial-count="5" index-as="itemIndex">
99 <history-item item="[[item]]"
100 selected="{{item.selected}}"
101 has-time-gap="[[needsTimeGap_(
102 groupIndex, domainIndex, itemIndex)]]"
103 search-term="[[searchedTerm]]"
104 number-of-items="[[historyData.length]]"
105 path="[[pathForItem_(
106 groupIndex, domainIndex, itemIndex)]]"
107 embedded>
108 </history-item>
109 </template>
110 </template>
111 </iron-collapse>
112 </div>
113 </template>
114 </div>
115 </template>
116 </div>
117 </template>
118 <script src="chrome://history/grouped_list.js"></script>
119 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/externs.js ('k') | chrome/browser/resources/md_history/grouped_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698