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

Unified Diff: chrome/browser/resources/chromeos/emulator/device_emulator.js

Issue 1274403003: Full Implementation of Audio for the Chrome Os Device Emulator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 5 years, 4 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/chromeos/emulator/device_emulator.js
diff --git a/chrome/browser/resources/chromeos/emulator/device_emulator.js b/chrome/browser/resources/chromeos/emulator/device_emulator.js
index a6c54bab2aba879e503d79614b0b3e11a387ecae..11f0c2a9ccffa15ba801e29321df95b4d541336a 100644
--- a/chrome/browser/resources/chromeos/emulator/device_emulator.js
+++ b/chrome/browser/resources/chromeos/emulator/device_emulator.js
@@ -5,12 +5,15 @@
cr.define('device_emulator', function() {
'use strict';
+ var audioSettings = $('audio-settings');
var batterySettings = $('battery-settings');
var bluetoothSettings = $('bluetooth-settings');
function initialize() {
- chrome.send('requestPowerInfo');
+ chrome.send('requestAudioNodes');
chrome.send('requestBluetoothInfo');
+ chrome.send('requestPowerInfo');
+
var toggles = document.getElementsByClassName('menu-item-toggle');
for (var i = 0; i < toggles.length; ++i) {
@@ -32,6 +35,7 @@ cr.define('device_emulator', function() {
// Return an object with all of the exports.
return {
initialize: initialize,
+ audioSettings: audioSettings,
batterySettings: batterySettings,
bluetoothSettings: bluetoothSettings,
};

Powered by Google App Engine
This is Rietveld 408576698