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 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/memory/free_deleter.h" | 11 #include "base/memory/free_deleter.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/message_loop/message_loop.h" |
13 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
15 #include "printing/backend/print_backend.h" | 16 #include "printing/backend/print_backend.h" |
16 #include "printing/backend/win_helper.h" | 17 #include "printing/backend/win_helper.h" |
17 #include "printing/features/features.h" | 18 #include "printing/features/features.h" |
18 #include "printing/print_settings_initializer_win.h" | 19 #include "printing/print_settings_initializer_win.h" |
19 #include "printing/printed_document.h" | 20 #include "printing/printed_document.h" |
20 #include "printing/printing_context_system_dialog_win.h" | 21 #include "printing/printing_context_system_dialog_win.h" |
21 #include "printing/printing_utils.h" | 22 #include "printing/printing_utils.h" |
22 #include "printing/units.h" | 23 #include "printing/units.h" |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 if (view && view->GetHost()) | 374 if (view && view->GetHost()) |
374 window = view->GetHost()->GetAcceleratedWidget(); | 375 window = view->GetHost()->GetAcceleratedWidget(); |
375 if (!window) { | 376 if (!window) { |
376 // TODO(maruel): b/1214347 Get the right browser window instead. | 377 // TODO(maruel): b/1214347 Get the right browser window instead. |
377 return GetDesktopWindow(); | 378 return GetDesktopWindow(); |
378 } | 379 } |
379 return window; | 380 return window; |
380 } | 381 } |
381 | 382 |
382 } // namespace printing | 383 } // namespace printing |
OLD | NEW |