Switch to using the new AXRange class for spelling markers and word boundaries
This patch begins using the new AXPosition and AXRange classes in a relatively simple part of the codebase in order to avoid regressions.
It also takes the opportunity to rename AXObject::AXRange to AXSelection in preparation of the use of the new AXSelection class in a subsequent patch.
The C++ Style Guide allows the use of initializer lists {...} when returning from or when calling functions, hence this patch switches to the new style in all the selection related functions. This will make the switch to the new AXSelection class in a subsequent patch easier since a rename at the point of construction will not be needed.
The patch makes some functions that are using the AXRange class not inline because the Style Guide dictates that virtual functions should not be inlined.
R=dmazzoni@chromium.org
Bug: 639340
Change-Id: I8e19986b0937fd6a954dfe1f5631064c5a9c42a2
Reviewed-on: https://chromium-review.googlesource.com/995976Reviewed-by:  Nektarios Paisios <nektar@chromium.org>
Reviewed-by:
Nektarios Paisios <nektar@chromium.org>
Reviewed-by:  Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by:  Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by:
Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by:  Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Nektarios Paisios <nektar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548779}
Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Nektarios Paisios <nektar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548779}
Showing
Please register or sign in to comment