| 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" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 v8::FunctionCallback pMethodCall; | 30 v8::FunctionCallback pMethodCall; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 /* ====================================== PUBLIC DEFINE SPEC | 33 /* ====================================== PUBLIC DEFINE SPEC |
| 34 * ============================================== */ | 34 * ============================================== */ |
| 35 #define JS_WIDESTRING(widestring) L## #widestring | 35 #define JS_WIDESTRING(widestring) L## #widestring |
| 36 | 36 |
| 37 #define BEGIN_JS_STATIC_CONST(js_class_name) \ | 37 #define BEGIN_JS_STATIC_CONST(js_class_name) \ |
| 38 JSConstSpec js_class_name::JS_Class_Consts[] = { | 38 JSConstSpec js_class_name::JS_Class_Consts[] = { |
| 39 #define JS_STATIC_CONST_ENTRY_NUMBER(const_name, pValue) \ | 39 #define JS_STATIC_CONST_ENTRY_NUMBER(const_name, pValue) \ |
| 40 { JS_WIDESTRING(const_name), pValue, L"", 0 } \ | 40 { const_name, pValue, L"", 0 } \ |
| 41 , | 41 , |
| 42 #define JS_STATIC_CONST_ENTRY_STRING(const_name, pValue) \ | 42 #define JS_STATIC_CONST_ENTRY_STRING(const_name, pValue) \ |
| 43 { JS_WIDESTRING(const_name), 0, JS_WIDESTRING(pValue), 1 } \ | 43 { const_name, 0, pValue, 1 } \ |
| 44 , | 44 , |
| 45 #define END_JS_STATIC_CONST() \ | 45 #define END_JS_STATIC_CONST() \ |
| 46 { 0, 0, 0, 0 } \ | 46 { 0, 0, 0, 0 } \ |
| 47 } \ | 47 } \ |
| 48 ; | 48 ; |
| 49 | 49 |
| 50 #define BEGIN_JS_STATIC_PROP(js_class_name) \ | 50 #define BEGIN_JS_STATIC_PROP(js_class_name) \ |
| 51 JSPropertySpec js_class_name::JS_Class_Properties[] = { | 51 JSPropertySpec js_class_name::JS_Class_Properties[] = { |
| 52 #define JS_STATIC_PROP_ENTRY(prop_name)
\ | 52 #define JS_STATIC_PROP_ENTRY(prop_name)
\ |
| 53 {
\ | 53 {
\ |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 #define VALUE_NAME_BOOLEAN L"boolean" | 557 #define VALUE_NAME_BOOLEAN L"boolean" |
| 558 #define VALUE_NAME_DATE L"date" | 558 #define VALUE_NAME_DATE L"date" |
| 559 #define VALUE_NAME_OBJECT L"object" | 559 #define VALUE_NAME_OBJECT L"object" |
| 560 #define VALUE_NAME_FXOBJ L"fxobj" | 560 #define VALUE_NAME_FXOBJ L"fxobj" |
| 561 #define VALUE_NAME_NULL L"null" | 561 #define VALUE_NAME_NULL L"null" |
| 562 #define VALUE_NAME_UNDEFINED L"undefined" | 562 #define VALUE_NAME_UNDEFINED L"undefined" |
| 563 | 563 |
| 564 FXJSVALUETYPE GET_VALUE_TYPE(v8::Local<v8::Value> p); | 564 FXJSVALUETYPE GET_VALUE_TYPE(v8::Local<v8::Value> p); |
| 565 | 565 |
| 566 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_ | 566 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_ |
| OLD | NEW |