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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "printing/backend/print_backend.h" | 12 #include "printing/backend/print_backend.h" |
13 #include "printing/backend/win_helper.h" | 13 #include "printing/backend/win_helper.h" |
14 #include "printing/print_settings_initializer_win.h" | 14 #include "printing/print_settings_initializer_win.h" |
15 #include "printing/printed_document.h" | 15 #include "printing/printed_document.h" |
16 #include "printing/printing_context_system_dialog_win.h" | 16 #include "printing/printing_context_system_dialog_win.h" |
17 #include "printing/printing_utils.h" | 17 #include "printing/printing_utils.h" |
18 #include "printing/units.h" | 18 #include "printing/units.h" |
19 #include "skia/ext/skia_utils_win.h" | 19 #include "skia/ext/skia_utils_win.h" |
20 #include "ui/aura/remote_window_tree_host_win.h" | |
21 #include "ui/aura/window.h" | 20 #include "ui/aura/window.h" |
| 21 #include "ui/aura/window_tree_host.h" |
22 | 22 |
23 namespace printing { | 23 namespace printing { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 void AssingResult(PrintingContext::Result* out, PrintingContext::Result in) { | 27 void AssingResult(PrintingContext::Result* out, PrintingContext::Result in) { |
28 *out = in; | 28 *out = in; |
29 } | 29 } |
30 | 30 |
31 } // namespace | 31 } // namespace |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 if (view && view->GetHost()) | 364 if (view && view->GetHost()) |
365 window = view->GetHost()->GetAcceleratedWidget(); | 365 window = view->GetHost()->GetAcceleratedWidget(); |
366 if (!window) { | 366 if (!window) { |
367 // TODO(maruel): crbug.com/1214347 Get the right browser window instead. | 367 // TODO(maruel): crbug.com/1214347 Get the right browser window instead. |
368 return GetDesktopWindow(); | 368 return GetDesktopWindow(); |
369 } | 369 } |
370 return window; | 370 return window; |
371 } | 371 } |
372 | 372 |
373 } // namespace printing | 373 } // namespace printing |
OLD | NEW |