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

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: 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: { 10 device: {
(...skipping 23 matching lines...) Expand all
34 * correctly in search. See http://crrev.com/2022003002 for more details. 34 * correctly in search. See http://crrev.com/2022003002 for more details.
35 * @type {!Array<number>} 35 * @type {!Array<number>}
36 */ 36 */
37 separatorIndexes: Array, 37 separatorIndexes: Array,
38 38
39 // Whether the card is open. 39 // Whether the card is open.
40 cardOpen_: { 40 cardOpen_: {
41 type: Boolean, 41 type: Boolean,
42 value: true 42 value: true
43 }, 43 },
44
45 searchedTerm: String,
44 }, 46 },
45 47
46 /** 48 /**
47 * Opens all the tabs displayed on the device in separate tabs. 49 * Opens all the tabs displayed on the device in separate tabs.
48 * @private 50 * @private
49 */ 51 */
50 openAllTabs_: function() { 52 openAllTabs_: function() {
51 // TODO(calamity): add a warning if an excessive number of tabs will open. 53 // TODO(calamity): add a warning if an excessive number of tabs will open.
52 for (var i = 0; i < this.tabs.length; i++) 54 for (var i = 0; i < this.tabs.length; i++)
53 window.open(this.tabs[i].url, '_blank'); 55 window.open(this.tabs[i].url, '_blank');
(...skipping 21 matching lines...) Expand all
75 icons[i].style.backgroundImage = 77 icons[i].style.backgroundImage =
76 cr.icon.getFaviconImageSet(this.tabs[i].url); 78 cr.icon.getFaviconImageSet(this.tabs[i].url);
77 } 79 }
78 }); 80 });
79 }, 81 },
80 82
81 isWindowSeparatorIndex_: function(index, separatorIndexes) { 83 isWindowSeparatorIndex_: function(index, separatorIndexes) {
82 return this.separatorIndexes.indexOf(index) != -1; 84 return this.separatorIndexes.indexOf(index) != -1;
83 } 85 }
84 }); 86 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698