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

Side by Side Diff: android_webview/browser/aw_printing_message_filter.cc

Issue 2770713003: Enable page selection for WebView printing (Closed)
Patch Set: review fixes Created 3 years, 9 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 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 #include "android_webview/browser/aw_printing_message_filter.h" 5 #include "android_webview/browser/aw_printing_message_filter.h"
6 6
7 #include "android_webview/browser/aw_print_manager.h" 7 #include "android_webview/browser/aw_print_manager.h"
8 #include "base/file_descriptor_posix.h" 8 #include "base/file_descriptor_posix.h"
9 #include "components/printing/common/print_messages.h"
10 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
11 #include "content/public/browser/render_frame_host.h" 10 #include "content/public/browser/render_frame_host.h"
12 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
13 12
14 using content::BrowserThread; 13 using content::BrowserThread;
15 using content::WebContents; 14 using content::WebContents;
16 15
17 namespace android_webview { 16 namespace android_webview {
18 17
19 namespace { 18 namespace {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 int render_frame_id, 77 int render_frame_id,
79 int sequence_number) { 78 int sequence_number) {
80 DCHECK_CURRENTLY_ON(BrowserThread::UI); 79 DCHECK_CURRENTLY_ON(BrowserThread::UI);
81 AwPrintManager* print_manager = 80 AwPrintManager* print_manager =
82 GetPrintManager(render_process_id_, render_frame_id); 81 GetPrintManager(render_process_id_, render_frame_id);
83 if (print_manager) 82 if (print_manager)
84 print_manager->PdfWritingDone(true); 83 print_manager->PdfWritingDone(true);
85 } 84 }
86 85
87 } // namespace android_webview 86 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_print_manager.cc ('k') | android_webview/java/src/org/chromium/android_webview/AwPdfExporter.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698