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

Unified Diff: chrome/browser/resources/options/content_settings_ui.js

Issue 7033018: Handler settings page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove in_unit_test_ 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/content_settings_ui.js
diff --git a/chrome/browser/resources/options/content_settings_ui.js b/chrome/browser/resources/options/content_settings_ui.js
index 45ba7888a56a524c549e06ab00c4347cc66b120f..fd61a0993c948dee787d02a219b356f9b3686219 100644
--- a/chrome/browser/resources/options/content_settings_ui.js
+++ b/chrome/browser/resources/options/content_settings_ui.js
@@ -27,9 +27,33 @@ cr.define('options', function() {
},
};
+ //////////////////////////////////////////////////////////////////////////////
+ // HandlersEnabledRadio class:
+
+ // Define a constructor that uses an input element as its underlying element.
+ var HandlersEnabledRadio = cr.ui.define('input');
+
+ HandlersEnabledRadio.prototype = {
+ __proto__: HTMLInputElement.prototype,
+
+ /**
+ * Initialization function for the cr.ui framework.
+ */
+ decorate: function() {
+ this.type = 'radio';
+ var self = this;
+
+ this.addEventListener('change',
+ function(e) {
+ chrome.send('setHandlersEnabled', [this.value == 'allow']);
+ });
+ },
+ };
+
// Export
return {
- ContentSettingsRadio: ContentSettingsRadio
+ ContentSettingsRadio: ContentSettingsRadio,
+ HandlersEnabledRadio: HandlersEnabledRadio
};
});
« no previous file with comments | « chrome/browser/resources/options/content_settings.js ('k') | chrome/browser/resources/options/handler_options.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698