Index: chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js |
diff --git a/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js b/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js |
index e70d087a3a670e2979d3c085a709350e0349762b..444088872aed7473e931ae1386639fbb643d691e 100644 |
--- a/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js |
+++ b/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js |
@@ -34,6 +34,12 @@ var ExceptionListPref; |
*/ |
var SiteSettingsPref; |
+/** |
+ * @typedef {{name: string, |
+ * id: string}} |
+ */ |
+var MediaPickerEntry; |
+ |
cr.define('settings', function() { |
/** @interface */ |
function SiteSettingsPrefsBrowserProxy() {} |
@@ -89,6 +95,19 @@ cr.define('settings', function() { |
* @return {!Promise<boolean>} True if the pattern is valid. |
*/ |
isPatternValid: function(pattern) {}, |
+ |
+ /** |
+ * Gets the list of default capture devices for a given type of media. |
+ * @param {string} type The type to look up. |
michaelpg
2016/06/07 16:03:30
@return?
Finnur
2016/06/07 16:48:23
Done.
michaelpg
2016/06/07 17:00:55
ping
Finnur
2016/06/08 12:40:40
Commented the wrong function, should be fixed now.
|
+ */ |
+ getDefaultCaptureDevices: function(type) {}, |
+ |
+ /** |
+ * Gets a default devices for a given type of media. |
+ * @param {string} type The type of media to configure. |
+ * @param {string} defaultValue The id of the media device to set. |
+ */ |
+ setDefaultCaptureDevice: function(type, defaultValue) {}, |
}; |
/** |
@@ -136,6 +155,15 @@ cr.define('settings', function() { |
return cr.sendWithPromise('isPatternValid', pattern); |
}, |
+ /** @override */ |
+ getDefaultCaptureDevices: function(type) { |
+ chrome.send('getDefaultCaptureDevices', [type]); |
+ }, |
+ |
+ /** @override */ |
+ setDefaultCaptureDevice: function(type, defaultValue) { |
+ chrome.send('setDefaultCaptureDevice', [type, defaultValue]); |
+ }, |
}; |
return { |