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

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

Issue 2046303002: [MD History] Add history-searched-label to embolden the synced device search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@disable_grouped
Patch Set: fix tests 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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-synced-device-card', 6 is: 'history-synced-device-card',
7 7
8 properties: { 8 properties: {
9 // Name of the synced device. 9 // Name of the synced device.
10 device: {type: String, value: ''}, 10 device: {type: String, value: ''},
(...skipping 14 matching lines...) Expand all
25 /** 25 /**
26 * The indexes where a window separator should be shown. The use of a 26 * The indexes where a window separator should be shown. The use of a
27 * separate array here is necessary for window separators to appear 27 * separate array here is necessary for window separators to appear
28 * correctly in search. See http://crrev.com/2022003002 for more details. 28 * correctly in search. See http://crrev.com/2022003002 for more details.
29 * @type {!Array<number>} 29 * @type {!Array<number>}
30 */ 30 */
31 separatorIndexes: Array, 31 separatorIndexes: Array,
32 32
33 // Whether the card is open. 33 // Whether the card is open.
34 cardOpen_: {type: Boolean, value: true}, 34 cardOpen_: {type: Boolean, value: true},
35
36 searchedTerm: String,
35 }, 37 },
36 38
37 /** 39 /**
38 * Opens all the tabs displayed on the device in separate tabs. 40 * Opens all the tabs displayed on the device in separate tabs.
39 * @private 41 * @private
40 */ 42 */
41 openAllTabs_: function() { 43 openAllTabs_: function() {
42 // TODO(calamity): add a warning if an excessive number of tabs will open. 44 // TODO(calamity): add a warning if an excessive number of tabs will open.
43 for (var i = 0; i < this.tabs.length; i++) 45 for (var i = 0; i < this.tabs.length; i++)
44 window.open(this.tabs[i].url, '_blank'); 46 window.open(this.tabs[i].url, '_blank');
(...skipping 22 matching lines...) Expand all
67 cr.icon.getFaviconImageSet(this.tabs[i].url); 69 cr.icon.getFaviconImageSet(this.tabs[i].url);
68 } 70 }
69 }); 71 });
70 }, 72 },
71 73
72 /** @private */ 74 /** @private */
73 isWindowSeparatorIndex_: function(index, separatorIndexes) { 75 isWindowSeparatorIndex_: function(index, separatorIndexes) {
74 return this.separatorIndexes.indexOf(index) != -1; 76 return this.separatorIndexes.indexOf(index) != -1;
75 } 77 }
76 }); 78 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698