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

Issue 23116003: Adds PrintingContext implementation stub for Android. (Closed)

Created:
7 years, 4 months ago by cimamoglu (inactive)
Modified:
7 years, 4 months ago
CC:
Miguel Garcia, gene, Vitaly Buka (NO REVIEWS), klobag.chromium, kerz_chromium, selim, karen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adds PrintingContext implementation stub for Android. BUG=147070 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218339

Patch Set 1 #

Total comments: 9

Patch Set 2 : Adds printing support for Chrome for Android. #

Total comments: 28

Patch Set 3 : Addresses review issues. Adds stub methods for testshell and unittests targets #

Total comments: 13

Patch Set 4 : Addresses code reviews. Disables printing for WebView #

Total comments: 7

Patch Set 5 : Addresses code review issues. Solves infinite recursion bug. Improves the interface between Java an… #

Total comments: 24

Patch Set 6 : Addresses review comments. #

Patch Set 7 : Fixes some build targets and try bots. Some other nits. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -40 lines) Patch
M build/common.gypi View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M chrome/android/testshell/testshell_stubs.cc View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/android/tab_android_test_stubs.cc View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_view_manager_base.h View 1 2 3 4 5 6 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_view_manager_base.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_view_manager_basic.h View 1 2 3 4 5 6 3 chunks +29 lines, -1 line 0 comments Download
M chrome/browser/printing/print_view_manager_basic.cc View 1 2 3 4 5 6 2 chunks +31 lines, -1 line 2 comments Download
M chrome/browser/printing/printing_message_filter.h View 1 2 3 4 1 chunk +12 lines, -2 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.cc View 1 2 3 4 5 7 chunks +64 lines, -3 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/print_messages.h View 1 2 1 chunk +5 lines, -4 lines 1 comment Download
M chrome/renderer/chrome_mock_render_thread.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_mock_render_thread.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/printing/print_web_view_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/printing/print_web_view_helper.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A chrome/renderer/printing/print_web_view_helper_android.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/renderer/printing/print_web_view_helper_linux.cc View 1 2 3 chunks +8 lines, -6 lines 0 comments Download
A + printing/image_android.cc View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M printing/image_linux.cc View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M printing/metafile.h View 2 chunks +3 lines, -3 lines 0 comments Download
M printing/pdf_metafile_skia.h View 1 chunk +2 lines, -2 lines 0 comments Download
M printing/pdf_metafile_skia.cc View 1 chunk +1 line, -1 line 0 comments Download
M printing/printed_document.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M printing/printing.gyp View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 1 comment Download
A printing/printing_context_android.h View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
M skia/skia_chrome.gypi View 1 chunk +1 line, -1 line 0 comments Download
M skia/skia_library.gypi View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (0 generated)
cimamoglu1
7 years, 4 months ago (2013-08-13 20:37:13 UTC) #1
Lei Zhang
https://codereview.chromium.org/23116003/diff/2001/chrome/browser/printing/print_view_manager_basic.cc File chrome/browser/printing/print_view_manager_basic.cc (right): https://codereview.chromium.org/23116003/diff/2001/chrome/browser/printing/print_view_manager_basic.cc#newcode18 chrome/browser/printing/print_view_manager_basic.cc:18: file_descriptor_(-1, false) The FileDescriptor() version of the ctor does ...
7 years, 4 months ago (2013-08-13 23:26:37 UTC) #2
whywhat
Thanks for the quick review! https://codereview.chromium.org/23116003/diff/2001/printing/printing.gyp File printing/printing.gyp (right): https://codereview.chromium.org/23116003/diff/2001/printing/printing.gyp#newcode233 printing/printing.gyp:233: 'printing_context_android.h', On 2013/08/13 23:26:37, ...
7 years, 4 months ago (2013-08-13 23:38:48 UTC) #3
cimamoglu1
https://chromiumcodereview.appspot.com/23116003/diff/2001/chrome/browser/printing/print_view_manager_basic.cc File chrome/browser/printing/print_view_manager_basic.cc (right): https://chromiumcodereview.appspot.com/23116003/diff/2001/chrome/browser/printing/print_view_manager_basic.cc#newcode18 chrome/browser/printing/print_view_manager_basic.cc:18: file_descriptor_(-1, false) On 2013/08/13 23:26:37, Lei Zhang wrote: > ...
7 years, 4 months ago (2013-08-14 16:10:36 UTC) #4
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/23116003/diff/18001/chrome/renderer/printing/print_web_view_helper_android.cc File chrome/renderer/printing/print_web_view_helper_android.cc (right): https://codereview.chromium.org/23116003/diff/18001/chrome/renderer/printing/print_web_view_helper_android.cc#newcode1 chrome/renderer/printing/print_web_view_helper_android.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 4 months ago (2013-08-14 16:23:42 UTC) #5
whywhat
https://codereview.chromium.org/23116003/diff/18001/chrome/renderer/printing/print_web_view_helper_android.cc File chrome/renderer/printing/print_web_view_helper_android.cc (right): https://codereview.chromium.org/23116003/diff/18001/chrome/renderer/printing/print_web_view_helper_android.cc#newcode7 chrome/renderer/printing/print_web_view_helper_android.cc:7: #include "chrome/renderer/printing/print_web_view_helper_linux.cc" On 2013/08/14 16:23:42, Vitaly Buka wrote: > ...
7 years, 4 months ago (2013-08-14 16:28:22 UTC) #6
Lei Zhang
https://codereview.chromium.org/23116003/diff/18001/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): https://codereview.chromium.org/23116003/diff/18001/chrome/browser/printing/printing_message_filter.cc#newcode190 chrome/browser/printing/printing_message_filter.cc:190: temp_file_fd->fd = print_view_manager->GetFileDescriptor().fd; I don't know what the exact ...
7 years, 4 months ago (2013-08-14 18:49:52 UTC) #7
cimamoglu1
https://codereview.chromium.org/23116003/diff/18001/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): https://codereview.chromium.org/23116003/diff/18001/chrome/browser/printing/printing_message_filter.cc#newcode190 chrome/browser/printing/printing_message_filter.cc:190: temp_file_fd->fd = print_view_manager->GetFileDescriptor().fd; On 2013/08/14 18:49:52, Lei Zhang wrote: ...
7 years, 4 months ago (2013-08-14 20:38:09 UTC) #8
Lei Zhang
+tsepez for chrome/common/print_messages.h. Do you remember why we used a sequence number instead of just ...
7 years, 4 months ago (2013-08-14 20:55:46 UTC) #9
Tom Sepez
On 2013/08/14 20:55:46, Lei Zhang wrote: > +tsepez for chrome/common/print_messages.h. Do you remember why we ...
7 years, 4 months ago (2013-08-14 21:07:10 UTC) #10
Lei Zhang
On 2013/08/14 21:07:10, Tom Sepez wrote: > On 2013/08/14 20:55:46, Lei Zhang wrote: > > ...
7 years, 4 months ago (2013-08-15 01:25:22 UTC) #11
Lei Zhang
https://codereview.chromium.org/23116003/diff/39001/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): https://codereview.chromium.org/23116003/diff/39001/chrome/browser/printing/printing_message_filter.cc#newcode189 chrome/browser/printing/printing_message_filter.cc:189: temp_file_fd->auto_close = false; So after you hand off the ...
7 years, 4 months ago (2013-08-15 01:31:05 UTC) #12
tomhudson
Skia gypi changes LGTM
7 years, 4 months ago (2013-08-15 13:04:35 UTC) #13
cimamoglu1
I may have found a nasty bug that affects us (and very probably Chrome OS). ...
7 years, 4 months ago (2013-08-15 18:36:13 UTC) #14
whywhat
Some nits I've got while going through the change. Feel free to ignore it if ...
7 years, 4 months ago (2013-08-15 20:19:56 UTC) #15
whywhat
https://codereview.chromium.org/23116003/diff/39001/chrome/browser/printing/print_view_manager_basic.h File chrome/browser/printing/print_view_manager_basic.h (right): https://codereview.chromium.org/23116003/diff/39001/chrome/browser/printing/print_view_manager_basic.h#newcode26 chrome/browser/printing/print_view_manager_basic.h:26: void SetFileDescriptor(const base::FileDescriptor& file_descriptor); It's currently unclear how we ...
7 years, 4 months ago (2013-08-15 22:41:42 UTC) #16
Lei Zhang
https://codereview.chromium.org/23116003/diff/39001/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): https://codereview.chromium.org/23116003/diff/39001/chrome/browser/printing/printing_message_filter.cc#newcode189 chrome/browser/printing/printing_message_filter.cc:189: temp_file_fd->auto_close = false; On 2013/08/15 22:41:43, whywhat wrote: > ...
7 years, 4 months ago (2013-08-15 23:18:01 UTC) #17
whywhat
On 2013/08/15 23:18:01, Lei Zhang wrote: > https://codereview.chromium.org/23116003/diff/39001/chrome/browser/printing/printing_message_filter.cc > File chrome/browser/printing/printing_message_filter.cc (right): > > https://codereview.chromium.org/23116003/diff/39001/chrome/browser/printing/printing_message_filter.cc#newcode189 ...
7 years, 4 months ago (2013-08-16 00:58:28 UTC) #18
Lei Zhang
On 2013/08/16 00:58:28, whywhat wrote: > On 2013/08/15 23:18:01, Lei Zhang wrote: > > > ...
7 years, 4 months ago (2013-08-16 01:03:15 UTC) #19
whywhat
On 2013/08/16 01:03:15, Lei Zhang wrote: > On 2013/08/16 00:58:28, whywhat wrote: > > On ...
7 years, 4 months ago (2013-08-16 01:24:55 UTC) #20
Lei Zhang
On 2013/08/15 18:36:13, cimamoglu1 wrote: > I may have found a nasty bug that affects ...
7 years, 4 months ago (2013-08-16 02:29:11 UTC) #21
cimamoglu1
On 2013/08/16 02:29:11, Lei Zhang wrote: > On 2013/08/15 18:36:13, cimamoglu1 wrote: > > I ...
7 years, 4 months ago (2013-08-16 17:20:06 UTC) #22
cimamoglu1
https://codereview.chromium.org/23116003/diff/1/chrome/browser/printing/print_view_manager_basic.h File chrome/browser/printing/print_view_manager_basic.h (right): https://codereview.chromium.org/23116003/diff/1/chrome/browser/printing/print_view_manager_basic.h#newcode26 chrome/browser/printing/print_view_manager_basic.h:26: void SetFileDescriptor(const base::FileDescriptor& file_descriptor); On 2013/08/15 20:19:56, whywhat wrote: ...
7 years, 4 months ago (2013-08-16 17:20:37 UTC) #23
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/23116003/diff/18001/chrome/renderer/printing/print_web_view_helper_android.cc File chrome/renderer/printing/print_web_view_helper_android.cc (right): https://codereview.chromium.org/23116003/diff/18001/chrome/renderer/printing/print_web_view_helper_android.cc#newcode7 chrome/renderer/printing/print_web_view_helper_android.cc:7: #include "chrome/renderer/printing/print_web_view_helper_linux.cc" Probably better solution is to rename print_web_view_helper_linux.cc ...
7 years, 4 months ago (2013-08-16 17:27:45 UTC) #24
whywhat
Some additional nits. https://codereview.chromium.org/23116003/diff/18001/chrome/renderer/printing/print_web_view_helper_android.cc File chrome/renderer/printing/print_web_view_helper_android.cc (right): https://codereview.chromium.org/23116003/diff/18001/chrome/renderer/printing/print_web_view_helper_android.cc#newcode7 chrome/renderer/printing/print_web_view_helper_android.cc:7: #include "chrome/renderer/printing/print_web_view_helper_linux.cc" On 2013/08/16 17:27:47, Vitaly ...
7 years, 4 months ago (2013-08-16 23:31:36 UTC) #25
Lei Zhang
https://codereview.chromium.org/23116003/diff/64001/chrome/browser/printing/print_view_manager_base.h File chrome/browser/printing/print_view_manager_base.h (right): https://codereview.chromium.org/23116003/diff/64001/chrome/browser/printing/print_view_manager_base.h#newcode60 chrome/browser/printing/print_view_manager_base.h:60: virtual void OnPrintingFailed(int cookie); On 2013/08/16 23:31:36, whywhat wrote: ...
7 years, 4 months ago (2013-08-18 09:56:25 UTC) #26
cimamoglu1
Thanks for all the comments. I tried to address them (most were minor issues this ...
7 years, 4 months ago (2013-08-19 13:47:26 UTC) #27
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/23116003/diff/89001/chrome/browser/printing/print_view_manager_basic.cc File chrome/browser/printing/print_view_manager_basic.cc (right): https://codereview.chromium.org/23116003/diff/89001/chrome/browser/printing/print_view_manager_basic.cc#newcode28 chrome/browser/printing/print_view_manager_basic.cc:28: PrintViewManagerBase::RenderProcessGone(status); class PrintViewManagerAndroid : public PrintViewManagerBasic print_view_manager_android.h + ...
7 years, 4 months ago (2013-08-19 16:14:18 UTC) #28
Lei Zhang
lgtm https://codereview.chromium.org/23116003/diff/64001/chrome/browser/printing/print_view_manager_basic.cc File chrome/browser/printing/print_view_manager_basic.cc (right): https://codereview.chromium.org/23116003/diff/64001/chrome/browser/printing/print_view_manager_basic.cc#newcode25 chrome/browser/printing/print_view_manager_basic.cc:25: void PrintViewManagerBasic::RenderProcessGone(base::TerminationStatus status) { On 2013/08/18 09:56:26, Lei ...
7 years, 4 months ago (2013-08-19 21:02:14 UTC) #29
whywhat
On 2013/08/19 21:02:14, Lei Zhang wrote: > lgtm > > https://codereview.chromium.org/23116003/diff/64001/chrome/browser/printing/print_view_manager_basic.cc > File chrome/browser/printing/print_view_manager_basic.cc (right): ...
7 years, 4 months ago (2013-08-19 21:41:50 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cimamoglu@chromium.org/23116003/89001
7 years, 4 months ago (2013-08-19 21:46:16 UTC) #31
whywhat
Submitted with https://codereview.chromium.org/22999026 Decided not to merge it today, so should be able to follow ...
7 years, 4 months ago (2013-08-19 23:34:15 UTC) #32
Jorge Lucangeli Obes
On 2013/08/19 23:34:15, whywhat wrote: > Submitted with https://codereview.chromium.org/22999026 > Decided not to merge it ...
7 years, 4 months ago (2013-08-19 23:47:56 UTC) #33
whywhat
On 2013/08/19 23:47:56, Jorge Lucangeli Obes wrote: > On 2013/08/19 23:34:15, whywhat wrote: > > ...
7 years, 4 months ago (2013-08-19 23:50:13 UTC) #34
Jorge Lucangeli Obes
On 2013/08/19 23:50:13, whywhat wrote: > On 2013/08/19 23:47:56, Jorge Lucangeli Obes wrote: > > ...
7 years, 4 months ago (2013-08-19 23:54:44 UTC) #35
commit-bot: I haz the power
7 years, 4 months ago (2013-08-20 11:40:40 UTC) #36

Powered by Google App Engine
This is Rietveld 408576698