| 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 "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
| 10 #include "content/public/browser/web_contents_user_data.h" | 10 #include "content/public/browser/web_contents_user_data.h" |
| 11 | 11 |
| 12 class PrintPreviewUI; | 12 class PrintPreviewUI; |
| 13 struct PrintHostMsg_DidGetPreviewPageCount_Params; | 13 struct PrintHostMsg_DidGetPreviewPageCount_Params; |
| 14 struct PrintHostMsg_DidPreviewDocument_Params; | 14 struct PrintHostMsg_DidPreviewDocument_Params; |
| 15 struct PrintHostMsg_DidPreviewPage_Params; | 15 struct PrintHostMsg_DidPreviewPage_Params; |
| 16 struct PrintHostMsg_RequestPrintPreview_Params; | 16 struct PrintHostMsg_RequestPrintPreview_Params; |
| 17 struct PrintHostMsg_SetOptionsFromDocument_Params; |
| 17 | 18 |
| 18 namespace content { | 19 namespace content { |
| 19 class WebContents; | 20 class WebContents; |
| 20 } | 21 } |
| 21 | 22 |
| 22 namespace gfx { | 23 namespace gfx { |
| 23 class Rect; | 24 class Rect; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace printing { | 27 namespace printing { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 56 const gfx::Rect& printable_area_in_points, | 57 const gfx::Rect& printable_area_in_points, |
| 57 bool has_custom_page_size_style); | 58 bool has_custom_page_size_style); |
| 58 void OnDidGetPreviewPageCount( | 59 void OnDidGetPreviewPageCount( |
| 59 const PrintHostMsg_DidGetPreviewPageCount_Params& params); | 60 const PrintHostMsg_DidGetPreviewPageCount_Params& params); |
| 60 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); | 61 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); |
| 61 void OnMetafileReadyForPrinting( | 62 void OnMetafileReadyForPrinting( |
| 62 const PrintHostMsg_DidPreviewDocument_Params& params); | 63 const PrintHostMsg_DidPreviewDocument_Params& params); |
| 63 void OnPrintPreviewFailed(int document_cookie); | 64 void OnPrintPreviewFailed(int document_cookie); |
| 64 void OnPrintPreviewCancelled(int document_cookie); | 65 void OnPrintPreviewCancelled(int document_cookie); |
| 65 void OnInvalidPrinterSettings(int document_cookie); | 66 void OnInvalidPrinterSettings(int document_cookie); |
| 66 void OnPrintPreviewScalingDisabled(); | 67 void OnSetOptionsFromDocument( |
| 68 const PrintHostMsg_SetOptionsFromDocument_Params& params); |
| 67 | 69 |
| 68 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); | 70 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 } // namespace printing | 73 } // namespace printing |
| 72 | 74 |
| 73 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ | 75 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ |
| OLD | NEW |