| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 this.fetchUsbDevices_(); | 55 this.fetchUsbDevices_(); |
| 56 }, | 56 }, |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 * A handler to show the action menu next to the clicked menu button. | 59 * A handler to show the action menu next to the clicked menu button. |
| 60 * @param {!{model: !{item: UsbDeviceEntry}}} event | 60 * @param {!{model: !{item: UsbDeviceEntry}}} event |
| 61 * @private | 61 * @private |
| 62 */ | 62 */ |
| 63 showMenu_: function(event) { | 63 showMenu_: function(event) { |
| 64 this.actionMenuModel_ = event.model.item; | 64 this.actionMenuModel_ = event.model.item; |
| 65 /** @type {!CrActionMenuElement} */ ( | 65 /** @type {!CrActionMenuElement} */ (this.$$('dialog[is=cr-action-menu]')) |
| 66 this.$$('dialog[is=cr-action-menu]')).showAt( | 66 .showAt( |
| 67 /** @type {!Element} */ ( | 67 /** @type {!Element} */ ( |
| 68 Polymer.dom(/** @type {!Event} */ (event)).localTarget)); | 68 Polymer.dom(/** @type {!Event} */ (event)).localTarget)); |
| 69 } | 69 } |
| 70 }); | 70 }); |
| OLD | NEW |