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

Unified Diff: chrome/browser/resources/options2/content_settings.js

Issue 10479015: Pepper Flash settings integration - camera and microphone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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/options2/content_settings.js
diff --git a/chrome/browser/resources/options2/content_settings.js b/chrome/browser/resources/options2/content_settings.js
index af4af7a15ef4b5795c4edae00030cb51cce7fbd2..ccabdafa2608228b66410a6f6887c584e68d00bc 100644
--- a/chrome/browser/resources/options2/content_settings.js
+++ b/chrome/browser/resources/options2/content_settings.js
@@ -86,8 +86,6 @@ cr.define('options', function() {
OptionsPage.navigateToPage('cookies');
};
- // Remove from DOM instead of hiding so :last-of-type applies the style
- // correctly.
var intentsSection = $('intents-section');
if (!loadTimeData.getBoolean('enable_web_intents') && intentsSection)
intentsSection.parentNode.removeChild(intentsSection);
@@ -99,6 +97,9 @@ cr.define('options', function() {
$('content-settings-overlay-confirm').onclick =
OptionsPage.closeOverlay.bind(OptionsPage);
+
+ $('pepper-flash-cameramic-section').style.display = 'none';
+ $('pepper-flash-cameramic-exceptions-div').style.display = 'none';
},
/**
@@ -227,6 +228,16 @@ cr.define('options', function() {
exceptionsList.patternValidityCheckComplete(pattern, valid);
};
+ /**
+ * 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() {
+ $('pepper-flash-cameramic-section').style.display = '';
+ $('pepper-flash-cameramic-exceptions-div').style.display = '';
+ }
+
// Export
return {
ContentSettings: ContentSettings

Powered by Google App Engine
This is Rietveld 408576698