OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "printing/printing_context_win.h" | 5 #include "printing/printing_context_win.h" |
6 | 6 |
7 #include <winspool.h> | 7 #include <winspool.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/i18n/file_util_icu.h" | 11 #include "base/i18n/file_util_icu.h" |
12 #include "base/i18n/time_formatting.h" | 12 #include "base/i18n/time_formatting.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "base/time.h" | 16 #include "base/time/time.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "base/win/metro.h" | 18 #include "base/win/metro.h" |
19 #include "printing/backend/print_backend.h" | 19 #include "printing/backend/print_backend.h" |
20 #include "printing/backend/printing_info_win.h" | 20 #include "printing/backend/printing_info_win.h" |
21 #include "printing/backend/win_helper.h" | 21 #include "printing/backend/win_helper.h" |
22 #include "printing/print_job_constants.h" | 22 #include "printing/print_job_constants.h" |
23 #include "printing/print_settings_initializer_win.h" | 23 #include "printing/print_settings_initializer_win.h" |
24 #include "printing/printed_document.h" | 24 #include "printing/printed_document.h" |
25 #include "printing/units.h" | 25 #include "printing/units.h" |
26 #include "skia/ext/platform_device.h" | 26 #include "skia/ext/platform_device.h" |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 | 769 |
770 if (dialog_options.hDevMode != NULL) | 770 if (dialog_options.hDevMode != NULL) |
771 GlobalFree(dialog_options.hDevMode); | 771 GlobalFree(dialog_options.hDevMode); |
772 if (dialog_options.hDevNames != NULL) | 772 if (dialog_options.hDevNames != NULL) |
773 GlobalFree(dialog_options.hDevNames); | 773 GlobalFree(dialog_options.hDevNames); |
774 | 774 |
775 return context_ ? OK : FAILED; | 775 return context_ ? OK : FAILED; |
776 } | 776 } |
777 | 777 |
778 } // namespace printing | 778 } // namespace printing |
OLD | NEW |