Enable getUserMedia(). Part of fixes for #31.
This commit is contained in:
parent
354a1c555b
commit
f26db5c7a1
9 changed files with 390 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "browser/atom_browser_context.h"
|
||||
#include "browser/atom_browser_main_parts.h"
|
||||
#include "browser/atom_javascript_dialog_manager.h"
|
||||
#include "browser/media/media_stream_devices_controller.h"
|
||||
#include "browser/window_list.h"
|
||||
#include "content/public/browser/invalidate_type.h"
|
||||
#include "content/public/browser/navigation_entry.h"
|
||||
|
@ -219,6 +220,14 @@ void NativeWindow::RequestToLockMouse(content::WebContents* web_contents,
|
|||
GetWebContents()->GotResponseToLockMouseRequest(true);
|
||||
}
|
||||
|
||||
void NativeWindow::RequestMediaAccessPermission(
|
||||
content::WebContents* web_contents,
|
||||
const content::MediaStreamRequest& request,
|
||||
const content::MediaResponseCallback& callback) {
|
||||
MediaStreamDevicesController controller(request, callback);
|
||||
controller.TakeAction();
|
||||
}
|
||||
|
||||
bool NativeWindow::CanOverscrollContent() const {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue