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

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

Issue 2630583002: Add setting to isolate zoom changes by default. (Closed)
Patch Set: Use code review comments for questions instead of TODOs. Created 3 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.exportPath('options'); 5 cr.exportPath('options');
6 6
7 /** 7 /**
8 * @typedef {{appId: string, 8 * @typedef {{appId: string,
9 * appName: (string|undefined), 9 * appName: (string|undefined),
10 * embeddingOrigin: (string|undefined), 10 * embeddingOrigin: (string|undefined),
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 * Enables/disables the protected content exceptions button. 254 * Enables/disables the protected content exceptions button.
255 * @param {boolean} enable Whether to enable the button. 255 * @param {boolean} enable Whether to enable the button.
256 */ 256 */
257 ContentSettings.enableProtectedContentExceptions = function(enable) { 257 ContentSettings.enableProtectedContentExceptions = function(enable) {
258 var exceptionsButton = $('protected-content-exceptions'); 258 var exceptionsButton = $('protected-content-exceptions');
259 if (exceptionsButton) 259 if (exceptionsButton)
260 exceptionsButton.disabled = !enable; 260 exceptionsButton.disabled = !enable;
261 }; 261 };
262 262
263 /** 263 /**
264 * Shows/hides the explanation of per-tab zoom scope under the list of any
265 * existing zoom level exceptions.
266 * @param {boolean} show Whether to show the explanation.
267 */
268 ContentSettings.showZoomScopeExplanation = function(show) {
269 $('zoom-levels-ignored-explanation').hidden = !show;
270 };
271
272 /**
264 * Set the default microphone device based on the popup selection. 273 * Set the default microphone device based on the popup selection.
265 * @private 274 * @private
266 */ 275 */
267 ContentSettings.setDefaultMicrophone_ = function() { 276 ContentSettings.setDefaultMicrophone_ = function() {
268 var deviceSelect = $('media-select-mic'); 277 var deviceSelect = $('media-select-mic');
269 chrome.send('setDefaultCaptureDevice', ['mic', deviceSelect.value]); 278 chrome.send('setDefaultCaptureDevice', ['mic', deviceSelect.value]);
270 }; 279 };
271 280
272 /** 281 /**
273 * Set the default camera device based on the popup selection. 282 * Set the default camera device based on the popup selection.
274 * @private 283 * @private
275 */ 284 */
276 ContentSettings.setDefaultCamera_ = function() { 285 ContentSettings.setDefaultCamera_ = function() {
277 var deviceSelect = $('media-select-camera'); 286 var deviceSelect = $('media-select-camera');
278 chrome.send('setDefaultCaptureDevice', ['camera', deviceSelect.value]); 287 chrome.send('setDefaultCaptureDevice', ['camera', deviceSelect.value]);
279 }; 288 };
280 289
281 // Export 290 // Export
282 return { 291 return {
283 ContentSettings: ContentSettings 292 ContentSettings: ContentSettings
284 }; 293 };
285 294
286 }); 295 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698