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

Issue 345123002: Add support to extract viewer preference (Closed)

Created:
6 years, 6 months ago by Nikhil
Modified:
6 years, 4 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Visibility:
Public.

Description

Add support to extract viewer preference This change adds the support to extract "NumCopies", "PrintPageRange", "Duplex" viewer preferences for printing. BUG=169120

Patch Set 1 #

Patch Set 2 : Added more getters #

Total comments: 4

Patch Set 3 : Review feedback #

Total comments: 19

Patch Set 4 : Review feedback #

Total comments: 7

Patch Set 5 : Revieew feedback (move enum to fpdfsdk) #

Total comments: 3

Patch Set 6 : Review feedback (return proper value) #

Total comments: 2

Patch Set 7 : Review feedback (proper return value in fpdfview) #

Total comments: 3

Patch Set 8 : Rebase and warning fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -0 lines) Patch
M core/include/fpdfdoc/fpdf_doc.h View 1 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M core/src/fpdfdoc/doc_viewerPreferences.cpp View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
M fpdfsdk/include/fpdfview.h View 1 2 3 4 5 6 7 3 chunks +36 lines, -0 lines 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 1 2 3 4 5 6 7 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
Nikhil
PTAL. Thanks! If you've any review comments, then please let me know. I'll incorporate them.
6 years, 6 months ago (2014-06-20 14:40:34 UTC) #1
Vitaly Buka (NO REVIEWS)
On 2014/06/20 14:40:34, Nikhil wrote: > PTAL. Thanks! > > If you've any review comments, ...
6 years, 6 months ago (2014-06-20 18:09:18 UTC) #2
Nikhil
On 2014/06/20 18:09:18, Vitaly Buka wrote: > On 2014/06/20 14:40:34, Nikhil wrote: > > PTAL. ...
6 years, 6 months ago (2014-06-20 19:23:57 UTC) #3
Vitaly Buka (NO REVIEWS)
On 2014/06/20 19:23:57, Nikhil wrote: > On 2014/06/20 18:09:18, Vitaly Buka wrote: > > On ...
6 years, 6 months ago (2014-06-20 19:44:54 UTC) #4
Nikhil
PTAL. Thanks!
6 years, 6 months ago (2014-06-23 13:07:46 UTC) #5
Vitaly Buka (NO REVIEWS)
+jam https://codereview.chromium.org/345123002/diff/20001/core/include/fpdfdoc/fpdf_doc.h File core/include/fpdfdoc/fpdf_doc.h (right): https://codereview.chromium.org/345123002/diff/20001/core/include/fpdfdoc/fpdf_doc.h#newcode1664 core/include/fpdfdoc/fpdf_doc.h:1664: CFX_ByteString Duplex() const; Duplex should return FX_INT32 and ...
6 years, 6 months ago (2014-06-24 21:53:46 UTC) #6
Nikhil
PTAL. Thanks! https://codereview.chromium.org/345123002/diff/20001/core/include/fpdfdoc/fpdf_doc.h File core/include/fpdfdoc/fpdf_doc.h (right): https://codereview.chromium.org/345123002/diff/20001/core/include/fpdfdoc/fpdf_doc.h#newcode1664 core/include/fpdfdoc/fpdf_doc.h:1664: CFX_ByteString Duplex() const; Added enum to map ...
6 years, 6 months ago (2014-06-25 09:09:47 UTC) #7
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/345123002/diff/40001/core/include/fpdfdoc/fpdf_doc.h File core/include/fpdfdoc/fpdf_doc.h (right): https://codereview.chromium.org/345123002/diff/40001/core/include/fpdfdoc/fpdf_doc.h#newcode1650 core/include/fpdfdoc/fpdf_doc.h:1650: enum DuplexType { Maybe? None -> DuplexUndefined Simplex -> ...
6 years, 6 months ago (2014-06-25 18:02:24 UTC) #8
Nikhil
PTAL. Thanks! https://codereview.chromium.org/345123002/diff/40001/core/include/fpdfdoc/fpdf_doc.h File core/include/fpdfdoc/fpdf_doc.h (right): https://codereview.chromium.org/345123002/diff/40001/core/include/fpdfdoc/fpdf_doc.h#newcode1650 core/include/fpdfdoc/fpdf_doc.h:1650: enum DuplexType { On 2014/06/25 18:02:24, Vitaly ...
6 years, 6 months ago (2014-06-26 10:21:38 UTC) #9
jam
On 2014/06/24 21:53:46, Vitaly Buka wrote: > +jam I'm not familiar with this code, please ...
6 years, 6 months ago (2014-06-26 18:19:11 UTC) #10
Vitaly Buka (NO REVIEWS)
lgtm Bo can you please review this? Or reassign to someone familiar with this code? ...
6 years, 6 months ago (2014-06-26 20:03:37 UTC) #11
Bo Xu
I will take a look at this.
6 years, 6 months ago (2014-06-26 20:13:54 UTC) #12
Nikhil
https://codereview.chromium.org/345123002/diff/100001/fpdfsdk/include/fpdfview.h File fpdfsdk/include/fpdfview.h (right): https://codereview.chromium.org/345123002/diff/100001/fpdfsdk/include/fpdfview.h#newcode570 fpdfsdk/include/fpdfview.h:570: // Return value: On 2014/06/26 20:03:37, Vitaly Buka wrote: ...
6 years, 6 months ago (2014-06-26 21:28:39 UTC) #13
Bo Xu
https://codereview.chromium.org/345123002/diff/40001/core/src/fpdfdoc/doc_viewerPreferences.cpp File core/src/fpdfdoc/doc_viewerPreferences.cpp (right): https://codereview.chromium.org/345123002/diff/40001/core/src/fpdfdoc/doc_viewerPreferences.cpp#newcode52 core/src/fpdfdoc/doc_viewerPreferences.cpp:52: FX_INT32 CPDF_ViewerPreferences::Duplex() const This function should return a CFX_ByteString ...
6 years, 5 months ago (2014-06-29 20:58:16 UTC) #14
Nikhil
Apologies for the delay in getting back to this. I've incorporated the review comments. PTAL. ...
6 years, 5 months ago (2014-07-07 08:54:18 UTC) #15
Bo Xu
I just have one comment. With that fixed, lgtm. Thanks!
6 years, 5 months ago (2014-07-07 18:11:13 UTC) #16
Bo Xu
https://codereview.chromium.org/345123002/diff/120001/core/src/fpdfdoc/doc_viewerPreferences.cpp File core/src/fpdfdoc/doc_viewerPreferences.cpp (right): https://codereview.chromium.org/345123002/diff/120001/core/src/fpdfdoc/doc_viewerPreferences.cpp#newcode37 core/src/fpdfdoc/doc_viewerPreferences.cpp:37: return TRUE; As the return type is FX_INT32, we ...
6 years, 5 months ago (2014-07-07 18:11:19 UTC) #17
Nikhil
Thanks for reviewing, I've added proper return value. PTAL. https://codereview.chromium.org/345123002/diff/120001/core/include/fpdfdoc/fpdf_doc.h File core/include/fpdfdoc/fpdf_doc.h (right): https://codereview.chromium.org/345123002/diff/120001/core/include/fpdfdoc/fpdf_doc.h#newcode1650 core/include/fpdfdoc/fpdf_doc.h:1650: ...
6 years, 5 months ago (2014-07-08 07:54:37 UTC) #18
Bo Xu
On 2014/07/08 07:54:37, Nikhil wrote: > Thanks for reviewing, I've added proper return value. PTAL. ...
6 years, 5 months ago (2014-07-08 23:14:42 UTC) #19
Vitaly Buka (NO REVIEWS)
lgtm please fix this one https://codereview.chromium.org/345123002/diff/140001/fpdfsdk/src/fpdfview.cpp File fpdfsdk/src/fpdfview.cpp (right): https://codereview.chromium.org/345123002/diff/140001/fpdfsdk/src/fpdfview.cpp#newcode872 fpdfsdk/src/fpdfview.cpp:872: if (!pDoc) return TRUE; ...
6 years, 5 months ago (2014-07-08 23:33:14 UTC) #20
Nikhil
https://codereview.chromium.org/345123002/diff/140001/fpdfsdk/src/fpdfview.cpp File fpdfsdk/src/fpdfview.cpp (right): https://codereview.chromium.org/345123002/diff/140001/fpdfsdk/src/fpdfview.cpp#newcode872 fpdfsdk/src/fpdfview.cpp:872: if (!pDoc) return TRUE; On 2014/07/08 23:33:13, Vitaly Buka ...
6 years, 5 months ago (2014-07-09 06:19:05 UTC) #21
Nikhil
On 2014/07/08 23:14:42, bo_xu wrote: > Thanks. Do you have the right to land this ...
6 years, 5 months ago (2014-07-09 06:23:31 UTC) #22
Vitaly Buka (NO REVIEWS)
The CQ bit was checked by vitalybuka@chromium.org
6 years, 5 months ago (2014-07-09 08:37:26 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-09 08:39:13 UTC) #24
commit-bot: I haz the power
Commit queue rejected this change because it did not recognize the base URL. Please commit ...
6 years, 5 months ago (2014-07-09 08:39:14 UTC) #25
Nikhil
On 2014/07/09 08:39:14, I haz the power (commit-bot) wrote: > Commit queue rejected this change ...
6 years, 5 months ago (2014-07-09 09:10:04 UTC) #26
Bo Xu
On 2014/07/09 09:10:04, Nikhil wrote: > On 2014/07/09 08:39:14, I haz the power (commit-bot) wrote: ...
6 years, 5 months ago (2014-07-09 18:28:30 UTC) #27
Nikhil
On 2014/07/09 18:28:30, bo_xu wrote: > On 2014/07/09 09:10:04, Nikhil wrote: > > On 2014/07/09 ...
6 years, 5 months ago (2014-07-09 19:14:30 UTC) #28
Nikhil
https://codereview.chromium.org/345123002/diff/160001/fpdfsdk/src/fpdfview.cpp File fpdfsdk/src/fpdfview.cpp (right): https://codereview.chromium.org/345123002/diff/160001/fpdfsdk/src/fpdfview.cpp#newcode899 fpdfsdk/src/fpdfview.cpp:899: } I just realized that this gives warning! Control ...
6 years, 5 months ago (2014-07-11 06:58:42 UTC) #29
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/345123002/diff/160001/fpdfsdk/src/fpdfview.cpp File fpdfsdk/src/fpdfview.cpp (right): https://codereview.chromium.org/345123002/diff/160001/fpdfsdk/src/fpdfview.cpp#newcode899 fpdfsdk/src/fpdfview.cpp:899: } Please just return DuplexUndefined; at the end of ...
6 years, 5 months ago (2014-07-11 19:31:54 UTC) #30
Nikhil
Warning is removed. PTAL. Thanks! Also, please advise how to submit this. I don't think ...
6 years, 5 months ago (2014-07-14 07:25:11 UTC) #31
Bo Xu
I guess Jam can help you commit?
6 years, 5 months ago (2014-07-14 20:28:59 UTC) #32
Nikhil
On 2014/07/14 20:28:59, bo_xu wrote: > I guess Jam can help you commit? jam@ - ...
6 years, 5 months ago (2014-07-14 20:37:04 UTC) #33
Bo Xu
On 2014/07/14 20:37:04, Nikhil wrote: > On 2014/07/14 20:28:59, bo_xu wrote: > > I guess ...
6 years, 5 months ago (2014-07-14 21:44:10 UTC) #34
jam
On 2014/07/14 21:44:10, bo_xu wrote: > On 2014/07/14 20:37:04, Nikhil wrote: > > On 2014/07/14 ...
6 years, 5 months ago (2014-07-14 21:52:32 UTC) #35
Bo Xu
Hi Jam, right, I realized that after I land it. Just wonder how do I ...
6 years, 5 months ago (2014-07-14 22:03:43 UTC) #36
jam
On 2014/07/14 22:03:43, bo_xu wrote: > Hi Jam, right, I realized that after I land ...
6 years, 5 months ago (2014-07-14 22:23:42 UTC) #37
Bo Xu
On 2014/07/14 22:23:42, jam wrote: > On 2014/07/14 22:03:43, bo_xu wrote: > > Hi Jam, ...
6 years, 5 months ago (2014-07-14 22:34:03 UTC) #38
Nikhil
On 2014/07/14 21:52:32, jam wrote: > On 2014/07/14 21:44:10, bo_xu wrote: > > On 2014/07/14 ...
6 years, 5 months ago (2014-07-15 12:13:56 UTC) #39
Nikhil
6 years, 4 months ago (2014-08-14 12:26:48 UTC) #40
Closing this review as changes were successfully submitted manually.

Thank you all for reviewing this!

Powered by Google App Engine
This is Rietveld 408576698