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

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

Issue 2508923003: Make printing work better with OOPIF. (try 2) (Closed)
Patch Set: Fix android_webview 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) override; 40 bool OnMessageReceived(const IPC::Message& message,
41 content::RenderFrameHost* render_frame_host) override;
41 42
42 private: 43 private:
43 explicit PrintPreviewMessageHandler(content::WebContents* web_contents); 44 explicit PrintPreviewMessageHandler(content::WebContents* web_contents);
44 friend class content::WebContentsUserData<PrintPreviewMessageHandler>; 45 friend class content::WebContentsUserData<PrintPreviewMessageHandler>;
45 46
46 // Gets the print preview dialog associated with the WebContents being 47 // Gets the print preview dialog associated with the WebContents being
47 // observed. 48 // observed.
48 content::WebContents* GetPrintPreviewDialog(); 49 content::WebContents* GetPrintPreviewDialog();
49 50
50 // Gets the PrintPreviewUI associated with the WebContents being observed. 51 // Gets the PrintPreviewUI associated with the WebContents being observed.
(...skipping 15 matching lines...) Expand all
66 void OnInvalidPrinterSettings(int document_cookie); 67 void OnInvalidPrinterSettings(int document_cookie);
67 void OnSetOptionsFromDocument( 68 void OnSetOptionsFromDocument(
68 const PrintHostMsg_SetOptionsFromDocument_Params& params); 69 const PrintHostMsg_SetOptionsFromDocument_Params& params);
69 70
70 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); 71 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler);
71 }; 72 };
72 73
73 } // namespace printing 74 } // namespace printing
74 75
75 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ 76 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698