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

Side by Side Diff: fpdfsdk/include/jsapi/fxjs_v8.h

Issue 1389003003: Remove unused global argument from FXJS_CONSTRUCTOR. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | fpdfsdk/src/javascript/JS_Define.h » ('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 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 // PDFium wrapper around V8 APIs. PDFium code should include this file rather 7 // PDFium wrapper around V8 APIs. PDFium code should include this file rather
8 // than including V8 headers directly. 8 // than including V8 headers directly.
9 9
10 #ifndef FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ 10 #ifndef FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 extern const wchar_t kFXJSValueNameNull[]; 50 extern const wchar_t kFXJSValueNameNull[];
51 extern const wchar_t kFXJSValueNameUndefined[]; 51 extern const wchar_t kFXJSValueNameUndefined[];
52 52
53 53
54 class FXJS_ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { 54 class FXJS_ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
55 void* Allocate(size_t length) override; 55 void* Allocate(size_t length) override;
56 void* AllocateUninitialized(size_t length) override; 56 void* AllocateUninitialized(size_t length) override;
57 void Free(void* data, size_t length) override; 57 void Free(void* data, size_t length) override;
58 }; 58 };
59 59
60 using FXJS_CONSTRUCTOR = void (*)(IFXJS_Context* cc, 60 using FXJS_CONSTRUCTOR = void (*)(IFXJS_Context* cc, v8::Local<v8::Object> obj);
61 v8::Local<v8::Object> obj,
62 v8::Local<v8::Object> global);
63 using FXJS_DESTRUCTOR = void (*)(v8::Local<v8::Object> obj); 61 using FXJS_DESTRUCTOR = void (*)(v8::Local<v8::Object> obj);
64 62
65 // Call before making FXJS_PrepareIsolate call. 63 // Call before making FXJS_PrepareIsolate call.
66 void FXJS_Initialize(unsigned int embedderDataSlot, v8::Isolate* pIsolate); 64 void FXJS_Initialize(unsigned int embedderDataSlot, v8::Isolate* pIsolate);
67 void FXJS_Release(); 65 void FXJS_Release();
68 66
69 // Gets the global isolate set by FXJS_Initialize(), or makes a new one each 67 // Gets the global isolate set by FXJS_Initialize(), or makes a new one each
70 // time if there is no such isolate. Returns true if a new isolate had to be 68 // time if there is no such isolate. Returns true if a new isolate had to be
71 // created. 69 // created.
72 bool FXJS_GetIsolate(v8::Isolate** pResultIsolate); 70 bool FXJS_GetIsolate(v8::Isolate** pResultIsolate);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); 211 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
214 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, 212 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate,
215 v8::Local<v8::Value> pValue); 213 v8::Local<v8::Value> pValue);
216 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, 214 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate,
217 v8::Local<v8::Value> pValue); 215 v8::Local<v8::Value> pValue);
218 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, 216 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate,
219 v8::Local<v8::Value> pValue); 217 v8::Local<v8::Value> pValue);
220 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); 218 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom);
221 219
222 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ 220 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/javascript/JS_Define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698