Add printToPDF API skeleton.
This commit is contained in:
parent
bd704dd8aa
commit
b360f7d86a
4 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue