Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Side by Side Diff: components/printing/test/print_web_view_helper_browsertest.cc

Issue 2134513002: Enable basic printing on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Too agressive the first time. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/features.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « build/config/features.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698