1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22

pdf / pdf_accessibility_image_fetcher.h [blame]

// Copyright 2023 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_PDF_ACCESSIBILITY_IMAGE_FETCHER_H_
#define PDF_PDF_ACCESSIBILITY_IMAGE_FETCHER_H_

class SkBitmap;

namespace chrome_pdf {

class PdfAccessibilityImageFetcher {
 public:
  virtual ~PdfAccessibilityImageFetcher() = default;
  // Fetches the image as a 32-bit bitmap for OCR.
  virtual SkBitmap GetImageForOcr(int32_t page_index,
                                  int32_t page_object_index) = 0;
};

}  // namespace chrome_pdf

#endif  // PDF_PDF_ACCESSIBILITY_IMAGE_FETCHER_H_