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

Issue 834703002: Add APIs for getting bookmarks and named destinations. (Closed)

Created:
5 years, 11 months ago by Bo Xu
Modified:
5 years, 11 months ago
CC:
pdfium-reviews_googlegroups.com, Sam McNally
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add APIs for getting bookmarks and named destinations. R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/476cd69a6f5c5096a3145e0c4d567010f37739c3

Patch Set 1 #

Patch Set 2 : #

Total comments: 25

Patch Set 3 : Address minor comments, still need to fix std:string #

Total comments: 3

Patch Set 4 : use C style query mode for destination name #

Total comments: 14

Patch Set 5 : address comments and change API prototype #

Patch Set 6 : check pDict and fix indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -2 lines) Patch
M fpdfsdk/include/fpdfdoc.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
M fpdfsdk/include/fpdfview.h View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download
M fpdfsdk/src/fpdfdoc.cpp View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 1 2 3 4 1 chunk +67 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (2 generated)
Bo Xu
Hi, Raymes, please review these APIs as you requested, thanks!
5 years, 11 months ago (2014-12-31 01:48:51 UTC) #2
Tom Sepez
https://codereview.chromium.org/834703002/diff/20001/fpdfsdk/include/fpdfview.h File fpdfsdk/include/fpdfview.h (right): https://codereview.chromium.org/834703002/diff/20001/fpdfsdk/include/fpdfview.h#newcode632 fpdfsdk/include/fpdfview.h:632: DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, std::string name); ...
5 years, 11 months ago (2015-01-01 01:10:08 UTC) #3
Bo Xu
Cleaning of current code at https://codereview.chromium.org/828203002/ to assist landing of this patch. https://codereview.chromium.org/834703002/diff/20001/fpdfsdk/src/fpdfdoc.cpp File fpdfsdk/src/fpdfdoc.cpp ...
5 years, 11 months ago (2015-01-01 06:40:38 UTC) #4
raymes
5 years, 11 months ago (2015-01-04 23:28:56 UTC) #6
Alexandre Carlton
We also need a way to get the title of a bookmark. Could you also ...
5 years, 11 months ago (2015-01-05 00:25:55 UTC) #7
Alexandre Carlton
On 2015/01/05 00:25:55, Alexandre Carlton wrote: > We also need a way to get the ...
5 years, 11 months ago (2015-01-05 00:27:17 UTC) #8
raymes
On 2015/01/01 06:40:38, Bo Xu wrote: > Cleaning of current code at https://codereview.chromium.org/828203002/ to assist ...
5 years, 11 months ago (2015-01-05 02:18:14 UTC) #9
Bo Xu
> > Thanks Bo! How do you plan to address Tom's comment about using std::string ...
5 years, 11 months ago (2015-01-05 04:54:31 UTC) #10
Tom Sepez
> But I feel using FPDF_BSTR over std:string does not really offer any benefit and ...
5 years, 11 months ago (2015-01-05 18:20:30 UTC) #11
Bo Xu
On 2015/01/05 18:20:30, Tom Sepez (vacated ho ho ho) wrote: > > But I feel ...
5 years, 11 months ago (2015-01-05 21:22:53 UTC) #12
raymes
https://codereview.chromium.org/834703002/diff/20001/fpdfsdk/include/fpdfview.h File fpdfsdk/include/fpdfview.h (right): https://codereview.chromium.org/834703002/diff/20001/fpdfsdk/include/fpdfview.h#newcode632 fpdfsdk/include/fpdfview.h:632: DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, std::string name); ...
5 years, 11 months ago (2015-01-05 22:38:09 UTC) #13
Bo Xu
https://codereview.chromium.org/834703002/diff/20001/fpdfsdk/include/fpdfview.h File fpdfsdk/include/fpdfview.h (right): https://codereview.chromium.org/834703002/diff/20001/fpdfsdk/include/fpdfview.h#newcode632 fpdfsdk/include/fpdfview.h:632: DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, std::string name); ...
5 years, 11 months ago (2015-01-05 22:46:53 UTC) #14
Bo Xu
https://codereview.chromium.org/834703002/diff/40001/fpdfsdk/include/fpdfview.h File fpdfsdk/include/fpdfview.h (right): https://codereview.chromium.org/834703002/diff/40001/fpdfsdk/include/fpdfview.h#newcode643 fpdfsdk/include/fpdfview.h:643: DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, std::string name); ...
5 years, 11 months ago (2015-01-06 18:15:56 UTC) #15
Tom Sepez
https://codereview.chromium.org/834703002/diff/40001/fpdfsdk/include/fpdfview.h File fpdfsdk/include/fpdfview.h (right): https://codereview.chromium.org/834703002/diff/40001/fpdfsdk/include/fpdfview.h#newcode643 fpdfsdk/include/fpdfview.h:643: DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, std::string name); ...
5 years, 11 months ago (2015-01-06 18:25:44 UTC) #16
Bo Xu
https://codereview.chromium.org/834703002/diff/40001/fpdfsdk/include/fpdfview.h File fpdfsdk/include/fpdfview.h (right): https://codereview.chromium.org/834703002/diff/40001/fpdfsdk/include/fpdfview.h#newcode643 fpdfsdk/include/fpdfview.h:643: DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, std::string name); ...
5 years, 11 months ago (2015-01-06 23:00:20 UTC) #17
Tom Sepez
https://codereview.chromium.org/834703002/diff/60001/fpdfsdk/src/fpdfview.cpp File fpdfsdk/src/fpdfview.cpp (right): https://codereview.chromium.org/834703002/diff/60001/fpdfsdk/src/fpdfview.cpp#newcode857 fpdfsdk/src/fpdfview.cpp:857: CFX_WideString wsName = PDF_DecodeText(bsName); need to check that len ...
5 years, 11 months ago (2015-01-07 16:56:24 UTC) #18
Tom Sepez
On 2015/01/07 16:56:24, Tom Sepez wrote: > https://codereview.chromium.org/834703002/diff/60001/fpdfsdk/src/fpdfview.cpp > File fpdfsdk/src/fpdfview.cpp (right): > > https://codereview.chromium.org/834703002/diff/60001/fpdfsdk/src/fpdfview.cpp#newcode857 ...
5 years, 11 months ago (2015-01-07 16:57:58 UTC) #19
Bo Xu
On 2015/01/07 16:57:58, Tom Sepez wrote: > On 2015/01/07 16:56:24, Tom Sepez wrote: > > ...
5 years, 11 months ago (2015-01-07 18:30:02 UTC) #20
raymes
Some comments below, but once these are addressed I'm ok with this and defer to ...
5 years, 11 months ago (2015-01-08 03:55:44 UTC) #21
Deepak
I have taken code of https://codereview.chromium.org/834703002/ and made build. And then I tried to access ...
5 years, 11 months ago (2015-01-09 10:35:23 UTC) #22
Deepak
On 2015/01/09 10:35:23, Deepak wrote: > I have taken code of https://codereview.chromium.org/834703002/ and made build. ...
5 years, 11 months ago (2015-01-09 10:39:23 UTC) #23
Bo Xu
On 2015/01/09 10:39:23, Deepak wrote: > On 2015/01/09 10:35:23, Deepak wrote: > > I have ...
5 years, 11 months ago (2015-01-09 19:31:19 UTC) #24
Bo Xu
Hi all, please take a look patch 6, thanks. https://codereview.chromium.org/834703002/diff/60001/fpdfsdk/include/fpdfview.h File fpdfsdk/include/fpdfview.h (right): https://codereview.chromium.org/834703002/diff/60001/fpdfsdk/include/fpdfview.h#newcode11 fpdfsdk/include/fpdfview.h:11: ...
5 years, 11 months ago (2015-01-09 19:35:21 UTC) #25
Tom Sepez
Bo, can you take a look at #c23 and decide whether the code is functioning ...
5 years, 11 months ago (2015-01-09 19:36:52 UTC) #26
Bo Xu
On 2015/01/09 19:36:52, Tom Sepez wrote: > Bo, can you take a look at #c23 ...
5 years, 11 months ago (2015-01-09 19:39:55 UTC) #27
Tom Sepez
On 2015/01/09 19:39:55, Bo Xu wrote: > On 2015/01/09 19:36:52, Tom Sepez wrote: > > ...
5 years, 11 months ago (2015-01-09 20:48:03 UTC) #28
Deepak
On 2015/01/09 20:48:03, Tom Sepez wrote: > On 2015/01/09 19:39:55, Bo Xu wrote: > > ...
5 years, 11 months ago (2015-01-10 09:50:15 UTC) #29
Deepak
On 2015/01/10 09:50:15, Deepak wrote: > On 2015/01/09 20:48:03, Tom Sepez wrote: > > On ...
5 years, 11 months ago (2015-01-10 11:51:22 UTC) #30
Deepak
Please roll in these changes. My changes are depends on these, as I am consumer ...
5 years, 11 months ago (2015-01-11 06:38:03 UTC) #31
Bo Xu
Committed patchset #6 (id:100001) manually as 476cd69a6f5c5096a3145e0c4d567010f37739c3 (presubmit successful).
5 years, 11 months ago (2015-01-11 06:52:56 UTC) #32
Bo Xu
On 2015/01/11 06:38:03, Deepak wrote: > Please roll in these changes. > My changes are ...
5 years, 11 months ago (2015-01-11 06:53:31 UTC) #33
Tom Sepez
On 2015/01/11 06:53:31, Bo Xu wrote: > On 2015/01/11 06:38:03, Deepak wrote: > > Please ...
5 years, 11 months ago (2015-01-16 02:19:48 UTC) #34
Bo Xu
5 years, 11 months ago (2015-01-16 02:51:52 UTC) #35
Message was sent while issue was closed.
On 2015/01/16 02:19:48, Tom Sepez wrote:
> On 2015/01/11 06:53:31, Bo Xu wrote:
> > On 2015/01/11 06:38:03, Deepak wrote:
> > > Please roll in these changes.
> > > My changes are depends on these, as I am consumer of these chnages :)
> > > Thanks
> > 
> > CL committed :)
> 
> Can we get this merged to XFA branch?  Thanks.

Done.

Powered by Google App Engine
This is Rietveld 408576698