| OLD | NEW |
| 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: String, | 10 device: String, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 getCollapseTitle_: function(opened) { | 142 getCollapseTitle_: function(opened) { |
| 143 return opened ? loadTimeData.getString('collapseSessionButton') : | 143 return opened ? loadTimeData.getString('collapseSessionButton') : |
| 144 loadTimeData.getString('expandSessionButton'); | 144 loadTimeData.getString('expandSessionButton'); |
| 145 }, | 145 }, |
| 146 | 146 |
| 147 /** | 147 /** |
| 148 * @param {CustomEvent} e | 148 * @param {CustomEvent} e |
| 149 * @private | 149 * @private |
| 150 */ | 150 */ |
| 151 onMenuButtonTap_: function(e) { | 151 onMenuButtonTap_: function(e) { |
| 152 this.fire('toggle-menu', { | 152 this.fire('open-menu', { |
| 153 target: Polymer.dom(e).localTarget, | 153 target: Polymer.dom(e).localTarget, |
| 154 tag: this.sessionTag | 154 tag: this.sessionTag |
| 155 }); | 155 }); |
| 156 e.stopPropagation(); // Prevent iron-collapse. | 156 e.stopPropagation(); // Prevent iron-collapse. |
| 157 }, | 157 }, |
| 158 | 158 |
| 159 onLinkRightClick_: function() { | 159 onLinkRightClick_: function() { |
| 160 md_history.BrowserService.getInstance().recordHistogram( | 160 md_history.BrowserService.getInstance().recordHistogram( |
| 161 SYNCED_TABS_HISTOGRAM_NAME, SyncedTabsHistogram.LINK_RIGHT_CLICKED, | 161 SYNCED_TABS_HISTOGRAM_NAME, SyncedTabsHistogram.LINK_RIGHT_CLICKED, |
| 162 SyncedTabsHistogram.LIMIT); | 162 SyncedTabsHistogram.LIMIT); |
| 163 }, | 163 }, |
| 164 }); | 164 }); |
| OLD | NEW |