OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "ppapi/cpp/private/pdf.h" | 5 #include "ppapi/cpp/private/pdf.h" |
6 | 6 |
7 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" | 7 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" |
8 #include "ppapi/cpp/image_data.h" | 8 #include "ppapi/cpp/image_data.h" |
9 #include "ppapi/cpp/instance_handle.h" | 9 #include "ppapi/cpp/instance_handle.h" |
10 #include "ppapi/cpp/module_impl.h" | 10 #include "ppapi/cpp/module_impl.h" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 selected_text); | 190 selected_text); |
191 } | 191 } |
192 } | 192 } |
193 | 193 |
194 // static | 194 // static |
195 void PDF::SetLinkUnderCursor(const InstanceHandle& instance, const char* url) { | 195 void PDF::SetLinkUnderCursor(const InstanceHandle& instance, const char* url) { |
196 if (has_interface<PPB_PDF>()) | 196 if (has_interface<PPB_PDF>()) |
197 get_interface<PPB_PDF>()->SetLinkUnderCursor(instance.pp_instance(), url); | 197 get_interface<PPB_PDF>()->SetLinkUnderCursor(instance.pp_instance(), url); |
198 } | 198 } |
199 | 199 |
| 200 #if !defined(OS_ANDROID) && defined(V8_USE_EXTERNAL_STARTUP_DATA) |
| 201 // static |
| 202 const char* PDF::GetV8NativesData(const InstanceHandle& instance) { |
| 203 if (has_interface<PPB_PDF>()) |
| 204 return get_interface<PPB_PDF>()->GetV8NativesData(instance.pp_instance()); |
| 205 return NULL; |
| 206 } |
| 207 |
| 208 // static |
| 209 const char* PDF::GetV8SnapshotData(const InstanceHandle& instance) { |
| 210 if (has_interface<PPB_PDF>()) |
| 211 return get_interface<PPB_PDF>()->GetV8SnapshotData(instance.pp_instance()); |
| 212 return NULL; |
| 213 } |
| 214 |
| 215 // static |
| 216 int PDF::GetV8NativesSize(const InstanceHandle& instance) { |
| 217 if (has_interface<PPB_PDF>()) |
| 218 return get_interface<PPB_PDF>()->GetV8NativesSize(instance.pp_instance()); |
| 219 return 0; |
| 220 } |
| 221 |
| 222 // static |
| 223 int PDF::GetV8SnapshotSize(const InstanceHandle& instance) { |
| 224 if (has_interface<PPB_PDF>()) |
| 225 return get_interface<PPB_PDF>()->GetV8SnapshotSize(instance.pp_instance()); |
| 226 return 0; |
| 227 } |
| 228 #endif // #if !defined(OS_ANDROID) && defined(V8_USE_EXTERNAL_STARTUP_DATA) |
| 229 |
200 } // namespace pp | 230 } // namespace pp |
OLD | NEW |