| OLD | NEW |
| 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 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_ | 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_ |
| 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_ | 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_ |
| 9 | 9 |
| 10 #include "../jsapi/fxjs_v8.h" | 10 #include "../jsapi/fxjs_v8.h" |
| 11 #include "resource.h" | 11 #include "resource.h" |
| 12 #include "JS_Object.h" | 12 #include "JS_Object.h" |
| 13 #include "JS_Value.h" | 13 #include "JS_Value.h" |
| 14 | 14 |
| 15 struct JSConstSpec | 15 struct JSConstSpec |
| 16 { | 16 { |
| 17 const wchar_t* pName; | 17 const wchar_t* pName; |
| 18 double number; | 18 double number; |
| 19 const wchar_t* string; | 19 const wchar_t* string; |
| 20 » FX_BYTE t; //0:double 1:str | 20 » uint8_t t; //0:double 1:str |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 struct JSPropertySpec | 23 struct JSPropertySpec |
| 24 { | 24 { |
| 25 const wchar_t* pName; | 25 const wchar_t* pName; |
| 26 v8::AccessorGetterCallback pPropGet; | 26 v8::AccessorGetterCallback pPropGet; |
| 27 v8::AccessorSetterCallback pPropPut; | 27 v8::AccessorSetterCallback pPropPut; |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 struct JSMethodSpec | 30 struct JSMethodSpec |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 #define VALUE_NAME_BOOLEAN L"boolean" | 459 #define VALUE_NAME_BOOLEAN L"boolean" |
| 460 #define VALUE_NAME_DATE L"date" | 460 #define VALUE_NAME_DATE L"date" |
| 461 #define VALUE_NAME_OBJECT L"object" | 461 #define VALUE_NAME_OBJECT L"object" |
| 462 #define VALUE_NAME_FXOBJ L"fxobj" | 462 #define VALUE_NAME_FXOBJ L"fxobj" |
| 463 #define VALUE_NAME_NULL L"null" | 463 #define VALUE_NAME_NULL L"null" |
| 464 #define VALUE_NAME_UNDEFINED L"undefined" | 464 #define VALUE_NAME_UNDEFINED L"undefined" |
| 465 | 465 |
| 466 FXJSVALUETYPE GET_VALUE_TYPE(v8::Local<v8::Value> p); | 466 FXJSVALUETYPE GET_VALUE_TYPE(v8::Local<v8::Value> p); |
| 467 | 467 |
| 468 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_ | 468 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_ |
| OLD | NEW |