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

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

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review Created 3 years, 6 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698