parent
4bbe026d48
commit
98bf5bf3ed
2 changed files with 12 additions and 2 deletions
|
@ -10,6 +10,13 @@ DefaultWebContentsDelegate::DefaultWebContentsDelegate() {
|
|||
DefaultWebContentsDelegate::~DefaultWebContentsDelegate() {
|
||||
}
|
||||
|
||||
bool DefaultWebContentsDelegate::CheckMediaAccessPermission(
|
||||
content::WebContents* web_contents,
|
||||
const GURL& security_origin,
|
||||
content::MediaStreamType type) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void DefaultWebContentsDelegate::RequestMediaAccessPermission(
|
||||
content::WebContents*,
|
||||
const content::MediaStreamRequest& request,
|
||||
|
|
|
@ -13,12 +13,15 @@ class DefaultWebContentsDelegate : public content::WebContentsDelegate {
|
|||
~DefaultWebContentsDelegate();
|
||||
|
||||
protected:
|
||||
virtual void RequestMediaAccessPermission(
|
||||
bool CheckMediaAccessPermission(content::WebContents* web_contents,
|
||||
const GURL& security_origin,
|
||||
content::MediaStreamType type) override;
|
||||
void RequestMediaAccessPermission(
|
||||
content::WebContents*,
|
||||
const content::MediaStreamRequest&,
|
||||
const content::MediaResponseCallback&) override;
|
||||
#if defined(OS_MACOSX)
|
||||
virtual void HandleKeyboardEvent(
|
||||
void HandleKeyboardEvent(
|
||||
content::WebContents*, const content::NativeWebKeyboardEvent&) override;
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue