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> |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 using blink::WebFrame; | 35 using blink::WebFrame; |
36 using blink::WebLocalFrame; | 36 using blink::WebLocalFrame; |
37 using blink::WebString; | 37 using blink::WebString; |
38 #endif | 38 #endif |
39 | 39 |
40 namespace printing { | 40 namespace printing { |
41 | 41 |
42 namespace { | 42 namespace { |
43 | 43 |
44 #if !defined(OS_CHROMEOS) | |
45 | |
46 // A simple web page. | 44 // A simple web page. |
47 const char kHelloWorldHTML[] = "<body><p>Hello World!</p></body>"; | 45 const char kHelloWorldHTML[] = "<body><p>Hello World!</p></body>"; |
48 | 46 |
| 47 #if !defined(OS_CHROMEOS) |
49 // A simple webpage with a button to print itself with. | 48 // A simple webpage with a button to print itself with. |
50 const char kPrintOnUserAction[] = | 49 const char kPrintOnUserAction[] = |
51 "<body>" | 50 "<body>" |
52 " <button id=\"print\" onclick=\"window.print();\">Hello World!</button>" | 51 " <button id=\"print\" onclick=\"window.print();\">Hello World!</button>" |
53 "</body>"; | 52 "</body>"; |
54 | 53 |
55 #if defined(ENABLE_PRINT_PREVIEW) | 54 #if defined(ENABLE_PRINT_PREVIEW) |
56 // HTML with 3 pages. | 55 // HTML with 3 pages. |
57 const char kMultipageHTML[] = | 56 const char kMultipageHTML[] = |
58 "<html><head><style>" | 57 "<html><head><style>" |
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 | 1054 |
1056 VerifyPrintFailed(true); | 1055 VerifyPrintFailed(true); |
1057 VerifyPagesPrinted(false); | 1056 VerifyPagesPrinted(false); |
1058 } | 1057 } |
1059 #endif // defined(ENABLE_BASIC_PRINTING) | 1058 #endif // defined(ENABLE_BASIC_PRINTING) |
1060 #endif // defined(ENABLE_PRINT_PREVIEW) | 1059 #endif // defined(ENABLE_PRINT_PREVIEW) |
1061 | 1060 |
1062 #endif // !defined(OS_CHROMEOS) | 1061 #endif // !defined(OS_CHROMEOS) |
1063 | 1062 |
1064 } // namespace printing | 1063 } // namespace printing |
OLD | NEW |