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

Issue 2426503002: Make printing work better with OOPIF. (Closed)

Created:
4 years, 2 months ago by Lei Zhang
Modified:
4 years, 1 month ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make printing work better with OOPIF. BUG=631513 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/aaa2bba38197c0bcaa7cbcf15281ef4f9d568818 Cr-Commit-Position: refs/heads/master@{#432353}

Patch Set 1 #

Patch Set 2 : Fix build, fix some tests #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : Address nasko comments #

Patch Set 5 : Take more suggestions from nasko #

Patch Set 6 : Fix PrerenderBrowserTest #

Patch Set 7 : Fix build, nits #

Total comments: 39

Patch Set 8 : Fix IPC sending, fix Android, address nits, slight rebase #

Patch Set 9 : rebase #

Patch Set 10 : rebase, many cleanups have been committed #

Total comments: 1

Patch Set 11 : Add new IPC macro to make params works for delayed replies, rebase #

Patch Set 12 : Fix more TODOs #

Patch Set 13 : Check GetFrameToPrint and remove another TODO #

Total comments: 12

Patch Set 14 : Address nits #

Patch Set 15 : Use the RPH for a given RFH in PrintViewManager::OnSetupScriptedPrintPreview() #

Patch Set 16 : rebase #

Patch Set 17 : Better plumbing in AwPrintManager #

Unified diffs Side-by-side diffs Delta from patch set Stats (+506 lines, -338 lines) Patch
M android_webview/browser/aw_print_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -2 lines 0 comments Download
M android_webview/browser/aw_print_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +13 lines, -7 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -4 lines 0 comments Download
M android_webview/renderer/aw_print_web_view_helper_delegate.h View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M android_webview/renderer/aw_print_web_view_helper_delegate.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M android_webview/renderer/print_render_frame_observer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_preview_dialog_controller_browsertest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_preview_dialog_controller_unittest.cc View 1 10 chunks +17 lines, -11 lines 0 comments Download
M chrome/browser/printing/print_preview_message_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_preview_message_handler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_view_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +16 lines, -11 lines 0 comments Download
M chrome/browser/printing/print_view_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +60 lines, -29 lines 0 comments Download
M chrome/browser/printing/print_view_manager_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +21 lines, -10 lines 0 comments Download
M chrome/browser/printing/print_view_manager_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 12 chunks +67 lines, -43 lines 0 comments Download
M chrome/browser/printing/print_view_manager_common.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/printing/print_view_manager_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +38 lines, -6 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -7 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +15 lines, -20 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/applescript/tab_applescript.mm View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 4 5 6 7 8 9 5 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui_unittest.cc View 1 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/renderer/chrome_render_frame_observer.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/pepper/chrome_pdf_print_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/renderer/printing/chrome_print_web_view_helper_delegate.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -7 lines 0 comments Download
M components/printing/browser/print_manager.h View 1 chunk +3 lines, -2 lines 0 comments Download
M components/printing/browser/print_manager.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M components/printing/common/print_messages.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -17 lines 0 comments Download
M components/printing/renderer/print_web_view_helper.h View 1 2 3 4 5 6 7 8 9 chunks +19 lines, -23 lines 0 comments Download
M components/printing/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 chunks +54 lines, -70 lines 0 comments Download
M components/printing/test/print_test_content_renderer_client.h View 1 chunk +1 line, -1 line 0 comments Download
M components/printing/test/print_test_content_renderer_client.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -6 lines 0 comments Download
M components/printing/test/print_web_view_helper_browsertest.cc View 1 2 3 4 5 6 7 8 7 chunks +17 lines, -12 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -0 lines 0 comments Download
M content/public/browser/render_frame_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/renderer/render_frame_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/renderer/render_view_observer.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_message_macros.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +17 lines, -0 lines 0 comments Download
M ipc/ipc_message_templates.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +25 lines, -2 lines 0 comments Download

Messages

Total messages: 82 (48 generated)
nasko
I haven't read the full CL, but a comment on the RenderFrameObserver changes. https://codereview.chromium.org/2426503002/diff/20001/components/printing/common/print_messages.h File ...
4 years, 1 month ago (2016-10-27 20:26:26 UTC) #11
Lei Zhang
Synced and added some more suggestions from nasko. Most likely still needs a bit of ...
4 years, 1 month ago (2016-10-28 23:27:10 UTC) #15
nasko
Thanks Lei on pushing this forward. It is starting to shape up pretty well! Some ...
4 years, 1 month ago (2016-11-02 04:50:37 UTC) #24
Lei Zhang
nasko: I'll make a pass and move cleanups to a separate CL. There's no test ...
4 years, 1 month ago (2016-11-02 22:09:39 UTC) #25
Ken Rockot(use gerrit already)
On 2016/11/02 at 22:09:39, thestig wrote: > nasko: I'll make a pass and move cleanups ...
4 years, 1 month ago (2016-11-02 22:25:55 UTC) #26
Lei Zhang
On 2016/11/02 22:25:55, Ken Rockot wrote: > It's kind of impossible for the IPC mechanism ...
4 years, 1 month ago (2016-11-02 22:29:08 UTC) #27
Ken Rockot(use gerrit already)
On 2016/11/02 at 22:25:55, Ken Rockot wrote: > On 2016/11/02 at 22:09:39, thestig wrote: > ...
4 years, 1 month ago (2016-11-02 22:32:55 UTC) #28
Lei Zhang
On 2016/11/02 22:32:55, Ken Rockot wrote: > It looks like the reply in this case ...
4 years, 1 month ago (2016-11-02 22:42:35 UTC) #29
nasko
On 2016/11/02 22:42:35, Lei Zhang wrote: > On 2016/11/02 22:32:55, Ken Rockot wrote: > > ...
4 years, 1 month ago (2016-11-07 19:44:02 UTC) #30
Lei Zhang
On 2016/11/07 19:44:02, nasko wrote: > On 2016/11/02 22:42:35, Lei Zhang wrote: > > On ...
4 years, 1 month ago (2016-11-07 19:48:30 UTC) #31
Lei Zhang
https://codereview.chromium.org/2426503002/diff/120001/android_webview/renderer/print_render_frame_observer.cc File android_webview/renderer/print_render_frame_observer.cc (right): https://codereview.chromium.org/2426503002/diff/120001/android_webview/renderer/print_render_frame_observer.cc#newcode38 android_webview/renderer/print_render_frame_observer.cc:38: helper->PrintNode(render_frame()->GetWebFrame()->contextMenuNode()); On 2016/11/02 04:50:37, nasko wrote: > I hope ...
4 years, 1 month ago (2016-11-08 11:13:22 UTC) #33
nasko
Just some minor comments. How far is this CL now? What else needs to be ...
4 years, 1 month ago (2016-11-08 22:18:35 UTC) #38
Lei Zhang
On 2016/11/08 22:18:35, nasko wrote: > Just some minor comments. How far is this CL ...
4 years, 1 month ago (2016-11-08 22:38:40 UTC) #39
nasko
On 2016/11/08 22:38:40, Lei Zhang (slow) wrote: > On 2016/11/08 22:18:35, nasko wrote: > > ...
4 years, 1 month ago (2016-11-09 20:22:27 UTC) #40
Lei Zhang
I still have some TODOs to look into and try to write tests. https://codereview.chromium.org/2426503002/diff/120001/chrome/browser/printing/print_view_manager.cc File ...
4 years, 1 month ago (2016-11-11 21:06:48 UTC) #41
Łukasz Anforowicz
https://codereview.chromium.org/2426503002/diff/120001/components/printing/test/print_web_view_helper_browsertest.cc File components/printing/test/print_web_view_helper_browsertest.cc (right): https://codereview.chromium.org/2426503002/diff/120001/components/printing/test/print_web_view_helper_browsertest.cc#newcode262 components/printing/test/print_web_view_helper_browsertest.cc:262: content::RenderFrame::FromWebFrame(GetMainFrame())); On 2016/11/11 21:06:48, Lei Zhang (slow) wrote: > ...
4 years, 1 month ago (2016-11-11 21:29:02 UTC) #43
Lei Zhang
https://codereview.chromium.org/2426503002/diff/120001/chrome/browser/printing/print_view_manager_common.cc File chrome/browser/printing/print_view_manager_common.cc (right): https://codereview.chromium.org/2426503002/diff/120001/chrome/browser/printing/print_view_manager_common.cc#newcode120 chrome/browser/printing/print_view_manager_common.cc:120: : contents->GetMainFrame(); On 2016/11/08 11:13:22, Lei Zhang (slow) wrote: ...
4 years, 1 month ago (2016-11-12 00:03:19 UTC) #45
Lei Zhang
I'm just working on new tests now. So PTAL.
4 years, 1 month ago (2016-11-12 00:59:38 UTC) #47
nasko
This is looking awesome! I have mostly nits and only one question about possible correctness ...
4 years, 1 month ago (2016-11-14 20:28:52 UTC) #50
Lei Zhang
https://codereview.chromium.org/2426503002/diff/260001/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (right): https://codereview.chromium.org/2426503002/diff/260001/chrome/browser/printing/print_view_manager.cc#newcode178 chrome/browser/printing/print_view_manager.cc:178: content::RenderProcessHost* rph = web_contents()->GetRenderProcessHost(); On 2016/11/14 20:28:52, nasko (out ...
4 years, 1 month ago (2016-11-14 23:52:48 UTC) #52
nasko
Awesome! LGTM. I'd leave it up to you whether tests are added in this CL ...
4 years, 1 month ago (2016-11-15 01:10:08 UTC) #53
Lei Zhang
On 2016/11/15 01:10:08, nasko (out until Nov 17) wrote: > Awesome! LGTM. I'd leave it ...
4 years, 1 month ago (2016-11-15 01:35:34 UTC) #54
Lei Zhang
+rockot again to review ipc/ changes. IPC_MESSAGE_HANDLER_WITH_PARAM_DELAY_REPLY is used in chrome/browser/printing/print_view_manager.cc - refer to patch ...
4 years, 1 month ago (2016-11-15 01:37:17 UTC) #56
Lei Zhang
Test CL is https://codereview.chromium.org/2496203003/ for anyone that's interested.
4 years, 1 month ago (2016-11-15 03:10:10 UTC) #59
Ken Rockot(use gerrit already)
ipc lgtm
4 years, 1 month ago (2016-11-15 17:52:48 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2426503002/320001
4 years, 1 month ago (2016-11-15 18:40:48 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/304575)
4 years, 1 month ago (2016-11-15 18:55:10 UTC) #66
Lei Zhang
+sgurun for android_webview/
4 years, 1 month ago (2016-11-15 19:11:03 UTC) #68
sgurun-gerrit only
On 2016/11/15 19:11:03, Lei Zhang (not reviewing code) wrote: > +sgurun for android_webview/ lgtm
4 years, 1 month ago (2016-11-15 23:19:24 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2426503002/340001
4 years, 1 month ago (2016-11-16 01:07:25 UTC) #76
commit-bot: I haz the power
Committed patchset #17 (id:340001)
4 years, 1 month ago (2016-11-16 02:07:28 UTC) #78
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/aaa2bba38197c0bcaa7cbcf15281ef4f9d568818 Cr-Commit-Position: refs/heads/master@{#432353}
4 years, 1 month ago (2016-11-16 02:09:43 UTC) #80
sgurun-gerrit only
A revert of this CL (patchset #17 id:340001) has been created in https://codereview.chromium.org/2510753002/ by sgurun@chromium.org. ...
4 years, 1 month ago (2016-11-16 16:11:39 UTC) #81
Lei Zhang
4 years, 1 month ago (2016-11-17 03:25:17 UTC) #82
Message was sent while issue was closed.
Next attempt is https://codereview.chromium.org/2508923003

Powered by Google App Engine
This is Rietveld 408576698