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

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

Issue 1011833002: Web MIDI: make Chrome a music platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/content_settings.html ('k') | chrome/browser/ui/website_settings/website_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698