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

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

Issue 2590093002: MD History: Move queryState to be managed by history-router (Closed)
Patch Set: Rebase Created 3 years, 11 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
« no previous file with comments | « chrome/browser/resources/md_history/query_manager.js ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/router.js
diff --git a/chrome/browser/resources/md_history/router.js b/chrome/browser/resources/md_history/router.js
index 6b3cdd81087fadf44cab27556c91f9fc927e7f2b..36eacaa8a844154b95cbd53143fa9a13ae66a692 100644
--- a/chrome/browser/resources/md_history/router.js
+++ b/chrome/browser/resources/md_history/router.js
@@ -12,9 +12,30 @@ Polymer({
notify: true,
},
+ /** @type {QueryState} */
queryState: {
type: Object,
notify: true,
+ value: function() {
+ // TODO(tsergeant: Move this initialization into query-manager.
+ return {
+ // Whether the most recent query was incremental.
+ incremental: false,
+ // A query is initiated by page load.
+ querying: true,
+ queryingDisabled: false,
+ _range: HistoryRange.ALL_TIME,
+ searchTerm: '',
+ groupedOffset: 0,
+
+ set range(val) {
+ this._range = Number(val);
+ },
+ get range() {
+ return this._range;
+ },
+ };
+ },
},
path_: {
« no previous file with comments | « chrome/browser/resources/md_history/query_manager.js ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698