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

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

Issue 1232783007: Cleanup: Fix some misc nits in printing code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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 "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"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // Gets the print preview dialog associated with the WebContents being 45 // Gets the print preview dialog associated with the WebContents being
46 // observed. 46 // observed.
47 content::WebContents* GetPrintPreviewDialog(); 47 content::WebContents* GetPrintPreviewDialog();
48 48
49 // Gets the PrintPreviewUI associated with the WebContents being observed. 49 // Gets the PrintPreviewUI associated with the WebContents being observed.
50 PrintPreviewUI* GetPrintPreviewUI(); 50 PrintPreviewUI* GetPrintPreviewUI();
51 51
52 // Message handlers. 52 // Message handlers.
53 void OnRequestPrintPreview( 53 void OnRequestPrintPreview(
54 const PrintHostMsg_RequestPrintPreview_Params& params); 54 const PrintHostMsg_RequestPrintPreview_Params& params);
55 void OnDidGetDefaultPageLayout( 55 void OnDidGetDefaultPageLayout(const PageSizeMargins& page_layout_in_points,
56 const printing::PageSizeMargins& page_layout_in_points, 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);
59 void OnDidGetPreviewPageCount( 58 void OnDidGetPreviewPageCount(
60 const PrintHostMsg_DidGetPreviewPageCount_Params& params); 59 const PrintHostMsg_DidGetPreviewPageCount_Params& params);
61 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); 60 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params);
62 void OnMetafileReadyForPrinting( 61 void OnMetafileReadyForPrinting(
63 const PrintHostMsg_DidPreviewDocument_Params& params); 62 const PrintHostMsg_DidPreviewDocument_Params& params);
64 void OnPrintPreviewFailed(int document_cookie); 63 void OnPrintPreviewFailed(int document_cookie);
65 void OnPrintPreviewCancelled(int document_cookie); 64 void OnPrintPreviewCancelled(int document_cookie);
66 void OnInvalidPrinterSettings(int document_cookie); 65 void OnInvalidPrinterSettings(int document_cookie);
67 void OnSetOptionsFromDocument( 66 void OnSetOptionsFromDocument(
68 const PrintHostMsg_SetOptionsFromDocument_Params& params); 67 const PrintHostMsg_SetOptionsFromDocument_Params& params);
69 68
70 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); 69 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler);
71 }; 70 };
72 71
73 } // namespace printing 72 } // namespace printing
74 73
75 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ 74 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698