Cleanup.
This commit is contained in:
parent
10da361db1
commit
2597ded985
5 changed files with 13 additions and 72 deletions
|
@ -421,7 +421,7 @@ void Window::CapturePage(mate::Arguments* args) {
|
|||
}
|
||||
|
||||
void Window::Print(mate::Arguments* args) {
|
||||
PrintSettings settings = { false, false };;
|
||||
PrintSettings settings = { false, false };
|
||||
if (args->Length() == 1 && !args->GetNext(&settings)) {
|
||||
args->ThrowError();
|
||||
return;
|
||||
|
|
|
@ -268,7 +268,7 @@ void NativeWindow::Print(bool silent, bool print_background) {
|
|||
void NativeWindow::PrintToPDF(const mate::Dictionary& options,
|
||||
const PrintToPDFCallback& callback) {
|
||||
printing::PrintPreviewMessageHandler::FromWebContents(GetWebContents())->
|
||||
HandleGetPreview(options, callback);
|
||||
PrintToPDF(options, callback);
|
||||
}
|
||||
|
||||
void NativeWindow::ShowDefinitionForSelection() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue