| 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 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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/printing_utils.h" | 25 #include "printing/printing_utils.h" |
| 26 #include "printing/units.h" | 26 #include "printing/units.h" |
| 27 #include "skia/ext/platform_device.h" | 27 #include "skia/ext/platform_device.h" |
| 28 #include "win8/util/win8_util.h" | 28 #include "win8/util/win8_util.h" |
| 29 | 29 |
| 30 #if defined(USE_AURA) | 30 #if defined(USE_AURA) |
| 31 #include "ui/aura/remote_window_tree_host_win.h" | 31 #include "ui/aura/remote_window_tree_host_win.h" |
| 32 #include "ui/aura/root_window.h" | |
| 33 #include "ui/aura/window.h" | 32 #include "ui/aura/window.h" |
| 33 #include "ui/aura/window_event_dispatcher.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 using base::Time; | 36 using base::Time; |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| 39 | 39 |
| 40 HWND GetRootWindow(gfx::NativeView view) { | 40 HWND GetRootWindow(gfx::NativeView view) { |
| 41 HWND window = NULL; | 41 HWND window = NULL; |
| 42 #if defined(USE_AURA) | 42 #if defined(USE_AURA) |
| 43 if (view) | 43 if (view) |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 | 730 |
| 731 if (dialog_options.hDevMode != NULL) | 731 if (dialog_options.hDevMode != NULL) |
| 732 GlobalFree(dialog_options.hDevMode); | 732 GlobalFree(dialog_options.hDevMode); |
| 733 if (dialog_options.hDevNames != NULL) | 733 if (dialog_options.hDevNames != NULL) |
| 734 GlobalFree(dialog_options.hDevNames); | 734 GlobalFree(dialog_options.hDevNames); |
| 735 | 735 |
| 736 return context_ ? OK : FAILED; | 736 return context_ ? OK : FAILED; |
| 737 } | 737 } |
| 738 | 738 |
| 739 } // namespace printing | 739 } // namespace printing |
| OLD | NEW |