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.
5 #ifndef PDF_PDF_ACCESSIBILITY_IMAGE_FETCHER_H_
6 #define PDF_PDF_ACCESSIBILITY_IMAGE_FETCHER_H_
10 namespace chrome_pdf {
12 class PdfAccessibilityImageFetcher {
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;
20 } // namespace chrome_pdf
22 #endif // PDF_PDF_ACCESSIBILITY_IMAGE_FETCHER_H_