detecting focus on devtools webcontents

This commit is contained in:
Robo 2015-03-31 21:17:28 +05:30
parent 17f1fc618e
commit 4ae52721c4
3 changed files with 8 additions and 0 deletions

View file

@ -241,6 +241,12 @@ void InspectableWebContentsImpl::AppendToFile(
delegate_->DevToolsAppendToFile(url, content);
}
void InspectableWebContentsImpl::WebContentsFocused(
content::WebContents* contents) {
if (delegate_)
delegate_->DevToolsFocused();
}
void InspectableWebContentsImpl::RequestFileSystems() {
devtools_web_contents()->GetMainFrame()->ExecuteJavaScript(
base::ASCIIToUTF16("DevToolsAPI.fileSystemsLoaded([])"));