OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/printing/print_dialog_gtk.h" | 5 #include "chrome/browser/printing/print_dialog_gtk.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <gtk/gtkpagesetupunixdialog.h> | 8 #include <gtk/gtkunixprint.h> |
9 #include <gtk/gtkprintjob.h> | |
10 #include <sys/stat.h> | 9 #include <sys/stat.h> |
11 #include <sys/types.h> | 10 #include <sys/types.h> |
12 | 11 |
13 #include <string> | 12 #include <string> |
14 #include <vector> | 13 #include <vector> |
15 | 14 |
16 #include "base/bind.h" | 15 #include "base/bind.h" |
17 #include "base/file_util.h" | 16 #include "base/file_util.h" |
18 #include "base/file_util_proxy.h" | 17 #include "base/file_util_proxy.h" |
19 #include "base/logging.h" | 18 #include "base/logging.h" |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 // Printing finished. Matches AddRef() in PrintDocument(); | 396 // Printing finished. Matches AddRef() in PrintDocument(); |
398 Release(); | 397 Release(); |
399 } | 398 } |
400 | 399 |
401 void PrintDialogGtk::InitPrintSettings(const PageRanges& page_ranges, | 400 void PrintDialogGtk::InitPrintSettings(const PageRanges& page_ranges, |
402 PrintSettings* settings) { | 401 PrintSettings* settings) { |
403 printing::PrintSettingsInitializerGtk::InitPrintSettings( | 402 printing::PrintSettingsInitializerGtk::InitPrintSettings( |
404 gtk_settings_, page_setup_, page_ranges, false, settings); | 403 gtk_settings_, page_setup_, page_ranges, false, settings); |
405 context_->InitWithSettings(*settings); | 404 context_->InitWithSettings(*settings); |
406 } | 405 } |
OLD | NEW |