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

Side by Side Diff: chrome/browser/resources/options/content_settings_ui.js

Issue 7003007: Apply content-security-policy to the HTML options page. This is a (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
(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 cr.define('options', function() {
6
7 //////////////////////////////////////////////////////////////////////////////
8 // ContentSettingsRadio class:
9
10 // Define a constructor that uses an input element as its underlying element.
11 var ContentSettingsRadio = cr.ui.define('input');
12
13 ContentSettingsRadio.prototype = {
14 __proto__: HTMLInputElement.prototype,
15
16 /**
17 * Initialization function for the cr.ui framework.
18 */
19 decorate: function() {
20 this.type = 'radio';
21 var self = this;
22
23 this.addEventListener('change',
24 function(e) {
25 chrome.send('setContentFilter', [this.name, this.value]);
26 });
27 },
28 };
29
30 // Export
31 return {
32 ContentSettingsRadio: ContentSettingsRadio
33 };
34
35 });
36
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698