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/gtkpagesetupunixdialog.h> |
9 #include <gtk/gtkprintjob.h> | 9 #include <gtk/gtkprintjob.h> |
10 #include <sys/stat.h> | 10 #include <sys/stat.h> |
11 #include <sys/types.h> | 11 #include <sys/types.h> |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/bind.h" | 16 #include "base/bind.h" |
17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
18 #include "base/file_util_proxy.h" | 18 #include "base/file_util_proxy.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/message_loop_proxy.h" |
20 #include "base/utf_string_conversions.h" | 21 #include "base/utf_string_conversions.h" |
21 #include "chrome/browser/ui/browser_list.h" | 22 #include "chrome/browser/ui/browser_list.h" |
22 #include "chrome/browser/ui/browser_window.h" | 23 #include "chrome/browser/ui/browser_window.h" |
23 #include "printing/metafile.h" | 24 #include "printing/metafile.h" |
24 #include "printing/print_job_constants.h" | 25 #include "printing/print_job_constants.h" |
25 #include "printing/print_settings.h" | 26 #include "printing/print_settings.h" |
26 #include "printing/print_settings_initializer_gtk.h" | 27 #include "printing/print_settings_initializer_gtk.h" |
27 | 28 |
28 using content::BrowserThread; | 29 using content::BrowserThread; |
29 using printing::PageRanges; | 30 using printing::PageRanges; |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 // Printing finished. Matches AddRef() in PrintDocument(); | 399 // Printing finished. Matches AddRef() in PrintDocument(); |
399 Release(); | 400 Release(); |
400 } | 401 } |
401 | 402 |
402 void PrintDialogGtk::InitPrintSettings(const PageRanges& page_ranges, | 403 void PrintDialogGtk::InitPrintSettings(const PageRanges& page_ranges, |
403 PrintSettings* settings) { | 404 PrintSettings* settings) { |
404 printing::PrintSettingsInitializerGtk::InitPrintSettings( | 405 printing::PrintSettingsInitializerGtk::InitPrintSettings( |
405 gtk_settings_, page_setup_, page_ranges, false, settings); | 406 gtk_settings_, page_setup_, page_ranges, false, settings); |
406 context_->InitWithSettings(*settings); | 407 context_->InitWithSettings(*settings); |
407 } | 408 } |
OLD | NEW |