VR: Check focus state browser-side before sending input to renderer.
https://chromium-review.googlesource.com/c/565760
This commit is contained in:
parent
fe48a92422
commit
14c61a96af
2 changed files with 4 additions and 2 deletions
|
@ -737,7 +737,8 @@ void InspectableWebContentsImpl::EnumerateDirectory(
|
|||
delegate->EnumerateDirectory(source, request_id, path);
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::OnWebContentsFocused() {
|
||||
void InspectableWebContentsImpl::OnWebContentsFocused(
|
||||
content::RenderWidgetHost* render_widget_host) {
|
||||
#if defined(TOOLKIT_VIEWS)
|
||||
if (view_->GetDelegate())
|
||||
view_->GetDelegate()->DevToolsFocused();
|
||||
|
|
|
@ -127,7 +127,8 @@ class InspectableWebContentsImpl :
|
|||
void RenderFrameHostChanged(content::RenderFrameHost* old_host,
|
||||
content::RenderFrameHost* new_host) override;
|
||||
void WebContentsDestroyed() override;
|
||||
void OnWebContentsFocused() override;
|
||||
void OnWebContentsFocused(
|
||||
content::RenderWidgetHost* render_widget_host) override;
|
||||
void DidStartNavigationToPendingEntry(
|
||||
const GURL& url,
|
||||
content::ReloadType reload_type) override;
|
||||
|
|
Loading…
Reference in a new issue