0
Commit Graph

1909 Commits

Author SHA1 Message Date
Bill Budge
acfed35ea9 [Flash] Remove PPP_Flash_BrowserOperations API
This also removes plugin data and settings persistence, which isn't
needed if the Flash plugin doesn't exist (it used to persist its own
data on command from the browser.)

Adds a TODO to figure out how we will remove plugin data now that
Flash is deprecated.

Bug: chromium:1064652,chromium:1135773,chromium:1135779
Change-Id: I2eb1e30856071190cba29cea98cdd86a37722f95
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2450057
Commit-Queue: Bill Budge <bbudge@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Anthony LaForge <laforge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#816370}
2020-10-13 00:28:08 +00:00
Bill Budge
f7d8dd23bb [ppapi] Remove PPB_AudioEncoder API
- UMA shows this interface has no usage. This is a Dev API at 0.1.

Change-Id: I98aef1dcaf38c9203030526bbdf4e4e51b0e9497
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574487
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814695}
2020-10-07 16:07:21 +00:00
Bill Budge
81da804125 [Flash] Remove some Flash APIs
- PPB_Flash_MessageLoop
- PPB_Flash_DRM
- PPB_Flash_Menu
- PPB_Flash_Clipboard
- PPB_Flash_Print
- PPB_Flash_File
- PPB_Flash

Bug: chromium:1064652
Change-Id: Ie9b661cab12c79dfc0ba2528989a661a1d4b49f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2446525
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814257}
2020-10-06 17:12:49 +00:00
Bill Budge
e100fa8df5 [ppapi] Remove PPB_TrueTypeFont resource.
- UMA shows this interface has no usage.

This is a manual reland of:
https://chromium-review.googlesource.com/c/chromium/src/+/1546762

That was reverted due to failures on the deterministic build. Let's see if that has been fixed.

Change-Id: I4f7409dd0cb76245539d63d61e411bb35c9d1514
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2446369
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814202}
2020-10-06 14:36:10 +00:00
Dave Tapuska
61f6cf4fac Remove RenderWidgetFullscreenPepper.
With flash removal happening in M88, remove RenderWidgetFullscreenPepper
which was used to implement the Flash Fullscreen setting. Note this
is different that the PPAPI Fullscreen which uses the normal blink
fullscreen request via the WebContainer::RequestFullscreen call.

BUG=1134674

Change-Id: I166596f6f5a677cc1028aed02f74297e0c458696
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2446593
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#813822}
2020-10-05 18:24:41 +00:00
Sean McAllister
b9ad65a619 Refactor OS_LINUX preprocessor directive for LaCrOS effort.
Currently, ChromeOS defines the OS_LINUX directive as well as
OS_CHROMEOS.  We're working to separate these two, so we're
making the fact that OS_LINUX == OS_LINUX || OS_CHROMEOS
explicit.

Bug: 1110266
Change-Id: I5aedb1ceaad41242f4a51d450704027dcb0c046e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2352022
Commit-Queue: Sean McAllister <smcallis@google.com>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Peng Huang <penghuang@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: Primiano Tucci <primiano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799843}
2020-08-19 23:00:48 +00:00
Dirk Pranke
878b18040e Remove all remaining references to the jumbo build.
This removes jumbo.gni, the imports of jumbo.gni, and
any remaining stray references to it in the build files and docs.

Bug: 994387
Change-Id: Ic39b7c609e1bd922e05c7e1104f1e5532c188f5a
AX-Relnotes: n/a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2337392
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#796080}
2020-08-07 20:53:38 +00:00
Dirk Pranke
9c0fc3b7d7 Remove all use of jumbo_* build target types.
Now that the jumbo build is no longer supported (and hasn't been
for quite a while), there is no need to use the jumbo target types
like jumbo_source_set, jumbo_component, and jumbo_static_library.

This CL converts all such targets back to their non-jumbo equivalents.
The change was made via a simple search and replace.

Bug: 994387
Change-Id: I19b431c148d3b43fa19a72f00b28d84ff5a14e8b
AX-Relnotes: n/a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2337280
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Robert Kroeger <rjkroege@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#795492}
2020-08-06 16:01:30 +00:00
Virender Singh
a079161ec8 Add PPAPI constructs for sending focus object to PdfAccessibilityTree
This change introduces the PPAPI structures required to send the focus
information from plugin to PdfAccessibilityTree.

Bug: 1015350
Change-Id: I5bfd78b6d34e2ebcf78d9051207fcbc830694678
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2230586
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Ankit Kumar 🌪️ <ankk@microsoft.com>
Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
Commit-Queue: Virender Singh <virens@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#793502}
2020-07-31 03:47:07 +00:00
Avi Drissman
6cef490920 Migrate to OS_MAC and OS_APPLE in ppapi
Bug: 1105907
Change-Id: Ib35f5ba08945da527a2a9374b9f11bc221bf393e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2325099
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792990}
2020-07-30 01:26:30 +00:00
Austin Eng
a20738855d gpu: Add option for transfer buffer to gracefully fail on shmem OOM
The WebGPU API provides facilities to create mapped GPUBuffers
backed by shared memory. This makes it very easy for JavaScript to
make large transfer buffer allocations which fail allocation and
instantly lose the context.
This CL adds an option to CommandBuffer::CreateTransferBuffer and
MappedMemoryManager::Alloc to not lose the context on OOM but
instead fail gracefully.

Bug: dawn:450
Change-Id: I7311dd2ab685a150574056fbe9df5fa1724e4b7c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2310831
Reviewed-by: Bill Budge <bbudge@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791071}
2020-07-22 23:14:39 +00:00
Alex Gough
1533417231 Check refcounts for overflow.
31 bit refcounts are pushing up against larger renderer memory limits
so should be guarded for overflow.

Bug: 1101547
Change-Id: Iaf613e642be43f2dbddf25bed573e50a0eedf7f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2288490
Reviewed-by: Bill Budge <bbudge@chromium.org>
Commit-Queue: Alex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786543}
2020-07-08 23:35:08 +00:00
Hans Wennborg
c245a7f1b6 Remove/replace unnecessary includes of logging.h (ppapi/)
If the file just needs the CHECK/CHECK_OP/NOTREACHED
macros, use the appropriate header for that instead.
Or if logging.h is not needed at all, remove it.

This is both a nice cleanup (logging.h is a big header,
and including it unnecessarily has compile-time costs),
and part of the final step towards making logging.h no
longer include check.h and the others.

Bug: 1031540
Change-Id: I36a2cdc31d2b641f3ba3d13cefcdaa9d942ed9ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2254126
Commit-Queue: Bill Budge <bbudge@chromium.org>
Auto-Submit: Hans Wennborg <hans@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#780456}
2020-06-19 21:39:34 +00:00
Hans Wennborg
2e85796c69 Include-what-you-use related to logging.h (ppapi)
Add direct includes for things provided transitively by logging.h
(or by other headers including logging.h).

This is in preparation for cleaning up unnecessary includes of
logging.h in header files (so if something depends on logging.h,
it needs include it explicitly), and for when logging.h no longer
includes check.h, check_op.h, and notreached.h.

Bug: 1031540
Change-Id: Icaa271ea7e32c0494a7b3f578696e397e7cd0a48
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2249675
Commit-Queue: Hans Wennborg <hans@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Auto-Submit: Hans Wennborg <hans@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779331}
2020-06-17 15:34:51 +00:00
Mansi Awasthi
0a648583ff Add button structs for PDF accessibility
This change adds struct PP_PrivateAccessibilityButtonFieldInfo to
PP_PrivateAccessibilityFormFieldInfo to transfer accessibility related
PDF button data (radio button, checkbox and push button) from the plugin
process to the mimehandler process. Made the same changes to the C++
versions of these structs and added the appropriate conversion code.

Bug: 1030242
Change-Id: I33eaab3c6471e017799c54ad8d9c98c43e1baeca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2217716
Commit-Queue: Mansi Awasthi <maawas@microsoft.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Ankit Kumar 🌪️ <ankk@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#775964}
2020-06-08 08:34:54 +00:00
Mansi Awasthi
f538f3fb5d Add choice field structs for PDF accessibility
This change adds struct PP_PrivateAccessibilityChoiceFieldInfo to
PP_PrivateAccessibilityFormFieldInfo to transfer accessibility related
PDF choice field data from the plugin process to the mimehandler
process. Made the same changes to the C++ versions of these structs and
added the appropriate conversion code.

Bug: 1030242
Change-Id: I7aa6fd612de051d9e6b22e84e60c964d24685242
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2214734
Commit-Queue: Mansi Awasthi <maawas@microsoft.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Ankit Kumar 🌪️ <ankk@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#774049}
2020-06-02 07:51:54 +00:00
Mansi Awasthi
74dc0a2b93 Add form field structs for PDF accessibility
This change adds struct PP_PrivateAccessibilityFormFieldInfo to
PP_PrivateAccessibilityPageObjects to transfer accessibility related PDF
form field data from the plugin process to the mimehandler process. Made
the same changes to the C++ versions of these structs and added the
appropriate conversion code.

This CL refactors existing PP_PrivateAccessibilityPageObjects to send
text field data as part of PP_PrivateAccessibilityFormFieldInfo struct.
Going forward, other form fields will also be added in
PP_PrivateAccessibilityFormFieldInfo.
This change is needed to avoid bloating of
PP_PrivateAccessibilityPageObjects structure with multiple objects.

Bug: 1030242
Change-Id: Ie55ee36645ff9df9bc57dfaa18fb4cc3f245d60b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2215155
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Ankit Kumar 🌪️ <ankk@microsoft.com>
Commit-Queue: Mansi Awasthi <maawas@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#772610}
2020-05-28 08:46:39 +00:00
Hans Wennborg
708fa82298 Remove/replace unnecessary logging.h includes in .cc files (ppapi)
CHECK, CHECK_EQ etc., and NOTREACHED/NOTIMPLEMENTED have moved
to the much smaller headers check.h, check_op.h, and notreached.h,
respectively.

This CL updates .cc files to use those headers instead when
possible, with the purpose of saving compile time.

(Split out from https://crrev.com/c/2164525 which also has
notes on how the change was generated.)

Bug: 1031540
Change-Id: I59620a4eb8a4c2096bcc75f546d03cd7f9455aa7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2165109
Commit-Queue: Bill Budge <bbudge@chromium.org>
Auto-Submit: Hans Wennborg <hans@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#762906}
2020-04-27 17:23:15 +00:00
Hans Wennborg
7b60ef2f89 logging.h related include-what-you-use (ppapi/)
Fix code that was implicitly depending on logging.h or its
dependencies.

For example, code that uses DISALLOW_COPY_AND_ASSIGN should
include base/macros.h, but it currently happens to work if
it pulls in logging.h directly or through some dependency.

This is part of refactoring the codebase to use
check.h/check_op.h for the CHECK and CHECK_op macro
instead of logging.h.

Bug: 1031540
Change-Id: I3e650161f9647c8a3ac1d8ad03059fecc6cc8f65
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2157125
Auto-Submit: Hans Wennborg <hans@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#760532}
2020-04-20 16:43:43 +00:00
Jan Wilken Dörrie
1564716245 [base] Apply BindOnceRewriter in //ppapi
This change applies the BindOnceRewriter in //ppapi.
This rewriter replaces calls to base::Bind and base::BindRepeating with
calls to base::BindOnce, in case the result is immediately assigned to a
base::OnceCallback. Given that base::RepeatingCallback is implicitly
convertible to base::OnceCallback, there is no change in functionality.

Steps:
  1. run_tool.py --tool base_bind_rewriters \
                 --tool-arg='--rewriter=bind_to_bind_once'
  2. git cl format

This CL was uploaded by git cl split.

R=bbudge@chromium.org

Bug: 714018
Change-Id: If865855e4a21b08c359bc48f08ce3db258e41ffa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132411
Reviewed-by: Bill Budge <bbudge@chromium.org>
Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
Cr-Commit-Position: refs/heads/master@{#760440}
2020-04-20 10:09:58 +00:00
Jan Wilken Dörrie
1494205bf9 [base] Apply PassedToMoveRewriter from BaseBindRewriters
This change applies changes generated by running the PassedToMoveRewriter
rewriter across a Linux build of the codebase. It changes no functionality,
and only removes base::Passed invocations that can either be completely
omitted, or rewritten in terms of std::move.

TBR=dcheng

Bug: 714018
Change-Id: Ie8af65a571271c2eb77f8f88c2678e8e8abbbb9d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2120479
Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#753559}
2020-03-26 09:32:53 +00:00
Jun Cai
93a68530a5 Convert base::Bind and base::Callback in //ppapi/thunk to Once or Repeating
This CL converts base::Bind and base::Callback in //ppapi/thunk to Once
or Repeating

Bug: 1007819
Change-Id: Ib46aaf7a3465a0e9e55b73d58e73e6ed905cabac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2078906
Commit-Queue: Jun Cai <juncai@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746057}
2020-03-02 20:00:08 +00:00
Jun Cai
45a6a173b5 Convert base::Bind and base::Callback in //ppapi/shared_impl to Once or Repeating
This CL converts base::Bind and base::Callback in //ppapi/shared_impl to
Once or Repeating

Bug: 1007817
Change-Id: I5045b05239dfe9302b4df5bb035f709123de3bfc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2080856
Reviewed-by: Bill Budge <bbudge@chromium.org>
Commit-Queue: Jun Cai <juncai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#745685}
2020-02-29 00:37:08 +00:00
Robert Sesek
8dd0645210 Convert audio_data_pipe.mojom to handle<platform>
This also converts some of the receivers to use
base::SyncSocket::ScopedHandle, which is what is the type that is
extracted from the mojo::PlatformHandle.

Bug: 710376
Change-Id: Ie8f3c05851fcd2514ed140886d61746129f43b66
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2055844
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: Yuri Wiitala <miu@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#742417}
2020-02-19 01:10:49 +00:00
Virender Singh
05d6d36fc1 Revert "Add viewport scroll information to PDFAccessibilityTree"
This reverts commit c2f0727826.

Reason for revert: This change is causing regression. Bounding box
calculation of a given element requires the |kScrollX| and |kScrollY|
positions. In case of PDF there is a scroll element which lives outside
the PDF node. The scroll element also reports scroll positions. During
calculation of bounding boxes in AXTree::RelativeToTreeBoundsInternal
|kScrollX| and |kScrollY| are applied twice.

Original change's description:
> Add viewport scroll information to PDFAccessibilityTree
>
> This CL adds following information to PDFAccessibilityTree
> - ax::mojom::IntAttribute::kScrollXMin
> - ax::mojom::IntAttribute::kScrollXMax
> - ax::mojom::IntAttribute::kScrollX
> - ax::mojom::IntAttribute::kScrollYMin
> - ax::mojom::IntAttribute::kScrollYMax
> - ax::mojom::IntAttribute::kScrollY
>
> It enables partial implementation of IScrollProvider, following methods
> will work with this change
> - IScrollProvider::get_HorizontallyScrollable
> - IScrollProvider::get_VerticallyScrollable
> - IScrollProvider::get_HorizontalScrollPercent
> - IScrollProvider::get_VerticalScrollPercent
>
> This information is required by Screen readers to announce the current
> scroll position and extent of scroll to the user.
>
> Tests: The best way to test this change will be through browser tests.
> However, it requires the second part of the change, detailed in the
> associated bug, to be completed.
>
> Bug: 1034521
> Change-Id: I629b2773c75f2b6b222d339cd0ae01799d695295
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1985821
> Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> Reviewed-by: Lei Zhang <thestig@chromium.org>
> Commit-Queue: Virender Singh <virens@microsoft.com>
> Cr-Commit-Position: refs/heads/master@{#728843}

TBR=dcheng@chromium.org,thestig@chromium.org,mohitb@microsoft.com,virens@microsoft.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 1034521
Change-Id: I15675f9ba604be96e9c50c9bea1dbe84ef8c9a0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2041714
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#739108}
2020-02-06 21:39:51 +00:00
Mansi Awasthi
87d0258c57 Add text field structs for PDF accessibility.
This change adds struct PP_PrivateAccessibilityTextFieldInfo to
PP_PrivateAccessibilityPageObjects to transfer accessibility related PDF
text field data from the plugin process to the mimehandler process. Made
the same changes to the C++ versions of these structs and added the
appropriate conversion code.

Bug: 1030242
Change-Id: I50c9e82a9416445394b9cd1747606fc6d3706ef2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2032463
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
Commit-Queue: Mansi Awasthi <maawas@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#738857}
2020-02-06 05:53:54 +00:00
Ankit Kumar 🌪️
221befc872 Add highlight color information to the accessibility tree
The CL retrieves highlight color information from PDFium and passes it
from plugin to mimehandler. The color information is added to the
accessibility tree.

Bug: 1008775
Change-Id: I1faf7e1e7808a19ddbc234705dedcd546670de9a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2018568
Commit-Queue: Ankit Kumar 🌪️ <ankk@microsoft.com>
Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#736750}
2020-01-30 07:13:21 +00:00
Jan Wilken Dörrie
1d33fc6fdb [ppapi] Use base::OnceCallback in RunWhileLocked and CallWhileUnlocked
This change updates ppapi::RunWhileLocked and ppapi::CallWhileUnlocked
to use base::OnceClosure and base::OnceCallback instead of base::Closure
and base::Callback.

Bug: 714018
Change-Id: I7e827ecffe2baca3a681cf3e27982263c89f9f34
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2011927
Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734397}
2020-01-23 10:20:47 +00:00
Nico Weber
2c451b53e5 Reformat all gn files in /ppapi.
`gn format` recently changed its formatting behavior
for deps, source, and a few other elements when they
are assigned (with =) single-element lists to be consistent
with the formatting of updates (with +=) with single-element.

Now that we've rolled in a GN binary with the change,
reformat all files so that people don't get presubmit
warnings due to this.

This CL was uploaded by git cl split.

R=bbudge@chromium.org

Bug: 1041419
Change-Id: Ib80f67bc1f9a6a30349eb1289285585590abaffc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1997826
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#730701}
2020-01-13 19:15:58 +00:00
Virender Singh
c2f0727826 Add viewport scroll information to PDFAccessibilityTree
This CL adds following information to PDFAccessibilityTree
- ax::mojom::IntAttribute::kScrollXMin
- ax::mojom::IntAttribute::kScrollXMax
- ax::mojom::IntAttribute::kScrollX
- ax::mojom::IntAttribute::kScrollYMin
- ax::mojom::IntAttribute::kScrollYMax
- ax::mojom::IntAttribute::kScrollY

It enables partial implementation of IScrollProvider, following methods
will work with this change
- IScrollProvider::get_HorizontallyScrollable
- IScrollProvider::get_VerticallyScrollable
- IScrollProvider::get_HorizontalScrollPercent
- IScrollProvider::get_VerticalScrollPercent

This information is required by Screen readers to announce the current
scroll position and extent of scroll to the user.

Tests: The best way to test this change will be through browser tests.
However, it requires the second part of the change, detailed in the
associated bug, to be completed.

Bug: 1034521
Change-Id: I629b2773c75f2b6b222d339cd0ae01799d695295
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1985821
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Virender Singh <virens@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#728843}
2020-01-07 07:56:34 +00:00
Balazs Engedy
91f877cadd Revert "Add viewport scroll information to PDFAccessibilityTree"
This reverts commit a351b484e7.

Reason for revert: MemorySanitizer: use-of-uninitialized-value.

New struct members added to PP_PrivateAccessibilityViewportInfo seem to remain uninitialized in PdfAccessibilityTreeTest.TestZoomAndScaleChanges.

Original change's description:
> Add viewport scroll information to PDFAccessibilityTree
> 
> This CL adds following information to PDFAccessibilityTree
> - ax::mojom::IntAttribute::kScrollXMin
> - ax::mojom::IntAttribute::kScrollXMax
> - ax::mojom::IntAttribute::kScrollX
> - ax::mojom::IntAttribute::kScrollYMin
> - ax::mojom::IntAttribute::kScrollYMax
> - ax::mojom::IntAttribute::kScrollY
> 
> It enables partial implementation of IScrollProvider, following methods
> will work with this change
> - IScrollProvider::get_HorizontallyScrollable
> - IScrollProvider::get_VerticallyScrollable
> - IScrollProvider::get_HorizontalScrollPercent
> - IScrollProvider::get_VerticalScrollPercent
> 
> This information is required by Screen readers to announce the current
> scroll position and extent of scroll to the user.
> 
> Tests: The best way to test this change will be through browser tests.
> However, it requires the second part of the change, detailed in the
> associated bug, to be completed.
> 
> Bug: 1034521
> Change-Id: I11067b2af4d5bd73e62d89c8ce86fb00b5f3f7ec
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1969412
> Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> Reviewed-by: Lei Zhang <thestig@chromium.org>
> Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
> Commit-Queue: Virender Singh <virens@microsoft.com>
> Cr-Commit-Position: refs/heads/master@{#727858}

TBR=dcheng@chromium.org,thestig@chromium.org,manojb@microsoft.com,mohitb@microsoft.com,virens@microsoft.com,ankk@microsoft.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 1034521
Change-Id: If82ca15040193884cd03891419d7065da425fcf6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1985011
Reviewed-by: Balazs Engedy <engedy@chromium.org>
Commit-Queue: Balazs Engedy <engedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#727956}
2020-01-02 10:30:52 +00:00
Virender Singh
a351b484e7 Add viewport scroll information to PDFAccessibilityTree
This CL adds following information to PDFAccessibilityTree
- ax::mojom::IntAttribute::kScrollXMin
- ax::mojom::IntAttribute::kScrollXMax
- ax::mojom::IntAttribute::kScrollX
- ax::mojom::IntAttribute::kScrollYMin
- ax::mojom::IntAttribute::kScrollYMax
- ax::mojom::IntAttribute::kScrollY

It enables partial implementation of IScrollProvider, following methods
will work with this change
- IScrollProvider::get_HorizontallyScrollable
- IScrollProvider::get_VerticallyScrollable
- IScrollProvider::get_HorizontalScrollPercent
- IScrollProvider::get_VerticalScrollPercent

This information is required by Screen readers to announce the current
scroll position and extent of scroll to the user.

Tests: The best way to test this change will be through browser tests.
However, it requires the second part of the change, detailed in the
associated bug, to be completed.

Bug: 1034521
Change-Id: I11067b2af4d5bd73e62d89c8ce86fb00b5f3f7ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1969412
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
Commit-Queue: Virender Singh <virens@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#727858}
2019-12-31 08:36:47 +00:00
Mansi Awasthi
abbdd54e28 Implement PdfAXActionTarget::SetSelection method
Added a new action PP_PDF_SET_SELECTION to PP_PdfAccessibilityAction and
selection specific data in PP_PdfAccessibilityActionData. Implemented
PdfAXActionTarget::SetSelection method to send selection data to plugin.
PDFiumEngine handles PP_PDF_SET_SELECTION action and set the selection
in plugin. Added the tests to validate if write action data is sent from
Mimehandler to Plugin for selection and also if the action is correctly
executed in Plugin.

Bug: 1023283
Change-Id: I9112698757d7516d38f29e88174f10da71673b1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1934127
Commit-Queue: Mansi Awasthi <maawas@microsoft.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#727044}
2019-12-21 11:17:54 +00:00
Gabriel Charette
e926fc1eb8 [base] Move TaskRunner::RunsTasksInCurrentSequence() to SequencedTaskRunner
The vast majority of this CL is about changing code that used
base::TaskRunner and invoked RunsTasksInCurrentSequence() on it.

For the most part this CL is a logical no-op and a semantical
improvement as almost all APIs who loosely took a TaskRunner in fact
required a SequencedTaskRunner (e.g. were accessing unsynchronized
state) but it "worked" because their callers already happened to provide
task runners that were Sequenced/SingleThreadTaskRunners.

Some impls even used single-threaded APIs such as MessageLoopCurrent or
declaring methods invoked from that TaskRunner as "must run on the UI
thread". Those were changed to use SingleThreadTaskRunner (again, all
callers already were providing one but the API was too loose).

In a few cases where a parallel TaskRunner was actually intended, some
DCHECK(task_runner->RunsTasksInCurrentSequence()) were simply removed as
they were mere impl details, already obvious by the context. There was a
single case where it made sense to assert "doesn't run on a core thread"
in wallpaper_resizer.cc; that was migrated to
base::AssertLongCPUWorkAllowed().

Implementations of base::TaskRunner were either promoted to
Sequenced/SingleThreadTaskRunner when that's what it was actually used
as or the RunsTasksInCurrentSequence() override was removed.

The few actual logic changes:
 - ash/.../wallpaper_resizer.cc : base::AssertLongCPUWorkAllowed()
 - base/android/.../task_runner_android.h : TODO to make the same change
       on the Java side, for now things seem happy when always returning
       false from parallel TaskRunnerImpl.

Removed dead code:
 - base::debug::ActivityTracker::SetBackgroundTaskRunner()
 - AfterStartupTaskUtils::Runner
 - net/url_request/test_url_request_interceptor.(h|cc)

Includes were mostly kept as-is (fwd-decls as fwd-decls and
includes-as-includes) except where it was outright wrong or necessary to
make callers happy (remember that foo.h is required in order to have
scoped_refptr<Foo> be fully defined -- and hence required by IWYU if you
have such a member and arguably if taking/returning one by value as part
of your core API).

Pointer semantics are also intentionally unchanged unless 100% incorrect
and easy to update in place (e.g. in some cases raw pointers are used to
return refcounted objects; that should probably be fixed, but not in this
CL).

Bug: 1026641
Change-Id: I1b33744d3a30a05fdb091d3f976270cd59917873
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1957211
Reviewed-by: Anton Bikineev <bikineev@chromium.org>
Reviewed-by: Miguel Casas <mcasas@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Brian White <bcwhite@chromium.org>
Reviewed-by: Brad Nelson <bradnelson@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Maksim Orlovich <morlovich@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Istiaque Ahmed <lazyboy@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Sorin Jianu <sorin@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Reviewed-by: François Doray <fdoray@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#725203}
2019-12-16 19:00:02 +00:00
Virender Singh
9ee0969926 Implement scroll to global point action in PDFiumEngine
This change adds the following
- Adds name PP_PDF_SCROLL_TO_GLOBAL_POINT in PP_PdfAccessibilityAction
  action enum.
- Handle PP_PDF_SCROLL_TO_GLOBAL_POINT action in PDFiumEngine.
  The action is used by certain screen readers to
  scroll content in viewport during continuous read operation.

Bug: 811233
Change-Id: I725a5295f42049af139856ce9815799cf67c0088
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1954800
Commit-Queue: Virender Singh <virens@microsoft.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#724911}
2019-12-14 04:18:41 +00:00
Ankit Kumar 🌪️
9b5487d5c9 Rename link to annotation in PDF a11y action handling pipeline
Earlier we only had link in PDF a11y on which action could be performed.
Now more annotations are to be added in PDF a11y which are actionable.
e.g. highlights.
This CL renames the variables and functions from link to annotation in
action handling pipeline as the same variables and functions will be
used for all actionable annotations.
Additionally an enum PP_PdfAccessibilityAnnotationType is introduced to
disambiguate between the different annotations on which action is to be
performed.

Bug: 1008775
Change-Id: I1b6d75976c49dba5778cb3e7871df318f023779b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1958495
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#724262}
2019-12-12 18:09:04 +00:00
Virender Singh
dfc6c794d4 Honoring DPI changes in PdfAccessibilityTree
This change fixes the incorrect scale that we apply to root transform
in PdfAccessibilityTree. At present, we remove the dpi factor from root
transform. This results in only zoom factor being applied when
calculating bounds. For Windows, device scaling is also handled by
application. This is not the case with Mac. As a result, conditional
scale calculation, based on OS, should be done.

Fix uses content::IsUseZoomForDSFEnabled() to find out the correct
scale that needs to be applied.

Bug: 1007169
Change-Id: I4cda488b8acf3823178b4ff68503b081e12aeaa2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1820697
Commit-Queue: Virender Singh <virens@microsoft.com>
Reviewed-by: Ian Prest <iapres@microsoft.com>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#720834}
2019-12-03 05:40:03 +00:00
Kalpak Tapas
decd58f2f3 Reland "Add annotation structs for PDF accessibility"
This is a reland of 4389c2c30c

This change was reverted due to "Windows Deterministic" bot failing. These bots
seems to have a problem with any changes to ppapi/. I am suppressing the errors
in CL:1924340.

This is the exact same CL as the one that was reverted.

Original change's description:
> Add annotation structs for PDF accessibility
>
> This change adds new *AccessibilityAnnotInfo structs to transfer
> accessibility related PDF annotation data from the plugin process up to
> the mimehandler process via the pepper API. This annotation information
> is bundled along with links and images into the
> *AccessibilityPageObjects group of structs introduced as a part of
> http://crrev.com/c/1831957. It will be populated from within pdfium_page
> in a subsequent change.
>
> Bug: 1008775
> Change-Id: I89eabc8f56c135eac95c2c887d33854fbccbbcb7
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1837558
> Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> Reviewed-by: Lei Zhang <thestig@chromium.org>
> Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
> Reviewed-by: Bill Budge <bbudge@chromium.org>
> Reviewed-by: Ian Prest <iapres@microsoft.com>
> Commit-Queue: Kalpak Tapas <katapas@microsoft.com>
> Cr-Commit-Position: refs/heads/master@{#716555}

TBR=dcheng@chromium.org,kbabbitt@microsoft.com,bbudge@chromium.org,
iapres@microsoft.com

Bug: 1008775
Change-Id: I6fa8d63e81076dae291ccc74cd9a32e5eb78078d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1926107
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Ankit Kumar 🌪️ <ankk@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#718075}
2019-11-22 09:36:51 +00:00
Alex Ilin
164422db5e [ppapi] Clean up all references to deprecated shared memory
ppapi no longer uses the deprecated shared memory API. This CL removes
all remaining references to base/memory/shared_memory.h and
base/memory/shared_memory_handle.h

Bug: 795291
Change-Id: I4db95d35b7276f2d4b7d5ebb39f6eda4845ab3fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1919158
Auto-Submit: Alex Ilin <alexilin@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Commit-Queue: Alex Ilin <alexilin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#716966}
2019-11-20 12:18:18 +00:00
Kevin Marshall
3692b43aae Revert "Add annotation structs for PDF accessibility"
This reverts commit 4389c2c30c.

Reason for revert: Strong candidate for breaking deterministic build of libppapi_cpp_lib.so.

Bug:1025146

Original change's description:
> Add annotation structs for PDF accessibility
> 
> This change adds new *AccessibilityAnnotInfo structs to transfer
> accessibility related PDF annotation data from the plugin process up to
> the mimehandler process via the pepper API. This annotation information
> is bundled along with links and images into the
> *AccessibilityPageObjects group of structs introduced as a part of
> http://crrev.com/c/1831957. It will be populated from within pdfium_page
> in a subsequent change.
> 
> Bug: 1008775
> Change-Id: I89eabc8f56c135eac95c2c887d33854fbccbbcb7
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1837558
> Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> Reviewed-by: Lei Zhang <thestig@chromium.org>
> Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
> Reviewed-by: Bill Budge <bbudge@chromium.org>
> Reviewed-by: Ian Prest <iapres@microsoft.com>
> Commit-Queue: Kalpak Tapas <katapas@microsoft.com>
> Cr-Commit-Position: refs/heads/master@{#716555}

TBR=dcheng@chromium.org,bbudge@chromium.org,thestig@chromium.org,manojb@microsoft.com,mohitb@microsoft.com,iapres@microsoft.com,virens@microsoft.com,ankk@microsoft.com,katapas@microsoft.com

Change-Id: If77022401de34d4f927a5cf07eca06ffd2c0d939
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1008775
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1925331
Reviewed-by: Kevin Marshall <kmarshall@chromium.org>
Commit-Queue: Kevin Marshall <kmarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#716751}
2019-11-19 19:51:46 +00:00
Kalpak Tapas
4389c2c30c Add annotation structs for PDF accessibility
This change adds new *AccessibilityAnnotInfo structs to transfer
accessibility related PDF annotation data from the plugin process up to
the mimehandler process via the pepper API. This annotation information
is bundled along with links and images into the
*AccessibilityPageObjects group of structs introduced as a part of
http://crrev.com/c/1831957. It will be populated from within pdfium_page
in a subsequent change.

Bug: 1008775
Change-Id: I89eabc8f56c135eac95c2c887d33854fbccbbcb7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1837558
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Reviewed-by: Ian Prest <iapres@microsoft.com>
Commit-Queue: Kalpak Tapas <katapas@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#716555}
2019-11-19 09:52:47 +00:00
Alex Ilin
778f23abef Remove unused code for sharing shared memory handles with plugins
This CL removes code that shares base::SharedMemoryHandle with remote.
This code is no longer used because base::SharedMemoryHandle is
deprecated and replaced with base::*SharedMemoryRegion.

Bug: 795291
Change-Id: I5974bd77b6e40bee662dc2fb4092b7a61f725afb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1916827
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Auto-Submit: Alex Ilin <alexilin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#715867}
2019-11-15 21:48:32 +00:00
kylechar
37594cbfa3 Fix assigning NULL to scoped_refptr
Update code where NULL or 0 is assigned to a scoped_refptr to reset it. Just
call reset() instead. If operator=(std::nullptr_t) is added these assignments
become ambiguous.

This CL was uploaded by git cl split.

R=raymes@chromium.org

Bug: 1024981
Change-Id: Ia3973b95ed896197678e47de7697f68c3ab2e784
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1918156
Auto-Submit: kylechar <kylechar@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Commit-Queue: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#715710}
2019-11-15 16:41:17 +00:00
Benjamin Beaudry
be0c98e80b Reland "Pdf a11y: Populate AXNode with new text style info"
This is a reland of cc4f1e5fe4

This change was reverted due to "Windows Deterministic" bot failing. Apparently,
these bots seems to have a problem with any changes to ppapi/. Currently, the
only way we know is to try again.

This is the exact same CL as the one that was reverted.

Original change's description:
> Pdf a11y: Populate AXNode with new text style info
>
> This change fills the font-family, font-size, font-weight, italic, bold
> and color attributes of the AXNode with exposed values from the PDFium
> APIs.
>
> I've also added a PDF accessibility tree dump test using the filter
> properties to dump those attributes in the expected file. The test file
> is "text-style.pdf".
>
> Somehow, I added in a previous change text-format-expected-blink.txt.
> This file should have never been committed. I removed it in this CL.
>
> Bug: 985604
> Change-Id: I70a4729269aea69e184e61710d7977425b431704
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1755412
> Reviewed-by: Lei Zhang <thestig@chromium.org>
> Reviewed-by: Tom Sepez <tsepez@chromium.org>
> Reviewed-by: Bill Budge <bbudge@chromium.org>
> Reviewed-by: Ian Prest <iapres@microsoft.com>
> Commit-Queue: Lei Zhang <thestig@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#711942}

TBR=raymes@chromium.org,bbudge@chromium.org,iapres@microsoft.com,tsepez@chromium.org

Bug: 985604
Change-Id: I4030926c8aff39c05e45b8cdc3a3262d94158c8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1898162
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712455}
2019-11-05 05:10:22 +00:00
Andy Paicu
4fa5f2c4cf Revert "Pdf a11y: Populate AXNode with new text style info"
This reverts commit cc4f1e5fe4.

Reason for revert: Suspect CL for buildbot failure

Breaks "Windows deterministic" build: https://ci.chromium.org/p/chromium/builders/ci/Windows%20deterministic

First build breakage:
https://ci.chromium.org/p/chromium/builders/ci/Windows%20deterministic/15095

Original change's description:
> Pdf a11y: Populate AXNode with new text style info
> 
> This change fills the font-family, font-size, font-weight, italic, bold
> and color attributes of the AXNode with exposed values from the PDFium
> APIs.
> 
> I've also added a PDF accessibility tree dump test using the filter
> properties to dump those attributes in the expected file. The test file
> is "text-style.pdf".
> 
> Somehow, I added in a previous change text-format-expected-blink.txt.
> This file should have never been committed. I removed it in this CL.
> 
> Bug: 985604
> Change-Id: I70a4729269aea69e184e61710d7977425b431704
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1755412
> Reviewed-by: Lei Zhang <thestig@chromium.org>
> Reviewed-by: Tom Sepez <tsepez@chromium.org>
> Reviewed-by: Bill Budge <bbudge@chromium.org>
> Reviewed-by: Ian Prest <iapres@microsoft.com>
> Commit-Queue: Lei Zhang <thestig@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#711942}

TBR=raymes@chromium.org,bbudge@chromium.org,thestig@chromium.org,tsepez@chromium.org,iapres@microsoft.com,benjamin.beaudry@microsoft.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 985604
Change-Id: I021810bfe76c64591c7ed99ea0a6efcd66db6032
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1895349
Reviewed-by: Andy Paicu <andypaicu@chromium.org>
Commit-Queue: Andy Paicu <andypaicu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712149}
2019-11-04 17:33:59 +00:00
Benjamin Beaudry
cc4f1e5fe4 Pdf a11y: Populate AXNode with new text style info
This change fills the font-family, font-size, font-weight, italic, bold
and color attributes of the AXNode with exposed values from the PDFium
APIs.

I've also added a PDF accessibility tree dump test using the filter
properties to dump those attributes in the expected file. The test file
is "text-style.pdf".

Somehow, I added in a previous change text-format-expected-blink.txt.
This file should have never been committed. I removed it in this CL.

Bug: 985604
Change-Id: I70a4729269aea69e184e61710d7977425b431704
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1755412
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Reviewed-by: Ian Prest <iapres@microsoft.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711942}
2019-11-02 00:21:14 +00:00
Lei Zhang
0b19547cea Add thestig@ as OWNER of PDF-related ppapi interfaces
Change-Id: I5c0d2fef2be40763babc8bd604df7e160551f645
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1895318
Reviewed-by: Bill Budge <bbudge@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711832}
2019-11-01 20:12:39 +00:00
kylechar
8b8ecebb11 Fix scoped_refptr construction from NULL
This is a precursor to adding a new scoped_refptr(std::nullptr_t)
constructor. The implicit conversion from NULL to scoped_refptr<T>
causes a compilation error with the new constructor. Replace NULL with
nullptr in any files where this is a problem.

This CL was uploaded by git cl split.

R=raymes@chromium.org

Bug: 1018887
Change-Id: I2b2693e82a1aaf15022a680dda56122b7b09a6ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1885013
Auto-Submit: kylechar <kylechar@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#710423}
2019-10-29 20:08:10 +00:00
Benjamin Beaudry
47a6104258 Pdf a11y: Forward style APIs to PdfAccessibilityTree
In changes pdfium:60110, pdfium:60410 and pdfium:59670, we exposed new
APIs for text style: fill/stroke color, rendering mode and weight.
This change forwards these new available text properties(+ font-family,
which was already exposed) to the
ppapi::PrivateAccessibilityTextRunInfo struct. We use an object of
this type in PdfAccessibilityTree to create the AXNode.

The next step is to populate this information on AXNode.

Bug: 985604
Change-Id: Ia2e41c5427cfb972c071c2a3608631a4f23e6ff8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1752165
Commit-Queue: Benjamin Beaudry <benjamin.beaudry@microsoft.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Ian Prest <iapres@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#710404}
2019-10-29 18:44:51 +00:00
Jakob Gruber
dfa06417b4 Remove all infrastructure for the V8 natives blob
The V8 natives blob (natives_blob.bin) is unused and will shortly be
removed in V8. This CL removes all related infrastructure in chromium.

Specifically, this means that natives_blob.bin is no longer

1. generated during the build process,
2. installed on the target system,
3. loaded by chrome at runtime, and
4. passed to V8.

Tbr: oksamyt@chromium.org
Bug: v8:7624
Change-Id: I535d4308a8aa539c354a212174d47ade411bc89d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1847217
Reviewed-by: Oksana Zhuravlova <oksamyt@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Greg Thompson <grt@chromium.org>
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708094}
2019-10-22 04:40:39 +00:00