summaryrefslogtreecommitdiff
path: root/chromium/pdf/pdfium/pdfium_page.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-09-01 11:08:40 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-01 12:16:21 +0000
commit03c549e0392f92c02536d3f86d5e1d8dfa3435ac (patch)
treefe49d170a929b34ba82cd10db1a0bd8e3760fa4b /chromium/pdf/pdfium/pdfium_page.h
parent5d013f5804a0d91fcf6c626b2d6fb6eca5c845b0 (diff)
downloadqtwebengine-chromium-03c549e0392f92c02536d3f86d5e1d8dfa3435ac.tar.gz
BASELINE: Update Chromium to 91.0.4472.160
Change-Id: I0def1f08a2412aeed79a9ab95dd50eb5c3f65f31 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/pdf/pdfium/pdfium_page.h')
-rw-r--r--chromium/pdf/pdfium/pdfium_page.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/pdf/pdfium/pdfium_page.h b/chromium/pdf/pdfium/pdfium_page.h
index 41bbd6c43d6..7be403a785c 100644
--- a/chromium/pdf/pdfium/pdfium_page.h
+++ b/chromium/pdf/pdfium/pdfium_page.h
@@ -14,7 +14,6 @@
#include "base/callback_forward.h"
#include "base/gtest_prod_util.h"
#include "base/optional.h"
-#include "base/strings/string16.h"
#include "pdf/page_orientation.h"
#include "pdf/pdf_engine.h"
#include "ppapi/cpp/private/pdf.h"
@@ -126,9 +125,10 @@ class PDFiumPage {
base::Optional<float>* zoom_value);
// For a named destination with "XYZ" view fit type, pre-processes the in-page
- // x/y coordinate in case it's out of the range of the page dimension.
- float PreProcessInPageCoordX(float x);
- float PreProcessInPageCoordY(float y);
+ // x/y coordinate in case it's out of the range of the page dimension. Then
+ // transform it to a screen coordinate.
+ float PreProcessAndTransformInPageCoordX(float x);
+ float PreProcessAndTransformInPageCoordY(float y);
// Transforms an (x, y) position in page coordinates to screen coordinates.
gfx::PointF TransformPageToScreenXY(const gfx::PointF& xy);
@@ -153,7 +153,7 @@ class PDFiumPage {
static Area FormTypeToArea(int form_type);
// Gets the character at the given index.
- base::char16 GetCharAtIndex(int index);
+ char16_t GetCharAtIndex(int index);
// Gets the number of characters in the page.
int GetCharCount();