Refactor granularity adjustment at ComputeVisibleSelection().
This patch excludes text granularity adjustment part from ComputeVisibleSelection() to a function which returns SelectionTemplate<Strategy> for code health. We will have ComputeVisibleSelection(passed_selection) { const SelectionTemplate<Strategy>& xxx_adjusted_selection = AdjustSelectionXXX(passed_selection); const SelectionTemplate<Strategy>& yyy_adjusted_selection = AdjustSelectionYYY(xxx_selection); const SelectionTemplate<Strategy>& zzz_adjusted_selection = AdjustSelectionZZZ(yyy_selection); return zzz_adjusted_selection. } Bug: 775701 Change-Id: I34fefb47fe7b82916a41f0f876030561fc21f1d4 Reviewed-on: https://chromium-review.googlesource.com/748842 Commit-Queue: Yoichi Osato <yoichio@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#513100}
Showing
Please register or sign in to comment