Merge pull request #1719 from deepak1556/service_worker_patch
devtools: api to inspect service worker
This commit is contained in:
commit
4a376694b4
9 changed files with 41 additions and 1 deletions
|
@ -371,6 +371,10 @@ void Window::InspectElement(int x, int y) {
|
|||
window_->InspectElement(x, y);
|
||||
}
|
||||
|
||||
void Window::InspectServiceWorker() {
|
||||
window_->InspectServiceWorker();
|
||||
}
|
||||
|
||||
void Window::FocusOnWebView() {
|
||||
window_->FocusOnWebView();
|
||||
}
|
||||
|
@ -544,7 +548,8 @@ void Window::BuildPrototype(v8::Isolate* isolate,
|
|||
&Window::ShowDefinitionForSelection)
|
||||
#endif
|
||||
.SetMethod("_getWebContents", &Window::GetWebContents)
|
||||
.SetMethod("_getDevToolsWebContents", &Window::GetDevToolsWebContents);
|
||||
.SetMethod("_getDevToolsWebContents", &Window::GetDevToolsWebContents)
|
||||
.SetMethod("inspectServiceWorker", &Window::InspectServiceWorker);
|
||||
}
|
||||
|
||||
} // namespace api
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue