OLD | NEW |
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 Loading... |
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 |
OLD | NEW |