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 * 'protocol-handlers' is the polymer element for showing the | 7 * 'protocol-handlers' is the polymer element for showing the |
8 * protocol handlers category under Site Settings. | 8 * protocol handlers category under Site Settings. |
9 */ | 9 */ |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 * The targetted object for menu operations. | 54 * The targetted object for menu operations. |
55 * @private {?Object} | 55 * @private {?Object} |
56 */ | 56 */ |
57 actionMenuModel_: Object, | 57 actionMenuModel_: Object, |
58 | 58 |
59 /* Labels for the toggle on/off positions. */ | 59 /* Labels for the toggle on/off positions. */ |
60 toggleOffLabel: String, | 60 toggleOffLabel: String, |
61 toggleOnLabel: String, | 61 toggleOnLabel: String, |
62 }, | 62 }, |
63 | 63 |
| 64 /** @override */ |
64 ready: function() { | 65 ready: function() { |
65 this.addWebUIListener('setHandlersEnabled', | 66 this.addWebUIListener('setHandlersEnabled', |
66 this.setHandlersEnabled_.bind(this)); | 67 this.setHandlersEnabled_.bind(this)); |
67 this.addWebUIListener('setProtocolHandlers', | 68 this.addWebUIListener('setProtocolHandlers', |
68 this.setProtocolHandlers_.bind(this)); | 69 this.setProtocolHandlers_.bind(this)); |
69 this.addWebUIListener('setIgnoredProtocolHandlers', | 70 this.addWebUIListener('setIgnoredProtocolHandlers', |
70 this.setIgnoredProtocolHandlers_.bind(this)); | 71 this.setIgnoredProtocolHandlers_.bind(this)); |
71 this.browserProxy.observeProtocolHandlers(); | 72 this.browserProxy.observeProtocolHandlers(); |
72 }, | 73 }, |
73 | 74 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 * @private | 170 * @private |
170 */ | 171 */ |
171 showMenu_: function(event) { | 172 showMenu_: function(event) { |
172 this.actionMenuModel_ = event.model; | 173 this.actionMenuModel_ = event.model; |
173 /** @type {!CrActionMenuElement} */ ( | 174 /** @type {!CrActionMenuElement} */ ( |
174 this.$$('dialog[is=cr-action-menu]')).showAt( | 175 this.$$('dialog[is=cr-action-menu]')).showAt( |
175 /** @type {!Element} */ ( | 176 /** @type {!Element} */ ( |
176 Polymer.dom(/** @type {!Event} */ (event)).localTarget)); | 177 Polymer.dom(/** @type {!Event} */ (event)).localTarget)); |
177 } | 178 } |
178 }); | 179 }); |
OLD | NEW |