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

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

Issue 11018013: add a new, blank version of content settings so that a new UI may be prototyped (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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_settings2.js
diff --git a/chrome/browser/resources/options/content_settings2.js b/chrome/browser/resources/options/content_settings2.js
new file mode 100644
index 0000000000000000000000000000000000000000..7c6d95137e3782fa156f38469509d5ee8da2eb9c
--- /dev/null
+++ b/chrome/browser/resources/options/content_settings2.js
@@ -0,0 +1,88 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+if (loadTimeData.getBoolean('newContentSettings')) {
+
+cr.define('options', function() {
+ /** @const */ var OptionsPage = options.OptionsPage;
+
+ //////////////////////////////////////////////////////////////////////////////
+ // ContentSettings class:
+
+ /**
+ * Encapsulated handling of content settings page.
+ * @constructor
+ */
+ function ContentSettings() {
+ this.activeNavTab = null;
+ OptionsPage.call(this, 'content',
+ loadTimeData.getString('contentSettingsPageTabTitle'),
+ 'content-settings-page2');
+ }
+
+ cr.addSingletonGetter(ContentSettings);
+
+ ContentSettings.prototype = {
+ __proto__: OptionsPage.prototype,
+
+ initializePage: function() {
+ OptionsPage.prototype.initializePage.call(this);
+
+ $('content-settings-overlay-confirm2').onclick =
+ OptionsPage.closeOverlay.bind(OptionsPage);
+ },
+ };
+
+ ContentSettings.updateHandlersEnabledRadios = function(enabled) {
+ // Not implemented.
+ };
+
+ /**
+ * Sets the values for all the content settings radios.
+ * @param {Object} dict A mapping from radio groups to the checked value for
+ * that group.
+ */
+ ContentSettings.setContentFilterSettingsValue = function(dict) {
+ // Not implemented.
+ };
+
+ /**
+ * Initializes an exceptions list.
+ * @param {string} type The content type that we are setting exceptions for.
+ * @param {Array} list An array of pairs, where the first element of each pair
+ * is the filter string, and the second is the setting (allow/block).
+ */
+ ContentSettings.setExceptions = function(type, list) {
+ // Not implemented.
+ };
+
+ ContentSettings.setHandlers = function(list) {
+ // Not implemented.
+ };
+
+ ContentSettings.setIgnoredHandlers = function(list) {
+ // Not implemented.
+ };
+
+ ContentSettings.setOTRExceptions = function(type, list) {
+ // Not implemented.
+ };
+
+ /**
+ * Enables the Pepper Flash camera and microphone settings.
+ * Please note that whether the settings are actually showed or not is also
+ * affected by the style class pepper-flash-settings.
+ */
+ ContentSettings.enablePepperFlashCameraMicSettings = function() {
+ // Not implemented.
+ }
+
+ // Export
+ return {
+ ContentSettings: ContentSettings
+ };
+
+});
+
+}
« no previous file with comments | « chrome/browser/resources/options/content_settings2.html ('k') | chrome/browser/resources/options/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698