Introduce enum class SetSelectionBy as replacement of enum EUserTriggered
This patch introduces enum class |SetSelectionBy| as replacement of |EUserTriggered| to allow forward declaration for preparation of the patch[1]. It is done by almost mechanical changes: - s/kUserTriggered/SetSelectionBy::kUser/ - s/kNotUserTriggered/SetSelectionBy::kSystem/ This patch also introduces - ConvertSelectionOptionsToSetSelectionBy() - ConvertSetSelectionByToSetSelectionOptions() as |constexpr| instead of |static inline| to utilize C++11 feature and to avoid |static_cast<>| for improving readability. [1] http://crrev.com/c/569662: Introduce SetSelectionData for FrameSelection: :SetSelection() Change-Id: Ib2f5a1dd942f820cd74ea90c37f9243b93336904 Reviewed-on: https://chromium-review.googlesource.com/579027Reviewed-by:Kent Tamura <tkent@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#488575}
Showing
This diff is collapsed.
Please register or sign in to comment