Add "silent" and "print_background" option for printing.
This commit is contained in:
parent
d0c1b63064
commit
e43b3309af
10 changed files with 56 additions and 34 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue