| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 //////////////////////////////////////////////////////////////////////////////// |
| 6 // ContentSettingsRadio class: |
| 7 |
| 8 // Define a constructor that uses an input element as its underlying element. |
| 9 var ContentSettingsRadio = cr.ui.define('input'); |
| 10 |
| 11 ContentSettingsRadio.prototype = { |
| 12 __proto__: HTMLInputElement.prototype, |
| 13 |
| 14 /** |
| 15 * Initialization function for the cr.ui framework. |
| 16 */ |
| 17 decorate: function() { |
| 18 this.type = 'radio'; |
| 19 var self = this; |
| 20 |
| 21 this.addEventListener('change', |
| 22 function(e) { |
| 23 chrome.send('setContentFilter', [this.name, this.value]); |
| 24 }); |
| 25 }, |
| 26 }; |
| OLD | NEW |