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 #include <time.h> | |
8 #include <cmath> | |
9 #include <limits> | |
10 | |
11 #include "../../../core/include/fxcrt/fx_basic.h" | 7 #include "../../../core/include/fxcrt/fx_basic.h" |
12 #include "../../include/fsdk_define.h" | 8 #include "../../include/fsdk_define.h" |
13 #include "../../include/jsapi/fxjs_v8.h" | 9 #include "../../include/jsapi/fxjs_v8.h" |
14 | 10 |
15 const wchar_t kFXJSValueNameString[] = L"string"; | 11 const wchar_t kFXJSValueNameString[] = L"string"; |
16 const wchar_t kFXJSValueNameNumber[] = L"number"; | 12 const wchar_t kFXJSValueNameNumber[] = L"number"; |
17 const wchar_t kFXJSValueNameBoolean[] = L"boolean"; | 13 const wchar_t kFXJSValueNameBoolean[] = L"boolean"; |
18 const wchar_t kFXJSValueNameDate[] = L"date"; | 14 const wchar_t kFXJSValueNameDate[] = L"date"; |
19 const wchar_t kFXJSValueNameObject[] = L"object"; | 15 const wchar_t kFXJSValueNameObject[] = L"object"; |
20 const wchar_t kFXJSValueNameFxobj[] = L"fxobj"; | 16 const wchar_t kFXJSValueNameFxobj[] = L"fxobj"; |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 return v8::Local<v8::Array>(); | 813 return v8::Local<v8::Array>(); |
818 v8::Local<v8::Context> context = pIsolate->GetCurrentContext(); | 814 v8::Local<v8::Context> context = pIsolate->GetCurrentContext(); |
819 return v8::Local<v8::Array>::Cast(pValue->ToObject(context).ToLocalChecked()); | 815 return v8::Local<v8::Array>::Cast(pValue->ToObject(context).ToLocalChecked()); |
820 } | 816 } |
821 | 817 |
822 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom) { | 818 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom) { |
823 pTo = pFrom; | 819 pTo = pFrom; |
824 } | 820 } |
825 | 821 |
826 | 822 |
OLD | NEW |