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

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

Issue 2583353003: MD History: Replace last usage of cr-shared-menu with cr-action-menu. (Closed)
Patch Set: Fix more Created 4 years 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: String, 10 device: String,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698