[go: nahoru, domu]

blob: 8841592372b215a793bc7ce75ef0805f68d3ee4d [file] [log] [blame]
Kyungjun Lee8209e2c2023-08-11 23:06:471// Copyright 2023 The Chromium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef PDF_PDF_ACCESSIBILITY_IMAGE_FETCHER_H_
6#define PDF_PDF_ACCESSIBILITY_IMAGE_FETCHER_H_
7
8class SkBitmap;
9
10namespace chrome_pdf {
11
12class PdfAccessibilityImageFetcher {
13 public:
14 virtual ~PdfAccessibilityImageFetcher() = default;
15 // Fetches the image as a 32-bit bitmap for OCR.
16 virtual SkBitmap GetImageForOcr(int32_t page_index,
17 int32_t page_object_index) = 0;
18};
19
20} // namespace chrome_pdf
21
22#endif // PDF_PDF_ACCESSIBILITY_IMAGE_FETCHER_H_