| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/printing/print_view_manager_base.h" | 8 #include "chrome/browser/printing/print_view_manager_base.h" |
| 9 #include "content/public/browser/web_contents_user_data.h" | 9 #include "content/public/browser/web_contents_user_data.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Same as PrintNow(), but for the case where a user prints with the system | 25 // Same as PrintNow(), but for the case where a user prints with the system |
| 26 // dialog from print preview. | 26 // dialog from print preview. |
| 27 bool PrintForSystemDialogNow(); | 27 bool PrintForSystemDialogNow(); |
| 28 | 28 |
| 29 // Same as PrintNow(), but for the case where a user press "ctrl+shift+p" to | 29 // Same as PrintNow(), but for the case where a user press "ctrl+shift+p" to |
| 30 // show the native system dialog. This can happen from both initiator and | 30 // show the native system dialog. This can happen from both initiator and |
| 31 // preview dialog. | 31 // preview dialog. |
| 32 bool AdvancedPrintNow(); | 32 bool AdvancedPrintNow(); |
| 33 | 33 |
| 34 // Same as PrintNow(), but for the case where we want to send the result to | |
| 35 // another destination. | |
| 36 // TODO(mad) Add an argument so we can pass the destination interface. | |
| 37 bool PrintToDestination(); | |
| 38 | |
| 39 // Initiate print preview of the current document by first notifying the | 34 // Initiate print preview of the current document by first notifying the |
| 40 // renderer. Since this happens asynchronous, the print preview dialog | 35 // renderer. Since this happens asynchronous, the print preview dialog |
| 41 // creation will not be completed on the return of this function. Returns | 36 // creation will not be completed on the return of this function. Returns |
| 42 // false if print preview is impossible at the moment. | 37 // false if print preview is impossible at the moment. |
| 43 bool PrintPreviewNow(bool selection_only); | 38 bool PrintPreviewNow(bool selection_only); |
| 44 | 39 |
| 45 // Notify PrintViewManager that print preview is starting in the renderer for | 40 // Notify PrintViewManager that print preview is starting in the renderer for |
| 46 // a particular WebNode. | 41 // a particular WebNode. |
| 47 void PrintPreviewForWebNode(); | 42 void PrintPreviewForWebNode(); |
| 48 | 43 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 82 |
| 88 // Keeps track of the pending callback during scripted print preview. | 83 // Keeps track of the pending callback during scripted print preview. |
| 89 content::RenderProcessHost* scripted_print_preview_rph_; | 84 content::RenderProcessHost* scripted_print_preview_rph_; |
| 90 | 85 |
| 91 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); | 86 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); |
| 92 }; | 87 }; |
| 93 | 88 |
| 94 } // namespace printing | 89 } // namespace printing |
| 95 | 90 |
| 96 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ | 91 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ |
| OLD | NEW |