0

[PDF Ink Signatures] Make CreateInkStrokeInput() respect tool_type param

CreateInkStrokeInput(), added in https://crrev.com/1360614, does not
take the tool_type parameter into account. Fix this error so it creates
StrokeInputs with the expected type.

Change-Id: I93a91951aebb7a28ea496a00673206ac24b55df2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5909367
Reviewed-by: Alan Screen <awscreen@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1365042}
This commit is contained in:
Lei Zhang
2024-10-07 18:20:00 +00:00
committed by Chromium LUCI CQ
parent 267279c0c1
commit 9e51e2525d

@ -14,7 +14,7 @@ ink::StrokeInput CreateInkStrokeInput(ink::StrokeInput::ToolType tool_type,
const gfx::PointF& position,
base::TimeDelta elapsed_time) {
return {
.tool_type = ink::StrokeInput::ToolType::kMouse,
.tool_type = tool_type,
.position = {position.x(), position.y()},
.elapsed_time = ink::Duration32::Seconds(
static_cast<float>(elapsed_time.InSecondsF())),