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

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

Issue 2239623002: [MD History] Add shift-selection to the history lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@reshadow
Patch Set: Set => Array 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.
tsergeant 2016/08/15 04:49:50 This is still relevant, right? There are still cas
calamity 2016/08/15 07:18:40 Hmm. Ok, restored. I'm not convinced there's a nic
11 count: { 9 count: {
12 type: Number, 10 type: Number,
13 value: 0, 11 value: 0,
14 observer: 'changeToolbarView_' 12 observer: 'changeToolbarView_'
15 }, 13 },
16 14
17 // True if 1 or more history items are selected. When this value changes 15 // True if 1 or more history items are selected. When this value changes
18 // the background colour changes. 16 // the background colour changes.
19 itemsSelected_: { 17 itemsSelected_: {
20 type: Boolean, 18 type: Boolean,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // TODO(calamity): Fix the format of these dates. 128 // TODO(calamity): Fix the format of these dates.
131 return loadTimeData.getStringF( 129 return loadTimeData.getStringF(
132 'historyInterval', queryStartTime, queryEndTime); 130 'historyInterval', queryStartTime, queryEndTime);
133 }, 131 },
134 132
135 /** @private */ 133 /** @private */
136 hasDrawerChanged_: function() { 134 hasDrawerChanged_: function() {
137 this.updateStyles(); 135 this.updateStyles();
138 }, 136 },
139 }); 137 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698