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

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

Issue 2510753002: Revert of Make printing work better with OOPIF. (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"
(...skipping 19 matching lines...) Expand all
30 struct PageSizeMargins; 30 struct PageSizeMargins;
31 31
32 // Manages the print preview handling for a WebContents. 32 // Manages the print preview handling for a WebContents.
33 class PrintPreviewMessageHandler 33 class PrintPreviewMessageHandler
34 : public content::WebContentsObserver, 34 : public content::WebContentsObserver,
35 public content::WebContentsUserData<PrintPreviewMessageHandler> { 35 public content::WebContentsUserData<PrintPreviewMessageHandler> {
36 public: 36 public:
37 ~PrintPreviewMessageHandler() override; 37 ~PrintPreviewMessageHandler() override;
38 38
39 // content::WebContentsObserver implementation. 39 // content::WebContentsObserver implementation.
40 bool OnMessageReceived(const IPC::Message& message, 40 bool OnMessageReceived(const IPC::Message& message) override;
41 content::RenderFrameHost* render_frame_host) override;
42 41
43 private: 42 private:
44 explicit PrintPreviewMessageHandler(content::WebContents* web_contents); 43 explicit PrintPreviewMessageHandler(content::WebContents* web_contents);
45 friend class content::WebContentsUserData<PrintPreviewMessageHandler>; 44 friend class content::WebContentsUserData<PrintPreviewMessageHandler>;
46 45
47 // Gets the print preview dialog associated with the WebContents being 46 // Gets the print preview dialog associated with the WebContents being
48 // observed. 47 // observed.
49 content::WebContents* GetPrintPreviewDialog(); 48 content::WebContents* GetPrintPreviewDialog();
50 49
51 // Gets the PrintPreviewUI associated with the WebContents being observed. 50 // Gets the PrintPreviewUI associated with the WebContents being observed.
(...skipping 15 matching lines...) Expand all
67 void OnInvalidPrinterSettings(int document_cookie); 66 void OnInvalidPrinterSettings(int document_cookie);
68 void OnSetOptionsFromDocument( 67 void OnSetOptionsFromDocument(
69 const PrintHostMsg_SetOptionsFromDocument_Params& params); 68 const PrintHostMsg_SetOptionsFromDocument_Params& params);
70 69
71 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); 70 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler);
72 }; 71 };
73 72
74 } // namespace printing 73 } // namespace printing
75 74
76 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ 75 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698