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

Side by Side Diff: chrome/browser/resources/settings/site_settings/usb_devices.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 months 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 /** 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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698