Kyungjun Lee | 8209e2c | 2023-08-11 23:06:47 | [diff] [blame] | 1 | // 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 | |
| 8 | class SkBitmap; |
| 9 | |
| 10 | namespace chrome_pdf { |
| 11 | |
| 12 | class 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_ |