| 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_PREVIEW_MESSAGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 content::RenderFrameHost* render_frame_host, | 57 content::RenderFrameHost* render_frame_host, |
| 58 const PrintHostMsg_RequestPrintPreview_Params& params); | 58 const PrintHostMsg_RequestPrintPreview_Params& params); |
| 59 void OnDidGetDefaultPageLayout(const PageSizeMargins& page_layout_in_points, | 59 void OnDidGetDefaultPageLayout(const PageSizeMargins& page_layout_in_points, |
| 60 const gfx::Rect& printable_area_in_points, | 60 const gfx::Rect& printable_area_in_points, |
| 61 bool has_custom_page_size_style); | 61 bool has_custom_page_size_style); |
| 62 void OnDidGetPreviewPageCount( | 62 void OnDidGetPreviewPageCount( |
| 63 const PrintHostMsg_DidGetPreviewPageCount_Params& params); | 63 const PrintHostMsg_DidGetPreviewPageCount_Params& params); |
| 64 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); | 64 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); |
| 65 void OnMetafileReadyForPrinting( | 65 void OnMetafileReadyForPrinting( |
| 66 const PrintHostMsg_DidPreviewDocument_Params& params); | 66 const PrintHostMsg_DidPreviewDocument_Params& params); |
| 67 void OnPrintPreviewFailed(int document_cookie); | 67 void OnPrintPreviewFailed(int document_cookie, int request_id); |
| 68 void OnPrintPreviewCancelled(int document_cookie); | 68 void OnPrintPreviewCancelled(int document_cookie); |
| 69 void OnInvalidPrinterSettings(int document_cookie); | 69 void OnInvalidPrinterSettings(int document_cookie, int request_id); |
| 70 void OnSetOptionsFromDocument( | 70 void OnSetOptionsFromDocument( |
| 71 const PrintHostMsg_SetOptionsFromDocument_Params& params); | 71 const PrintHostMsg_SetOptionsFromDocument_Params& params); |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); | 73 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace printing | 76 } // namespace printing |
| 77 | 77 |
| 78 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ | 78 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ |
| OLD | NEW |