Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: ppapi/cpp/private/pdf.cc

Issue 718453003: Initialize V8 in PDFium from external files (plugin process only) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix API Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/cpp/private/pdf.h ('k') | ppapi/ppapi_internal.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // static 200 // static
201 void PDF::GetV8ExternalSnapshotData(const char** natives_data_out, 201 void PDF::GetV8ExternalSnapshotData(const InstanceHandle& instance,
202 const char** natives_data_out,
202 int* natives_size_out, 203 int* natives_size_out,
203 const char** snapshot_data_out, 204 const char** snapshot_data_out,
204 int* snapshot_size_out) { 205 int* snapshot_size_out) {
205 if (has_interface<PPB_PDF>()) { 206 if (has_interface<PPB_PDF>()) {
206 get_interface<PPB_PDF>()->GetV8ExternalSnapshotData(natives_data_out, 207 get_interface<PPB_PDF>()->GetV8ExternalSnapshotData(instance.pp_instance(),
207 natives_size_out, snapshot_data_out, snapshot_size_out); 208 natives_data_out, natives_size_out, snapshot_data_out,
209 snapshot_size_out);
208 return; 210 return;
209 } 211 }
210 *natives_data_out = NULL; 212 *natives_data_out = NULL;
211 *snapshot_data_out = NULL; 213 *snapshot_data_out = NULL;
212 *natives_size_out = 0; 214 *natives_size_out = 0;
213 *snapshot_size_out = 0; 215 *snapshot_size_out = 0;
214 } 216 }
215 217
216 } // namespace pp 218 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/private/pdf.h ('k') | ppapi/ppapi_internal.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698