| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_ |
| 7 | 7 |
| 8 #include "printing/features/features.h" |
| 9 |
| 8 namespace content { | 10 namespace content { |
| 9 class WebContents; | 11 class WebContents; |
| 10 } | 12 } |
| 11 | 13 |
| 12 namespace printing { | 14 namespace printing { |
| 13 | 15 |
| 14 // Start printing using the appropriate PrintViewManagerBase subclass. | 16 // Start printing using the appropriate PrintViewManagerBase subclass. |
| 15 void StartPrint(content::WebContents* web_contents, | 17 void StartPrint(content::WebContents* web_contents, |
| 16 bool print_preview_disabled, | 18 bool print_preview_disabled, |
| 17 bool selection_only); | 19 bool selection_only); |
| 18 | 20 |
| 19 #if defined(ENABLE_BASIC_PRINTING) | 21 #if BUILDFLAG(ENABLE_BASIC_PRINTING) |
| 20 // Start printing using the system print dialog. | 22 // Start printing using the system print dialog. |
| 21 void StartBasicPrint(content::WebContents* contents); | 23 void StartBasicPrint(content::WebContents* contents); |
| 22 #endif | 24 #endif |
| 23 | 25 |
| 24 } // namespace printing | 26 } // namespace printing |
| 25 | 27 |
| 26 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_ | 28 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_ |
| OLD | NEW |