blob: 1fd0d90e9c5c357875634eee4b6e6d590ab07e64 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PDF_ACCESSIBILITY_H_
#define PDF_ACCESSIBILITY_H_
#include <stdint.h>
#include <vector>
struct PP_PrivateAccessibilityCharInfo;
struct PP_PrivateAccessibilityImageInfo;
struct PP_PrivateAccessibilityLinkInfo;
struct PP_PrivateAccessibilityPageInfo;
struct PP_PrivateAccessibilityTextRunInfo;
namespace chrome_pdf {
class PDFEngine;
// Retrieve |page_info|, |text_runs|, |chars|, |links| and |images| from
// |engine| for the page at 0-indexed |page_index|. Returns true on success with
// all out parameters filled, or false on failure with all out parameters
// untouched.
bool GetAccessibilityInfo(
PDFEngine* engine,
int32_t page_index,
PP_PrivateAccessibilityPageInfo* page_info,
std::vector<PP_PrivateAccessibilityTextRunInfo>* text_runs,
std::vector<PP_PrivateAccessibilityCharInfo>* chars,
std::vector<PP_PrivateAccessibilityLinkInfo>* links,
std::vector<PP_PrivateAccessibilityImageInfo>* images);
} // namespace chrome_pdf
#endif // PDF_ACCESSIBILITY_H_