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

Side by Side Diff: chrome/browser/resources/md_history/history_toolbar.js

Issue 1993613002: [MD History] Implement grouped history UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@privatize
Patch Set: address comments Created 4 years, 7 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @implements {SearchFieldDelegate} 7 * @implements {SearchFieldDelegate}
8 * @param {!HistoryToolbarElement} toolbar This history-toolbar. 8 * @param {!HistoryToolbarElement} toolbar This history-toolbar.
9 */ 9 */
10 function ToolbarSearchFieldDelegate(toolbar) { 10 function ToolbarSearchFieldDelegate(toolbar) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Whether domain-grouped history is enabled. 52 // Whether domain-grouped history is enabled.
53 isGroupedMode: { 53 isGroupedMode: {
54 type: Boolean, 54 type: Boolean,
55 reflectToAttribute: true, 55 reflectToAttribute: true,
56 }, 56 },
57 57
58 // The period to search over. Matches BrowsingHistoryHandler::Range. 58 // The period to search over. Matches BrowsingHistoryHandler::Range.
59 groupedRange: { 59 groupedRange: {
60 type: Number, 60 type: Number,
61 value: 0, 61 value: 0,
62 reflectToAttribute: true 62 reflectToAttribute: true,
63 notify: true
63 }, 64 },
64 65
65 // The start time of the query range. 66 // The start time of the query range.
66 queryStartTime: String, 67 queryStartTime: String,
67 68
68 // The end time of the query range. 69 // The end time of the query range.
69 queryEndTime: String, 70 queryEndTime: String,
70 }, 71 },
71 72
72 /** 73 /**
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 numberOfItemsSelected_: function(count) { 128 numberOfItemsSelected_: function(count) {
128 return count > 0 ? loadTimeData.getStringF('itemsSelected', count) : ''; 129 return count > 0 ? loadTimeData.getStringF('itemsSelected', count) : '';
129 }, 130 },
130 131
131 getHistoryInterval_: function(queryStartTime, queryEndTime) { 132 getHistoryInterval_: function(queryStartTime, queryEndTime) {
132 // TODO(calamity): Fix the format of these dates. 133 // TODO(calamity): Fix the format of these dates.
133 return loadTimeData.getStringF( 134 return loadTimeData.getStringF(
134 'historyInterval', queryStartTime, queryEndTime); 135 'historyInterval', queryStartTime, queryEndTime);
135 } 136 }
136 }); 137 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/history_toolbar.html ('k') | chrome/browser/resources/md_history/shared_style.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698