parent
fd7b49b32b
commit
30e5e993c1
7 changed files with 26 additions and 17 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue