HandleKeyboardEvent returns bool

1262404
This commit is contained in:
Jeremy Apthorp 2019-01-09 12:01:49 -08:00
parent fd7b49b32b
commit 30e5e993c1
7 changed files with 26 additions and 17 deletions

View file

@ -779,12 +779,11 @@ bool InspectableWebContentsImpl::ShouldCreateWebContents(
return false;
}
void InspectableWebContentsImpl::HandleKeyboardEvent(
bool InspectableWebContentsImpl::HandleKeyboardEvent(
content::WebContents* source,
const content::NativeWebKeyboardEvent& event) {
auto* delegate = web_contents_->GetDelegate();
if (delegate)
delegate->HandleKeyboardEvent(source, event);
return !delegate || delegate->HandleKeyboardEvent(source, event);
}
void InspectableWebContentsImpl::CloseContents(content::WebContents* source) {