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

Side by Side Diff: android_webview/browser/aw_print_manager.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
« no previous file with comments | « no previous file | android_webview/browser/aw_print_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/printing/browser/print_manager.h" 9 #include "components/printing/browser/print_manager.h"
10 #include "content/public/browser/web_contents_user_data.h" 10 #include "content/public/browser/web_contents_user_data.h"
(...skipping 17 matching lines...) Expand all
28 bool PrintNow(); 28 bool PrintNow();
29 29
30 private: 30 private:
31 friend class content::WebContentsUserData<AwPrintManager>; 31 friend class content::WebContentsUserData<AwPrintManager>;
32 32
33 AwPrintManager(content::WebContents* contents, 33 AwPrintManager(content::WebContents* contents,
34 const printing::PrintSettings& settings, 34 const printing::PrintSettings& settings,
35 const base::FileDescriptor& file_descriptor, 35 const base::FileDescriptor& file_descriptor,
36 const PdfWritingDoneCallback& callback); 36 const PdfWritingDoneCallback& callback);
37 37
38 bool OnMessageReceived(const IPC::Message& message) override; 38 // printing::PrintManager:
39 void OnGetDefaultPrintSettings(IPC::Message* reply_msg); 39 bool OnMessageReceived(const IPC::Message& message,
40 content::RenderFrameHost* render_frame_host) override;
41
42 // IPC Handlers
43 void OnGetDefaultPrintSettings(content::RenderFrameHost* render_frame_host,
44 IPC::Message* reply_msg);
40 45
41 printing::PrintSettings settings_; 46 printing::PrintSettings settings_;
42 47
43 DISALLOW_COPY_AND_ASSIGN(AwPrintManager); 48 DISALLOW_COPY_AND_ASSIGN(AwPrintManager);
44 }; 49 };
45 50
46 } // namespace android_webview 51 } // namespace android_webview
47 52
48 #endif // ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_ 53 #endif // ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_print_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698