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/memory/free_deleter.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
12 #include "printing/backend/print_backend.h" | 13 #include "printing/backend/print_backend.h" |
13 #include "printing/backend/win_helper.h" | 14 #include "printing/backend/win_helper.h" |
14 #include "printing/print_settings_initializer_win.h" | 15 #include "printing/print_settings_initializer_win.h" |
15 #include "printing/printed_document.h" | 16 #include "printing/printed_document.h" |
16 #include "printing/printing_context_system_dialog_win.h" | 17 #include "printing/printing_context_system_dialog_win.h" |
17 #include "printing/printing_utils.h" | 18 #include "printing/printing_utils.h" |
18 #include "printing/units.h" | 19 #include "printing/units.h" |
19 #include "skia/ext/skia_utils_win.h" | 20 #include "skia/ext/skia_utils_win.h" |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 if (view && view->GetHost()) | 365 if (view && view->GetHost()) |
365 window = view->GetHost()->GetAcceleratedWidget(); | 366 window = view->GetHost()->GetAcceleratedWidget(); |
366 if (!window) { | 367 if (!window) { |
367 // TODO(maruel): crbug.com/1214347 Get the right browser window instead. | 368 // TODO(maruel): crbug.com/1214347 Get the right browser window instead. |
368 return GetDesktopWindow(); | 369 return GetDesktopWindow(); |
369 } | 370 } |
370 return window; | 371 return window; |
371 } | 372 } |
372 | 373 |
373 } // namespace printing | 374 } // namespace printing |
OLD | NEW |