| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 SCRIPTED_PREVIEW, | 92 SCRIPTED_PREVIEW, |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 // IPC Message handlers. | 95 // IPC Message handlers. |
| 96 void OnDidGetPrintedPagesCount(int cookie, int number_pages); | 96 void OnDidGetPrintedPagesCount(int cookie, int number_pages); |
| 97 void OnDidGetDocumentCookie(int cookie); | 97 void OnDidGetDocumentCookie(int cookie); |
| 98 void OnDidShowPrintDialog(); | 98 void OnDidShowPrintDialog(); |
| 99 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); | 99 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); |
| 100 void OnPrintingFailed(int cookie); | 100 void OnPrintingFailed(int cookie); |
| 101 | 101 |
| 102 void OnScriptedPrintPreview(IPC::Message* reply_msg); | 102 void OnScriptedPrintPreview(bool source_is_modifiable, |
| 103 IPC::Message* reply_msg); |
| 103 void OnScriptedPrintPreviewReply(IPC::Message* reply_msg); | 104 void OnScriptedPrintPreviewReply(IPC::Message* reply_msg); |
| 104 | 105 |
| 105 // Processes a NOTIFY_PRINT_JOB_EVENT notification. | 106 // Processes a NOTIFY_PRINT_JOB_EVENT notification. |
| 106 void OnNotifyPrintJobEvent(const JobEventDetails& event_details); | 107 void OnNotifyPrintJobEvent(const JobEventDetails& event_details); |
| 107 | 108 |
| 108 // Requests the RenderView to render all the missing pages for the print job. | 109 // Requests the RenderView to render all the missing pages for the print job. |
| 109 // No-op if no print job is pending. Returns true if at least one page has | 110 // No-op if no print job is pending. Returns true if at least one page has |
| 110 // been requested to the renderer. | 111 // been requested to the renderer. |
| 111 bool RenderAllMissingPagesNow(); | 112 bool RenderAllMissingPagesNow(); |
| 112 | 113 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 190 |
| 190 // Keeps track of the pending callback during scripted print preview. | 191 // Keeps track of the pending callback during scripted print preview. |
| 191 content::RenderProcessHost* scripted_print_preview_rph_; | 192 content::RenderProcessHost* scripted_print_preview_rph_; |
| 192 | 193 |
| 193 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); | 194 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); |
| 194 }; | 195 }; |
| 195 | 196 |
| 196 } // namespace printing | 197 } // namespace printing |
| 197 | 198 |
| 198 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ | 199 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ |
| OLD | NEW |