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