mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-29 20:26:03 +08:00
Add "silent" and "print_background" option for printing.
This commit is contained in:
@@ -202,9 +202,9 @@ bool NativeWindow::IsDocumentEdited() {
|
||||
void NativeWindow::SetMenu(ui::MenuModel* menu) {
|
||||
}
|
||||
|
||||
void NativeWindow::Print() {
|
||||
void NativeWindow::Print(bool silent, bool print_background) {
|
||||
printing::PrintViewManagerBasic::FromWebContents(GetWebContents())->
|
||||
PrintNow();
|
||||
PrintNow(silent, print_background);
|
||||
}
|
||||
|
||||
bool NativeWindow::HasModalDialog() {
|
||||
|
||||
Reference in New Issue
Block a user