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

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

Issue 8585017: PrintPreview: Honor the print media page size and margin values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added one more test Created 8 years, 11 months 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 | Annotate | Revision Log
OLDNEW
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_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 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
(...skipping 28 matching lines...) Expand all
39 // Helper function to return the TabContentsWrapper for web_contents(). 39 // Helper function to return the TabContentsWrapper for web_contents().
40 TabContentsWrapper* tab_contents_wrapper(); 40 TabContentsWrapper* tab_contents_wrapper();
41 41
42 // Common code between failure handlers. Returns a PrintPreviewUI* if there 42 // Common code between failure handlers. Returns a PrintPreviewUI* if there
43 // exists a PrintPreviewUI to send messages to. 43 // exists a PrintPreviewUI to send messages to.
44 PrintPreviewUI* OnFailure(int document_cookie); 44 PrintPreviewUI* OnFailure(int document_cookie);
45 45
46 // Message handlers. 46 // Message handlers.
47 void OnRequestPrintPreview(bool source_is_modifiable); 47 void OnRequestPrintPreview(bool source_is_modifiable);
48 void OnDidGetDefaultPageLayout( 48 void OnDidGetDefaultPageLayout(
49 const printing::PageSizeMargins& page_layout_in_points); 49 const printing::PageSizeMargins& page_layout_in_points,
50 bool has_custom_page_size_style);
50 void OnDidGetPreviewPageCount( 51 void OnDidGetPreviewPageCount(
51 const PrintHostMsg_DidGetPreviewPageCount_Params& params); 52 const PrintHostMsg_DidGetPreviewPageCount_Params& params);
52 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); 53 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params);
53 void OnMetafileReadyForPrinting( 54 void OnMetafileReadyForPrinting(
54 const PrintHostMsg_DidPreviewDocument_Params& params); 55 const PrintHostMsg_DidPreviewDocument_Params& params);
55 void OnPrintPreviewFailed(int document_cookie); 56 void OnPrintPreviewFailed(int document_cookie);
56 void OnPrintPreviewCancelled(int document_cookie); 57 void OnPrintPreviewCancelled(int document_cookie);
57 void OnInvalidPrinterSettings(int document_cookie); 58 void OnInvalidPrinterSettings(int document_cookie);
58 59
59 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); 60 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler);
60 }; 61 };
61 62
62 } // namespace printing 63 } // namespace printing
63 64
64 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ 65 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud.cc ('k') | chrome/browser/printing/print_preview_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698