| 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'usb-devices' is the polymer element for showing the USB Devices category | 7 * 'usb-devices' is the polymer element for showing the USB Devices category |
| 8 * under Site Settings. | 8 * under Site Settings. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 this.fetchUsbDevices_(); | 64 this.fetchUsbDevices_(); |
| 65 }, | 65 }, |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 * A handler to show the action menu next to the clicked menu button. | 68 * A handler to show the action menu next to the clicked menu button. |
| 69 * @param {!{model: !{item: UsbDeviceEntry}}} event | 69 * @param {!{model: !{item: UsbDeviceEntry}}} event |
| 70 * @private | 70 * @private |
| 71 */ | 71 */ |
| 72 showMenu_: function(event) { | 72 showMenu_: function(event) { |
| 73 this.actionMenuModel_ = event.model.item; | 73 this.actionMenuModel_ = event.model.item; |
| 74 /** @type {!CrActionMenuElement} */ ( | 74 /** @type {!CrActionMenuElement} */ (this.$$('dialog[is=cr-action-menu]')) |
| 75 this.$$('dialog[is=cr-action-menu]')).showAt( | 75 .showAt( |
| 76 /** @type {!Element} */ ( | 76 /** @type {!Element} */ ( |
| 77 Polymer.dom(/** @type {!Event} */ (event)).localTarget)); | 77 Polymer.dom(/** @type {!Event} */ (event)).localTarget)); |
| 78 } | 78 } |
| 79 }); | 79 }); |
| OLD | NEW |