
Move this helper function out of pdf/pdfium/pdfium_engine.cc and into its own file, so it can be shared with other callers and tested in the future. Change-Id: If83491b95d643cedfb3d4ee5ab69f14553c3bb64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5528975 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Andy Phan <andyphan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1299638}
21 lines
572 B
C++
21 lines
572 B
C++
// Copyright 2024 The Chromium Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef PDF_INPUT_UTILS_H_
|
|
#define PDF_INPUT_UTILS_H_
|
|
|
|
namespace blink {
|
|
class WebMouseEvent;
|
|
} // namespace blink
|
|
|
|
namespace chrome_pdf {
|
|
|
|
// Normalize a blink::WebMouseEvent. For macOS, normalization means transforming
|
|
// the ctrl + left button down events into a right button down event.
|
|
blink::WebMouseEvent NormalizeMouseEvent(const blink::WebMouseEvent& event);
|
|
|
|
} // namespace chrome_pdf
|
|
|
|
#endif // PDF_INPUT_UTILS_H_
|