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 "components/printing/renderer/print_web_view_helper.h" | 5 #include "components/printing/renderer/print_web_view_helper.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <tuple> | 10 #include <tuple> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "components/printing/common/print_messages.h" | 17 #include "components/printing/common/print_messages.h" |
18 #include "components/printing/test/mock_printer.h" | 18 #include "components/printing/test/mock_printer.h" |
19 #include "components/printing/test/print_mock_render_thread.h" | 19 #include "components/printing/test/print_mock_render_thread.h" |
20 #include "components/printing/test/print_test_content_renderer_client.h" | 20 #include "components/printing/test/print_test_content_renderer_client.h" |
21 #include "content/public/renderer/render_frame.h" | 21 #include "content/public/renderer/render_frame.h" |
22 #include "content/public/renderer/render_view.h" | 22 #include "content/public/renderer/render_view.h" |
23 #include "content/public/test/render_view_test.h" | 23 #include "content/public/test/render_view_test.h" |
24 #include "ipc/ipc_listener.h" | 24 #include "ipc/ipc_listener.h" |
25 #include "printing/features/features.h" | 25 #include "printing/features/features.h" |
26 #include "printing/print_job_constants.h" | 26 #include "printing/print_job_constants.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
| 28 #include "third_party/WebKit/public/platform/WebMouseEvent.h" |
28 #include "third_party/WebKit/public/platform/WebString.h" | 29 #include "third_party/WebKit/public/platform/WebString.h" |
29 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 30 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
30 #include "third_party/WebKit/public/web/WebRange.h" | 31 #include "third_party/WebKit/public/web/WebRange.h" |
31 #include "third_party/WebKit/public/web/WebView.h" | 32 #include "third_party/WebKit/public/web/WebView.h" |
32 | 33 |
33 #if defined(OS_WIN) || defined(OS_MACOSX) | 34 #if defined(OS_WIN) || defined(OS_MACOSX) |
34 #include "base/files/file_util.h" | 35 #include "base/files/file_util.h" |
35 #include "printing/image.h" | 36 #include "printing/image.h" |
36 | 37 |
37 using blink::WebFrame; | 38 using blink::WebFrame; |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1060 | 1061 |
1061 VerifyPrintFailed(true); | 1062 VerifyPrintFailed(true); |
1062 VerifyPagesPrinted(false); | 1063 VerifyPagesPrinted(false); |
1063 } | 1064 } |
1064 #endif // BUILDFLAG(ENABLE_BASIC_PRINTING) | 1065 #endif // BUILDFLAG(ENABLE_BASIC_PRINTING) |
1065 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) | 1066 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
1066 | 1067 |
1067 #endif // !defined(OS_CHROMEOS) | 1068 #endif // !defined(OS_CHROMEOS) |
1068 | 1069 |
1069 } // namespace printing | 1070 } // namespace printing |
OLD | NEW |