OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_ | 5 #ifndef COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_ |
6 #define COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_ | 6 #define COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_ |
7 | 7 |
8 struct PrintMsg_Print_Params; | 8 struct PrintMsg_Print_Params; |
9 | 9 |
| 10 namespace content { |
| 11 class WebContents; |
| 12 } |
| 13 |
10 namespace printing { | 14 namespace printing { |
11 | 15 |
12 class PrintSettings; | 16 class PrintSettings; |
13 | 17 |
| 18 void SetOopifEnabled(bool enabled); |
| 19 bool IsOopifEnabled(); |
| 20 |
| 21 // Check on the current feature settings to decide whether we need to |
| 22 // create a PDF compositor client for this |web_contents|. |
| 23 void CreateCompositeClientIfNeeded(content::WebContents* web_contents); |
| 24 |
14 // Converts given settings to Print_Params and stores them in the output | 25 // Converts given settings to Print_Params and stores them in the output |
15 // parameter |params|. | 26 // parameter |params|. |
16 void RenderParamsFromPrintSettings(const PrintSettings& settings, | 27 void RenderParamsFromPrintSettings(const PrintSettings& settings, |
17 PrintMsg_Print_Params* params); | 28 PrintMsg_Print_Params* params); |
18 | 29 |
19 } // namespace printing | 30 } // namespace printing |
20 | 31 |
21 #endif // COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_ | 32 #endif // COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_ |
OLD | NEW |