sammc | 3d0df3a | 2014-11-24 21:25:38 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_ |
| 6 | #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_ |
| 7 | |
Brett Wilson | 65f951c | 2016-11-03 22:06:12 | [diff] [blame^] | 8 | #include "printing/features/features.h" |
| 9 | |
sammc | 3d0df3a | 2014-11-24 21:25:38 | [diff] [blame] | 10 | namespace content { |
| 11 | class WebContents; |
| 12 | } |
| 13 | |
| 14 | namespace printing { |
| 15 | |
| 16 | // Start printing using the appropriate PrintViewManagerBase subclass. |
| 17 | void StartPrint(content::WebContents* web_contents, |
| 18 | bool print_preview_disabled, |
| 19 | bool selection_only); |
| 20 | |
Brett Wilson | 65f951c | 2016-11-03 22:06:12 | [diff] [blame^] | 21 | #if BUILDFLAG(ENABLE_BASIC_PRINTING) |
sammc | 3d0df3a | 2014-11-24 21:25:38 | [diff] [blame] | 22 | // Start printing using the system print dialog. |
| 23 | void StartBasicPrint(content::WebContents* contents); |
| 24 | #endif |
| 25 | |
| 26 | } // namespace printing |
| 27 | |
| 28 | #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_ |