OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ | 5 #ifndef COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ |
6 #define COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ | 6 #define COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 17 #include "components/pdf/common/pdf.mojom.h" |
17 #include "ipc/ipc_platform_file.h" | 18 #include "ipc/ipc_platform_file.h" |
18 #include "ppapi/c/ppb_image_data.h" | 19 #include "ppapi/c/ppb_image_data.h" |
19 #include "ppapi/c/private/ppb_pdf.h" | 20 #include "ppapi/c/private/ppb_pdf.h" |
20 #include "ppapi/host/resource_host.h" | 21 #include "ppapi/host/resource_host.h" |
21 #include "ppapi/proxy/serialized_structs.h" | 22 #include "ppapi/proxy/serialized_structs.h" |
22 | 23 |
23 namespace content { | 24 namespace content { |
24 class RenderFrame; | 25 class RenderFrame; |
25 class RendererPpapiHost; | 26 class RendererPpapiHost; |
26 } | 27 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 int32_t OnHostMsgSetAccessibilityPageInfo( | 97 int32_t OnHostMsgSetAccessibilityPageInfo( |
97 ppapi::host::HostMessageContext* context, | 98 ppapi::host::HostMessageContext* context, |
98 const PP_PrivateAccessibilityPageInfo& page_info, | 99 const PP_PrivateAccessibilityPageInfo& page_info, |
99 const std::vector<PP_PrivateAccessibilityTextRunInfo>& text_runs, | 100 const std::vector<PP_PrivateAccessibilityTextRunInfo>& text_runs, |
100 const std::vector<PP_PrivateAccessibilityCharInfo>& chars); | 101 const std::vector<PP_PrivateAccessibilityCharInfo>& chars); |
101 | 102 |
102 void CreatePdfAccessibilityTreeIfNeeded(); | 103 void CreatePdfAccessibilityTreeIfNeeded(); |
103 | 104 |
104 content::RenderFrame* GetRenderFrame(); | 105 content::RenderFrame* GetRenderFrame(); |
105 | 106 |
| 107 mojom::PdfService* GetRemotePdfService(); |
| 108 |
106 std::unique_ptr<PdfAccessibilityTree> pdf_accessibility_tree_; | 109 std::unique_ptr<PdfAccessibilityTree> pdf_accessibility_tree_; |
107 | |
108 content::RendererPpapiHost* const host_; | 110 content::RendererPpapiHost* const host_; |
| 111 mojom::PdfServiceAssociatedPtr remote_pdf_service_; |
109 | 112 |
110 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost); | 113 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost); |
111 }; | 114 }; |
112 | 115 |
113 } // namespace pdf | 116 } // namespace pdf |
114 | 117 |
115 #endif // COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ | 118 #endif // COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ |
OLD | NEW |