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 "../../include/javascript/IJavaScript.h" | 7 #include "../../include/javascript/IJavaScript.h" |
8 #include "../../include/javascript/JS_Context.h" | 8 #include "../../include/javascript/JS_Context.h" |
9 #include "../../include/javascript/JS_Define.h" | 9 #include "../../include/javascript/JS_Define.h" |
10 #include "../../include/javascript/JS_EventHandler.h" | 10 #include "../../include/javascript/JS_EventHandler.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 #endif | 84 #endif |
85 | 85 |
86 | 86 |
87 BEGIN_JS_STATIC_CONST(CJS_Global) | 87 BEGIN_JS_STATIC_CONST(CJS_Global) |
88 END_JS_STATIC_CONST() | 88 END_JS_STATIC_CONST() |
89 | 89 |
90 BEGIN_JS_STATIC_PROP(CJS_Global) | 90 BEGIN_JS_STATIC_PROP(CJS_Global) |
91 END_JS_STATIC_PROP() | 91 END_JS_STATIC_PROP() |
92 | 92 |
93 BEGIN_JS_STATIC_METHOD(CJS_Global) | 93 BEGIN_JS_STATIC_METHOD(CJS_Global) |
94 » JS_STATIC_METHOD_ENTRY(setPersistent, 2) | 94 » JS_STATIC_METHOD_ENTRY(setPersistent) |
95 END_JS_STATIC_METHOD() | 95 END_JS_STATIC_METHOD() |
96 | 96 |
97 IMPLEMENT_SPECIAL_JS_CLASS(CJS_Global, global_alternate, global); | 97 IMPLEMENT_SPECIAL_JS_CLASS(CJS_Global, global_alternate, global); |
98 | 98 |
99 FX_BOOL CJS_Global::InitInstance(IFXJS_Context* cc) | 99 FX_BOOL CJS_Global::InitInstance(IFXJS_Context* cc) |
100 { | 100 { |
101 CJS_Context* pContext = (CJS_Context*)cc; | 101 CJS_Context* pContext = (CJS_Context*)cc; |
102 ASSERT(pContext != NULL); | 102 ASSERT(pContext != NULL); |
103 | 103 |
104 global_alternate* pGlobal = (global_alternate*)GetEmbedObject(); | 104 global_alternate* pGlobal = (global_alternate*)GetEmbedObject(); |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 if (nHash == JSCONST_nDateHash) | 624 if (nHash == JSCONST_nDateHash) |
625 return VT_date; | 625 return VT_date; |
626 if (nHash == JSCONST_nObjectHash) | 626 if (nHash == JSCONST_nObjectHash) |
627 return VT_object; | 627 return VT_object; |
628 if (nHash == JSCONST_nFXobjHash) | 628 if (nHash == JSCONST_nFXobjHash) |
629 return VT_fxobject; | 629 return VT_fxobject; |
630 | 630 |
631 return VT_unknown; | 631 return VT_unknown; |
632 } | 632 } |
633 | 633 |
OLD | NEW |