1 // Copyright 2019 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_ACCESSIBILITY_H_
6 #define PDF_ACCESSIBILITY_H_
12 namespace chrome_pdf {
15 struct AccessibilityCharInfo;
16 struct AccessibilityPageInfo;
17 struct AccessibilityPageObjects;
18 struct AccessibilityTextRunInfo;
20 // Retrieve `page_info`, `text_runs`, `chars`, and `page_objects` from
21 // `engine` for the page at 0-indexed `page_index`. Returns true on success with
22 // all out parameters filled, or false on failure with all out parameters
24 bool GetAccessibilityInfo(PDFEngine* engine,
26 AccessibilityPageInfo& page_info,
27 std::vector<AccessibilityTextRunInfo>& text_runs,
28 std::vector<AccessibilityCharInfo>& chars,
29 AccessibilityPageObjects& page_objects);
31 } // namespace chrome_pdf
33 #endif // PDF_ACCESSIBILITY_H_