|
Make the PDF plug-in accessible.
Makes the PDF plug-in accessible on all supported platforms by building an
accessibility tree for the PDF content and grafting it on as a subtree of
the accessibility tree for the embedding page.
It exposes all of the text of the PDF, including full support for computing
the bounding box of any arbitrary text range. Using heuristics, automatically
groups the text runs into paragraphs and marks some of them as headings if
their font size is larger than the average for the page.
I wrote a browser test for this, to be reviewed in a follow-up changelist.
Currently the coordinates don't update if the user zooms. I want to fix that
by using a transformation matrix after this change lands -
http://crrev.com/2047873002 - but scrolling works fine.
Future work might include incremental loading and support for links and maybe
even fill-in forms.
Depends on:
http://crrev.com/1953053002
http://crrev.com/2058453002
http://crrev.com/2050973003
http://crrev.com/2055903002
BUG= 54724
Committed: https://crrev.com/8e6fe4d789f430554f47df5085fa04a6808221c7
Cr-Commit-Position: refs/heads/master@{#402122}
Total comments: 10
Total comments: 10
Total comments: 2
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+678 lines, -1213 lines) |
Patch |
|
M |
build/android/pylib/gtest/filter/content_browsertests_disabled
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
components/pdf.gypi
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/pdf/renderer/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/pdf/renderer/DEPS
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/pdf/renderer/OWNERS
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
components/pdf/renderer/pdf_accessibility_tree.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+90 lines, -0 lines |
0 comments
|
Download
|
|
A |
components/pdf/renderer/pdf_accessibility_tree.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+309 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/pdf/renderer/pepper_pdf_host.h
|
View
|
1
2
3
|
3 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/pdf/renderer/pepper_pdf_host.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+29 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/pdf_strings.grdp
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/ax_content_node_data.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/common/ax_content_node_data.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/content_renderer.gypi
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/content_tests.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/public/renderer/pepper_plugin_instance.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
content/public/renderer/render_accessibility.h
|
View
|
1
2
3
4
5
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/renderer/render_frame.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/accessibility/blink_ax_tree_source.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A + |
content/renderer/accessibility/render_accessibility_impl.h
|
View
|
1
2
3
|
8 chunks |
+24 lines, -8 lines |
0 comments
|
Download
|
|
A + |
content/renderer/accessibility/render_accessibility_impl.cc
|
View
|
1
2
3
|
24 chunks |
+95 lines, -29 lines |
0 comments
|
Download
|
|
A + |
content/renderer/accessibility/render_accessibility_impl_browsertest.cc
|
View
|
1
2
3
|
11 chunks |
+26 lines, -26 lines |
0 comments
|
Download
|
|
D |
content/renderer/accessibility/renderer_accessibility.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -161 lines |
0 comments
|
Download
|
|
D |
content/renderer/accessibility/renderer_accessibility.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -615 lines |
0 comments
|
Download
|
|
D |
content/renderer/accessibility/renderer_accessibility_browsertest.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -342 lines |
0 comments
|
Download
|
|
M |
content/renderer/pepper/pepper_plugin_instance_impl.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_frame_impl.h
|
View
|
1
2
3
|
6 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_frame_impl.cc
|
View
|
1
2
3
|
7 chunks |
+18 lines, -14 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_view_browsertest.cc
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
Total messages: 31 (10 generated)
|