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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 * Shows/hides the link to the Pepper Flash camera and microphone | 286 * Shows/hides the link to the Pepper Flash camera and microphone |
287 * site-specific settings. | 287 * site-specific settings. |
288 * Please note that whether the link is actually showed or not is also | 288 * Please note that whether the link is actually showed or not is also |
289 * affected by the style class pepper-flash-settings. | 289 * affected by the style class pepper-flash-settings. |
290 */ | 290 */ |
291 ContentSettings.showMediaPepperFlashExceptionsLink = function(show) { | 291 ContentSettings.showMediaPepperFlashExceptionsLink = function(show) { |
292 $('media-pepper-flash-exceptions').hidden = !show; | 292 $('media-pepper-flash-exceptions').hidden = !show; |
293 }; | 293 }; |
294 | 294 |
295 /** | 295 /** |
296 * Shows/hides the whole Web MIDI settings. | |
297 * @param {boolean} show Wether to show the whole Web MIDI settings. | |
298 */ | |
299 ContentSettings.showExperimentalWebMIDISettings = function(show) { | |
300 $('experimental-web-midi-settings').hidden = !show; | |
301 }; | |
302 | |
303 /** | |
304 * Updates the microphone/camera devices menu with the given entries. | 296 * Updates the microphone/camera devices menu with the given entries. |
305 * @param {string} type The device type. | 297 * @param {string} type The device type. |
306 * @param {Array} devices List of available devices. | 298 * @param {Array} devices List of available devices. |
307 * @param {string} defaultdevice The unique id of the current default device. | 299 * @param {string} defaultdevice The unique id of the current default device. |
308 */ | 300 */ |
309 ContentSettings.updateDevicesMenu = function(type, devices, defaultdevice) { | 301 ContentSettings.updateDevicesMenu = function(type, devices, defaultdevice) { |
310 var deviceSelect = ''; | 302 var deviceSelect = ''; |
311 if (type == 'mic') { | 303 if (type == 'mic') { |
312 deviceSelect = $('media-select-mic'); | 304 deviceSelect = $('media-select-mic'); |
313 } else if (type == 'camera') { | 305 } else if (type == 'camera') { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 var deviceSelect = $('media-select-camera'); | 352 var deviceSelect = $('media-select-camera'); |
361 chrome.send('setDefaultCaptureDevice', ['camera', deviceSelect.value]); | 353 chrome.send('setDefaultCaptureDevice', ['camera', deviceSelect.value]); |
362 }; | 354 }; |
363 | 355 |
364 // Export | 356 // Export |
365 return { | 357 return { |
366 ContentSettings: ContentSettings | 358 ContentSettings: ContentSettings |
367 }; | 359 }; |
368 | 360 |
369 }); | 361 }); |
OLD | NEW |