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

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

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/history_toolbar.js
diff --git a/chrome/browser/resources/md_history/history_toolbar.js b/chrome/browser/resources/md_history/history_toolbar.js
index 400ad21e3b0f6c0ffe4366c386a373feea039476..e28bbaf05331f0d58c1ff972e51f956f5daa1124 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -41,17 +41,6 @@ Polymer({
reflectToAttribute: true,
},
- // The period to search over. Matches BrowsingHistoryHandler::Range.
- groupedRange: {
- type: Number,
- reflectToAttribute: true,
- },
-
- showGroupedControls: {
- type: Boolean,
- reflectToAttribute: true,
- },
-
// Show an (i) button on the right of the toolbar to display a notice about
// synced history.
showSyncNotice: {
@@ -67,11 +56,6 @@ Polymer({
hasMoreResults: Boolean,
- groupedOffset: Number,
-
- // Whether domain-grouped history is enabled.
- isGroupedMode: Boolean,
-
querying: Boolean,
queryInfo: Object,
@@ -206,58 +190,4 @@ Polymer({
numberOfItemsSelected_: function(count) {
return count > 0 ? loadTimeData.getStringF('itemsSelected', count) : '';
},
-
- /** @private */
- getHistoryInterval_: function() {
- var info = this.queryInfo;
- if (!info)
- return;
-
- if (this.groupedRange == HistoryRange.WEEK)
- return info.queryInterval;
-
- if (this.groupedRange == HistoryRange.MONTH)
- return info.queryStartMonth;
- },
-
- /**
- * @param {Event} e
- * @private
- */
- onTabSelected_: function(e) {
- this.fire(
- 'change-query', {range: Number(e.detail.item.getAttribute('value'))});
- },
-
- /**
- * @param {number} newOffset
- * @private
- */
- changeOffset_: function(newOffset) {
- if (!this.querying)
- this.fire('change-query', {offset: newOffset});
- },
-
- /** @private */
- onTodayTap_: function() {
- this.changeOffset_(0);
- },
-
- /** @private */
- onPrevTap_: function() {
- this.changeOffset_(this.groupedOffset + 1);
- },
-
- /** @private */
- onNextTap_: function() {
- this.changeOffset_(this.groupedOffset - 1);
- },
-
- /**
- * @private
- * @return {boolean}
- */
- isToday_: function() {
- return this.groupedOffset == 0;
- },
});
« no previous file with comments | « chrome/browser/resources/md_history/history_toolbar.html ('k') | chrome/browser/resources/md_history/lazy_load.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698