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

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

Issue 2032313002: MD WebUI: Add loading spinner to cr-toolbar, hook into MD History toolbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename function and property Created 4 years, 6 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 25 matching lines...) Expand all
36 reflectToAttribute: true 36 reflectToAttribute: true
37 }, 37 },
38 38
39 // The most recent term entered in the search field. Updated incrementally 39 // The most recent term entered in the search field. Updated incrementally
40 // as the user types. 40 // as the user types.
41 searchTerm: { 41 searchTerm: {
42 type: String, 42 type: String,
43 notify: true, 43 notify: true,
44 }, 44 },
45 45
46 // True if waiting on the search backend. 46 // True if the backend is processing and a spinner should be shown in the
47 searching: { 47 // toolbar.
48 spinnerActive: {
48 type: Boolean, 49 type: Boolean,
49 value: false 50 value: false
50 }, 51 },
51 52
52 // Whether domain-grouped history is enabled. 53 // Whether domain-grouped history is enabled.
53 isGroupedMode: { 54 isGroupedMode: {
54 type: Boolean, 55 type: Boolean,
55 reflectToAttribute: true, 56 reflectToAttribute: true,
56 }, 57 },
57 58
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 numberOfItemsSelected_: function(count) { 129 numberOfItemsSelected_: function(count) {
129 return count > 0 ? loadTimeData.getStringF('itemsSelected', count) : ''; 130 return count > 0 ? loadTimeData.getStringF('itemsSelected', count) : '';
130 }, 131 },
131 132
132 getHistoryInterval_: function(queryStartTime, queryEndTime) { 133 getHistoryInterval_: function(queryStartTime, queryEndTime) {
133 // TODO(calamity): Fix the format of these dates. 134 // TODO(calamity): Fix the format of these dates.
134 return loadTimeData.getStringF( 135 return loadTimeData.getStringF(
135 'historyInterval', queryStartTime, queryEndTime); 136 'historyInterval', queryStartTime, queryEndTime);
136 } 137 }
137 }); 138 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698