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 "fpdfsdk/javascript/global.h" | 7 #include "fpdfsdk/javascript/global.h" |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "core/include/fxcrt/fx_ext.h" | 11 #include "core/fxcrt/include/fx_ext.h" |
12 #include "fpdfsdk/include/javascript/IJavaScript.h" | 12 #include "fpdfsdk/include/javascript/IJavaScript.h" |
13 #include "fpdfsdk/javascript/JS_Context.h" | 13 #include "fpdfsdk/javascript/JS_Context.h" |
14 #include "fpdfsdk/javascript/JS_Define.h" | 14 #include "fpdfsdk/javascript/JS_Define.h" |
15 #include "fpdfsdk/javascript/JS_EventHandler.h" | 15 #include "fpdfsdk/javascript/JS_EventHandler.h" |
16 #include "fpdfsdk/javascript/JS_GlobalData.h" | 16 #include "fpdfsdk/javascript/JS_GlobalData.h" |
17 #include "fpdfsdk/javascript/JS_Object.h" | 17 #include "fpdfsdk/javascript/JS_Object.h" |
18 #include "fpdfsdk/javascript/JS_Value.h" | 18 #include "fpdfsdk/javascript/JS_Value.h" |
19 #include "fpdfsdk/javascript/resource.h" | 19 #include "fpdfsdk/javascript/resource.h" |
20 | 20 |
21 /* ---------------------------- global ---------------------------- */ | 21 /* ---------------------------- global ---------------------------- */ |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 return CJS_Value::VT_boolean; | 507 return CJS_Value::VT_boolean; |
508 if (nHash == JSCONST_nDateHash) | 508 if (nHash == JSCONST_nDateHash) |
509 return CJS_Value::VT_date; | 509 return CJS_Value::VT_date; |
510 if (nHash == JSCONST_nObjectHash) | 510 if (nHash == JSCONST_nObjectHash) |
511 return CJS_Value::VT_object; | 511 return CJS_Value::VT_object; |
512 if (nHash == JSCONST_nFXobjHash) | 512 if (nHash == JSCONST_nFXobjHash) |
513 return CJS_Value::VT_fxobject; | 513 return CJS_Value::VT_fxobject; |
514 | 514 |
515 return CJS_Value::VT_unknown; | 515 return CJS_Value::VT_unknown; |
516 } | 516 } |
OLD | NEW |