Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: chrome/browser/printing/print_preview_message_handler.h

Issue 2518993002: Make printing work for PDF and Flash. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "content/public/browser/web_contents_user_data.h" 11 #include "content/public/browser/web_contents_user_data.h"
12 12
13 class PrintPreviewUI; 13 class PrintPreviewUI;
14 struct PrintHostMsg_DidGetPreviewPageCount_Params; 14 struct PrintHostMsg_DidGetPreviewPageCount_Params;
15 struct PrintHostMsg_DidPreviewDocument_Params; 15 struct PrintHostMsg_DidPreviewDocument_Params;
16 struct PrintHostMsg_DidPreviewPage_Params; 16 struct PrintHostMsg_DidPreviewPage_Params;
17 struct PrintHostMsg_RequestPrintPreview_Params; 17 struct PrintHostMsg_RequestPrintPreview_Params;
18 struct PrintHostMsg_SetOptionsFromDocument_Params; 18 struct PrintHostMsg_SetOptionsFromDocument_Params;
19 19
20 namespace content { 20 namespace content {
21 class RenderFrameHost;
21 class WebContents; 22 class WebContents;
22 } 23 }
23 24
24 namespace gfx { 25 namespace gfx {
25 class Rect; 26 class Rect;
26 } 27 }
27 28
28 namespace printing { 29 namespace printing {
29 30
30 struct PageSizeMargins; 31 struct PageSizeMargins;
(...skipping 15 matching lines...) Expand all
46 47
47 // Gets the print preview dialog associated with the WebContents being 48 // Gets the print preview dialog associated with the WebContents being
48 // observed. 49 // observed.
49 content::WebContents* GetPrintPreviewDialog(); 50 content::WebContents* GetPrintPreviewDialog();
50 51
51 // Gets the PrintPreviewUI associated with the WebContents being observed. 52 // Gets the PrintPreviewUI associated with the WebContents being observed.
52 PrintPreviewUI* GetPrintPreviewUI(); 53 PrintPreviewUI* GetPrintPreviewUI();
53 54
54 // Message handlers. 55 // Message handlers.
55 void OnRequestPrintPreview( 56 void OnRequestPrintPreview(
57 content::RenderFrameHost* render_frame_host,
56 const PrintHostMsg_RequestPrintPreview_Params& params); 58 const PrintHostMsg_RequestPrintPreview_Params& params);
57 void OnDidGetDefaultPageLayout(const PageSizeMargins& page_layout_in_points, 59 void OnDidGetDefaultPageLayout(const PageSizeMargins& page_layout_in_points,
58 const gfx::Rect& printable_area_in_points, 60 const gfx::Rect& printable_area_in_points,
59 bool has_custom_page_size_style); 61 bool has_custom_page_size_style);
60 void OnDidGetPreviewPageCount( 62 void OnDidGetPreviewPageCount(
61 const PrintHostMsg_DidGetPreviewPageCount_Params& params); 63 const PrintHostMsg_DidGetPreviewPageCount_Params& params);
62 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); 64 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params);
63 void OnMetafileReadyForPrinting( 65 void OnMetafileReadyForPrinting(
64 const PrintHostMsg_DidPreviewDocument_Params& params); 66 const PrintHostMsg_DidPreviewDocument_Params& params);
65 void OnPrintPreviewFailed(int document_cookie); 67 void OnPrintPreviewFailed(int document_cookie);
66 void OnPrintPreviewCancelled(int document_cookie); 68 void OnPrintPreviewCancelled(int document_cookie);
67 void OnInvalidPrinterSettings(int document_cookie); 69 void OnInvalidPrinterSettings(int document_cookie);
68 void OnSetOptionsFromDocument( 70 void OnSetOptionsFromDocument(
69 const PrintHostMsg_SetOptionsFromDocument_Params& params); 71 const PrintHostMsg_SetOptionsFromDocument_Params& params);
70 72
71 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); 73 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler);
72 }; 74 };
73 75
74 } // namespace printing 76 } // namespace printing
75 77
76 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ 78 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_preview_message_handler.cc » ('j') | chrome/browser/printing/print_view_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698