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

Side by Side Diff: headless/lib/renderer/headless_print_web_view_helper_delegate.cc

Issue 2829973002: add customized printing setting for headless (Closed)
Patch Set: add skia as public_deps instead Created 3 years, 7 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "headless/lib/renderer/headless_print_web_view_helper_delegate.h" 5 #include "headless/lib/renderer/headless_print_web_view_helper_delegate.h"
6 6
7 #include "third_party/WebKit/public/web/WebElement.h" 7 #include "third_party/WebKit/public/web/WebElement.h"
8 8
9 namespace headless { 9 namespace headless {
10 10
(...skipping 14 matching lines...) Expand all
25 bool HeadlessPrintWebViewHelperDelegate::IsPrintPreviewEnabled() { 25 bool HeadlessPrintWebViewHelperDelegate::IsPrintPreviewEnabled() {
26 return false; 26 return false;
27 } 27 }
28 28
29 bool HeadlessPrintWebViewHelperDelegate::OverridePrint( 29 bool HeadlessPrintWebViewHelperDelegate::OverridePrint(
30 blink::WebLocalFrame* frame) { 30 blink::WebLocalFrame* frame) {
31 return false; 31 return false;
32 } 32 }
33 33
34 bool HeadlessPrintWebViewHelperDelegate::IsAskPrintSettingsEnabled() { 34 bool HeadlessPrintWebViewHelperDelegate::IsAskPrintSettingsEnabled() {
35 return false; 35 return true;
36 } 36 }
37 37
38 #if defined(OS_MACOSX) 38 #if defined(OS_MACOSX)
39 bool HeadlessPrintWebViewHelperDelegate::UseSingleMetafile() { 39 bool HeadlessPrintWebViewHelperDelegate::UseSingleMetafile() {
40 return true; 40 return true;
41 } 41 }
42 #endif 42 #endif
43 43
44 } // namespace headless 44 } // namespace headless
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698