Add printToPDF API skeleton.

This commit is contained in:
Haojian Wu 2015-05-31 10:24:45 +08:00
parent bd704dd8aa
commit b360f7d86a
4 changed files with 12 additions and 0 deletions

View file

@ -430,6 +430,10 @@ void Window::Print(mate::Arguments* args) {
window_->Print(settings.silent, settings.print_background);
}
void Window::PrintToPDF() {
window_->PrintToPDF();
}
void Window::SetProgressBar(double progress) {
window_->SetProgressBar(progress);
}
@ -542,6 +546,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
.SetMethod("isWebViewFocused", &Window::IsWebViewFocused)
.SetMethod("capturePage", &Window::CapturePage)
.SetMethod("print", &Window::Print)
.SetMethod("printToPDF", &Window::PrintToPDF)
.SetMethod("setProgressBar", &Window::SetProgressBar)
.SetMethod("setOverlayIcon", &Window::SetOverlayIcon)
.SetMethod("_setMenu", &Window::SetMenu)