Merge pull request #1719 from deepak1556/service_worker_patch

devtools: api to inspect service worker
This commit is contained in:
Cheng Zhao 2015-05-27 15:47:41 +08:00
commit 4a376694b4
9 changed files with 41 additions and 1 deletions

View file

@ -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