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