mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 142910.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@702 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -1082,6 +1082,23 @@ void CefBrowserHostImpl::UpdatePreferredSize(content::WebContents* source,
|
||||
PlatformSizeTo(pref_size.width(), pref_size.height());
|
||||
}
|
||||
|
||||
void CefBrowserHostImpl::RequestMediaAccessPermission(
|
||||
content::WebContents* web_contents,
|
||||
const content::MediaStreamRequest* request,
|
||||
const content::MediaResponseCallback& callback) {
|
||||
CEF_CURRENTLY_ON_UIT();
|
||||
|
||||
content::MediaStreamDevices devices;
|
||||
for (content::MediaStreamDeviceMap::const_iterator it =
|
||||
request->devices.begin(); it != request->devices.end(); ++it) {
|
||||
devices.push_back(*it->second.begin());
|
||||
}
|
||||
|
||||
// TODO(cef): Give the user an opportunity to approve the device list or run
|
||||
// the callback with an empty device list to cancel the request.
|
||||
callback.Run(devices);
|
||||
}
|
||||
|
||||
|
||||
// content::WebContentsObserver methods.
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user