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 void CreateCompositeClientIfNeeded(content::WebContents* web_contents); | |
Lei Zhang
2017/08/16 21:17:01
Add a comment to mention it's creating the client
Wei Li
2017/08/25 23:39:37
Done.
| |
22 | |
14 // Converts given settings to Print_Params and stores them in the output | 23 // Converts given settings to Print_Params and stores them in the output |
15 // parameter |params|. | 24 // parameter |params|. |
16 void RenderParamsFromPrintSettings(const PrintSettings& settings, | 25 void RenderParamsFromPrintSettings(const PrintSettings& settings, |
17 PrintMsg_Print_Params* params); | 26 PrintMsg_Print_Params* params); |
18 | 27 |
19 } // namespace printing | 28 } // namespace printing |
20 | 29 |
21 #endif // COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_ | 30 #endif // COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_ |
OLD | NEW |