[M108 Migration][HBBTV] Implement ewk_context_register_jsplugin_mime_types API
[platform/framework/web/chromium-efl.git] / pdf / accessibility.h
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.
4
5 #ifndef PDF_ACCESSIBILITY_H_
6 #define PDF_ACCESSIBILITY_H_
7
8 #include <stdint.h>
9
10 #include <vector>
11
12 namespace chrome_pdf {
13
14 class PDFEngine;
15 struct AccessibilityCharInfo;
16 struct AccessibilityPageInfo;
17 struct AccessibilityPageObjects;
18 struct AccessibilityTextRunInfo;
19
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
23 // untouched.
24 bool GetAccessibilityInfo(PDFEngine* engine,
25                           int32_t page_index,
26                           AccessibilityPageInfo& page_info,
27                           std::vector<AccessibilityTextRunInfo>& text_runs,
28                           std::vector<AccessibilityCharInfo>& chars,
29                           AccessibilityPageObjects& page_objects);
30
31 }  // namespace chrome_pdf
32
33 #endif  // PDF_ACCESSIBILITY_H_