OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |