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

Issue 1953053002: Add private PPAPI interfaces for PDFium accessibility. (Closed)

Created:
4 years, 7 months ago by dmazzoni
Modified:
4 years, 6 months ago
Reviewers:
Lei Zhang, Tom Sepez, raymes
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, teravest+watch_chromium.org, bradnelson+warch_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org, David Tseng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add private PPAPI interfaces for PDFium accessibility. This change adds PPAPI interfaces for PDFium accessibility and implements them in the PDFium engine wrapper code. The approach to get the accessible text is similar to the existing JSON interface, which will be deleted once this approach is finished. Design doc (shared with chromium.org): https://goo.gl/ZJUBsg BUG=54724 Committed: https://crrev.com/c3547a3968cfdad2489b1dcbd651a216af52e677 Cr-Commit-Position: refs/heads/master@{#397298}

Patch Set 1 #

Patch Set 2 : Rebase, try to fix compiler errors on other platforms #

Patch Set 3 : Fix more compile errors #

Patch Set 4 : Another speculative compiler error fix #

Patch Set 5 : Another speculative compiler error fix #

Total comments: 8

Patch Set 6 : Address feedback from Lei #

Total comments: 22

Patch Set 7 : Refactor based on feedback from Raymes #

Total comments: 13

Patch Set 8 : Address feedback from raymes #

Total comments: 7

Patch Set 9 : Address feedback and run git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+551 lines, -4 lines) Patch
M components/pdf/renderer/pepper_pdf_host.h View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M components/pdf/renderer/pepper_pdf_host.cc View 1 2 3 4 5 6 2 chunks +29 lines, -0 lines 0 comments Download
M pdf/out_of_process_instance.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 2 3 4 5 6 7 8 4 chunks +92 lines, -2 lines 0 comments Download
M pdf/pdf_engine.h View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M pdf/pdfium/pdfium_engine.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 2 3 4 5 6 7 8 2 chunks +29 lines, -0 lines 0 comments Download
M pdf/pdfium/pdfium_page.h View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M pdf/pdfium/pdfium_page.cc View 1 2 3 4 5 6 7 8 5 chunks +104 lines, -0 lines 0 comments Download
M ppapi/c/private/ppb_pdf.h View 1 2 3 4 5 6 7 8 3 chunks +62 lines, -0 lines 0 comments Download
M ppapi/c/private/ppp_pdf.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/cpp/private/pdf.h View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M ppapi/cpp/private/pdf.cc View 1 2 3 4 5 6 7 8 1 chunk +31 lines, -0 lines 0 comments Download
M ppapi/proxy/pdf_resource.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M ppapi/proxy/pdf_resource.cc View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 4 chunks +51 lines, -0 lines 0 comments Download
M ppapi/proxy/ppp_pdf_proxy.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/ppp_pdf_proxy.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_pdf_api.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_pdf_thunk.cc View 1 2 3 4 5 6 2 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (9 generated)
dmazzoni
4 years, 7 months ago (2016-05-05 17:41:36 UTC) #2
Lei Zhang
There's a lot of red trybots.
4 years, 7 months ago (2016-05-09 18:51:35 UTC) #3
dmazzoni
Sorry about that. Take a look now, I think they'll all be green now.
4 years, 7 months ago (2016-05-09 21:07:07 UTC) #4
Lei Zhang
https://codereview.chromium.org/1953053002/diff/80001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1953053002/diff/80001/pdf/pdfium/pdfium_engine.cc#newcode2309 pdf/pdfium/pdfium_engine.cc:2309: return; Would it be helpful to return false to ...
4 years, 7 months ago (2016-05-09 23:58:49 UTC) #5
dmazzoni
https://codereview.chromium.org/1953053002/diff/80001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1953053002/diff/80001/pdf/pdfium/pdfium_engine.cc#newcode2309 pdf/pdfium/pdfium_engine.cc:2309: return; On 2016/05/09 23:58:49, Lei Zhang wrote: > Would ...
4 years, 7 months ago (2016-05-10 22:09:18 UTC) #6
raymes
Hey Dominic, Sorry I've been really slow on this but I'll try to get to ...
4 years, 7 months ago (2016-05-13 05:39:47 UTC) #7
dmazzoni
No problem, thanks! I have plenty of other things to work on in the meantime. ...
4 years, 7 months ago (2016-05-13 18:07:52 UTC) #8
raymes
Sorry for the delay! https://codereview.chromium.org/1953053002/diff/100001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1953053002/diff/100001/pdf/pdfium/pdfium_engine.cc#newcode2325 pdf/pdfium/pdfium_engine.cc:2325: pp::PDF::SetAccessibilityViewportInfo(GetPluginInstance(), &viewport_info); Does the viewport ...
4 years, 7 months ago (2016-05-17 20:38:40 UTC) #9
raymes
https://codereview.chromium.org/1953053002/diff/100001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1953053002/diff/100001/pdf/pdfium/pdfium_engine.cc#newcode2325 pdf/pdfium/pdfium_engine.cc:2325: pp::PDF::SetAccessibilityViewportInfo(GetPluginInstance(), &viewport_info); On 2016/05/17 20:38:40, raymes wrote: > Does ...
4 years, 7 months ago (2016-05-17 20:40:12 UTC) #10
dmazzoni
Thanks! I'll address the rest of your feedback, but I would like your thoughts on ...
4 years, 7 months ago (2016-05-17 20:56:58 UTC) #11
raymes
> Is there any reason we have to use a C API? Since this is ...
4 years, 7 months ago (2016-05-17 21:58:13 UTC) #12
dmazzoni
That sounds good! On Tue, May 17, 2016 at 2:58 PM <raymes@chromium.org> wrote: > > ...
4 years, 7 months ago (2016-05-17 23:49:07 UTC) #13
dmazzoni
Ready for another look, thanks! https://codereview.chromium.org/1953053002/diff/100001/ppapi/c/private/ppb_pdf.h File ppapi/c/private/ppb_pdf.h (right): https://codereview.chromium.org/1953053002/diff/100001/ppapi/c/private/ppb_pdf.h#newcode155 ppapi/c/private/ppb_pdf.h:155: uint32_t page_index, On 2016/05/17 ...
4 years, 7 months ago (2016-05-26 21:59:14 UTC) #14
raymes
lg with a few comments. Defer to thestig for pdfium/ code. Thanks! https://codereview.chromium.org/1953053002/diff/120001/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc ...
4 years, 6 months ago (2016-05-30 04:17:38 UTC) #15
dmazzoni
https://codereview.chromium.org/1953053002/diff/120001/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/1953053002/diff/120001/pdf/out_of_process_instance.cc#newcode684 pdf/out_of_process_instance.cc:684: uint32_t char_index = 0; On 2016/05/30 04:17:37, raymes wrote: ...
4 years, 6 months ago (2016-05-31 21:45:02 UTC) #16
raymes
lgtm for everything except pdf/pdfium Cheers https://codereview.chromium.org/1953053002/diff/120001/ppapi/c/private/ppb_pdf.h File ppapi/c/private/ppb_pdf.h (right): https://codereview.chromium.org/1953053002/diff/120001/ppapi/c/private/ppb_pdf.h#newcode73 ppapi/c/private/ppb_pdf.h:73: double char_width; On ...
4 years, 6 months ago (2016-06-01 00:05:54 UTC) #17
Lei Zhang
I'm not done reviewing, but I need to step out for a bit. Here's what ...
4 years, 6 months ago (2016-06-01 21:26:34 UTC) #20
Tom Sepez
IPC LGTM
4 years, 6 months ago (2016-06-01 21:29:49 UTC) #21
Lei Zhang
lgtm aside from previous comments.
4 years, 6 months ago (2016-06-01 22:50:43 UTC) #22
dmazzoni
https://codereview.chromium.org/1953053002/diff/140001/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/1953053002/diff/140001/pdf/out_of_process_instance.cc#newcode305 pdf/out_of_process_instance.cc:305: top_toolbar_height_(0), On 2016/06/01 21:26:33, Lei Zhang wrote: > indentation ...
4 years, 6 months ago (2016-06-01 22:56:43 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1953053002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1953053002/160001
4 years, 6 months ago (2016-06-01 22:58:33 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/239121)
4 years, 6 months ago (2016-06-02 00:30:13 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1953053002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1953053002/160001
4 years, 6 months ago (2016-06-02 04:37:25 UTC) #30
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-06-02 05:47:31 UTC) #32
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 05:49:31 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c3547a3968cfdad2489b1dcbd651a216af52e677
Cr-Commit-Position: refs/heads/master@{#397298}

Powered by Google App Engine
This is Rietveld 408576698