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

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

Issue 2203683002: MD History: Convert synced device collapse icon to a button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 for (var i = 0; i < this.tabs.length; i++) { 80 for (var i = 0; i < this.tabs.length; i++) {
81 icons[i].style.backgroundImage = 81 icons[i].style.backgroundImage =
82 cr.icon.getFaviconImageSet(this.tabs[i].url); 82 cr.icon.getFaviconImageSet(this.tabs[i].url);
83 } 83 }
84 }); 84 });
85 }, 85 },
86 86
87 /** @private */ 87 /** @private */
88 isWindowSeparatorIndex_: function(index, separatorIndexes) { 88 isWindowSeparatorIndex_: function(index, separatorIndexes) {
89 return this.separatorIndexes.indexOf(index) != -1; 89 return this.separatorIndexes.indexOf(index) != -1;
90 } 90 },
91
92 /**
93 * @param {boolean} cardOpen
94 * @return {string}
95 */
96 getCollapseTitle_: function(cardOpen) {
97 return cardOpen ? loadTimeData.getString('collapseSessionButton') :
98 loadTimeData.getString('expandSessionButton');
99 },
91 }); 100 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/synced_device_card.html ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698