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

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

Issue 2207323002: [MD History] Factor out a common HistoryListBehavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nits Created 4 years, 4 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 Polymer({ 5 Polymer({
6 is: 'history-toolbar', 6 is: 'history-toolbar',
7 properties: { 7 properties: {
8 // Number of history items currently selected. 8 // Number of history items currently selected.
9 // TODO(calamity): bind this to
10 // listContainer.selectedItem.selectedPaths.length.
9 count: { 11 count: {
10 type: Number, 12 type: Number,
11 value: 0, 13 value: 0,
12 observer: 'changeToolbarView_' 14 observer: 'changeToolbarView_'
13 }, 15 },
14 16
15 // True if 1 or more history items are selected. When this value changes 17 // True if 1 or more history items are selected. When this value changes
16 // the background colour changes. 18 // the background colour changes.
17 itemsSelected_: { 19 itemsSelected_: {
18 type: Boolean, 20 type: Boolean,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // TODO(calamity): Fix the format of these dates. 130 // TODO(calamity): Fix the format of these dates.
129 return loadTimeData.getStringF( 131 return loadTimeData.getStringF(
130 'historyInterval', queryStartTime, queryEndTime); 132 'historyInterval', queryStartTime, queryEndTime);
131 }, 133 },
132 134
133 /** @private */ 135 /** @private */
134 hasDrawerChanged_: function() { 136 hasDrawerChanged_: function() {
135 this.updateStyles(); 137 this.updateStyles();
136 }, 138 },
137 }); 139 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/history_list_behavior.js ('k') | chrome/browser/resources/md_history/list_container.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698