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

Side by Side Diff: fxjs/include/fxjs_v8.h

Issue 2242593002: Make FXJS_GetObjectElement return std::vector<CFX_WideString>. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 4 months 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 | « fxjs/fxjs_v8_embeddertest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 // FXJS_V8 is a layer that makes it easier to define native objects in V8, but 7 // FXJS_V8 is a layer that makes it easier to define native objects in V8, but
8 // has no knowledge of PDF-specific native objects. It could in theory be used 8 // has no knowledge of PDF-specific native objects. It could in theory be used
9 // to implement other sets of native objects. 9 // to implement other sets of native objects.
10 10
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 void FXJS_SetPrivate(v8::Isolate* pIsolate, 204 void FXJS_SetPrivate(v8::Isolate* pIsolate,
205 v8::Local<v8::Object> pObj, 205 v8::Local<v8::Object> pObj,
206 void* p); 206 void* p);
207 void* FXJS_GetPrivate(v8::Isolate* pIsolate, v8::Local<v8::Object> pObj); 207 void* FXJS_GetPrivate(v8::Isolate* pIsolate, v8::Local<v8::Object> pObj);
208 void FXJS_FreePrivate(void* p); 208 void FXJS_FreePrivate(void* p);
209 void FXJS_FreePrivate(v8::Local<v8::Object> pObj); 209 void FXJS_FreePrivate(v8::Local<v8::Object> pObj);
210 void FXJS_Error(v8::Isolate* isolate, const CFX_WideString& message); 210 void FXJS_Error(v8::Isolate* isolate, const CFX_WideString& message);
211 211
212 v8::Local<v8::String> FXJS_WSToJSString(v8::Isolate* pIsolate, 212 v8::Local<v8::String> FXJS_WSToJSString(v8::Isolate* pIsolate,
213 const CFX_WideString& wsPropertyName); 213 const CFX_WideString& wsPropertyName);
214 v8::Local<v8::Value> FXJS_GetObjectElement(v8::Isolate* pIsolate, 214
215 v8::Local<v8::Object> pObj, 215 std::vector<CFX_WideString> FXJS_GetObjectPropertyNames(
216 const CFX_WideString& PropertyName); 216 v8::Isolate* pIsolate,
217 v8::Local<v8::Array> FXJS_GetObjectElementNames(v8::Isolate* pIsolate, 217 v8::Local<v8::Object> pObj);
218 v8::Local<v8::Object> pObj); 218 v8::Local<v8::Value> FXJS_GetObjectProperty(v8::Isolate* pIsolate,
219 v8::Local<v8::Object> pObj,
220 const CFX_WideString& PropertyName);
221
222 unsigned FXJS_GetArrayLength(v8::Local<v8::Array> pArray);
219 v8::Local<v8::Value> FXJS_GetArrayElement(v8::Isolate* pIsolate, 223 v8::Local<v8::Value> FXJS_GetArrayElement(v8::Isolate* pIsolate,
220 v8::Local<v8::Array> pArray, 224 v8::Local<v8::Array> pArray,
221 unsigned index); 225 unsigned index);
222 226
223 unsigned FXJS_GetArrayLength(v8::Local<v8::Array> pArray);
224 void FXJS_PutObjectString(v8::Isolate* pIsolate, 227 void FXJS_PutObjectString(v8::Isolate* pIsolate,
225 v8::Local<v8::Object> pObj, 228 v8::Local<v8::Object> pObj,
226 const CFX_WideString& wsPropertyName, 229 const CFX_WideString& wsPropertyName,
227 const CFX_WideString& wsValue); 230 const CFX_WideString& wsValue);
228 void FXJS_PutObjectNumber(v8::Isolate* pIsolate, 231 void FXJS_PutObjectNumber(v8::Isolate* pIsolate,
229 v8::Local<v8::Object> pObj, 232 v8::Local<v8::Object> pObj,
230 const CFX_WideString& PropertyName, 233 const CFX_WideString& PropertyName,
231 int nValue); 234 int nValue);
232 void FXJS_PutObjectNumber(v8::Isolate* pIsolate, 235 void FXJS_PutObjectNumber(v8::Isolate* pIsolate,
233 v8::Local<v8::Object> pObj, 236 v8::Local<v8::Object> pObj,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 int FXJS_ToInt32(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); 268 int FXJS_ToInt32(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
266 bool FXJS_ToBoolean(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); 269 bool FXJS_ToBoolean(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
267 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); 270 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
268 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, 271 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate,
269 v8::Local<v8::Value> pValue); 272 v8::Local<v8::Value> pValue);
270 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, 273 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate,
271 v8::Local<v8::Value> pValue); 274 v8::Local<v8::Value> pValue);
272 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, 275 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate,
273 v8::Local<v8::Value> pValue); 276 v8::Local<v8::Value> pValue);
274 #endif // FXJS_INCLUDE_FXJS_V8_H_ 277 #endif // FXJS_INCLUDE_FXJS_V8_H_
OLDNEW
« no previous file with comments | « fxjs/fxjs_v8_embeddertest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698