Handle keyboard events for WebContents that do not have owner window

This commit is contained in:
Cheng Zhao 2016-05-18 13:47:50 +09:00
parent dc9b3fcef7
commit 5f6c468f0f
8 changed files with 93 additions and 58 deletions

View file

@ -84,6 +84,9 @@ class CommonWebContentsDelegate
content::SecurityStyle GetSecurityStyle(
content::WebContents* web_contents,
content::SecurityStyleExplanations* explanations) override;
void HandleKeyboardEvent(
content::WebContents* source,
const content::NativeWebKeyboardEvent& event) override;
// brightray::InspectableWebContentsDelegate:
void DevToolsSaveToFile(const std::string& url,