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/fxcrt/include/fx_ext.h" | 11 #include "core/fxcrt/fx_ext.h" |
12 #include "fpdfsdk/javascript/JS_Define.h" | 12 #include "fpdfsdk/javascript/JS_Define.h" |
13 #include "fpdfsdk/javascript/JS_EventHandler.h" | 13 #include "fpdfsdk/javascript/JS_EventHandler.h" |
14 #include "fpdfsdk/javascript/JS_GlobalData.h" | 14 #include "fpdfsdk/javascript/JS_GlobalData.h" |
15 #include "fpdfsdk/javascript/JS_Object.h" | 15 #include "fpdfsdk/javascript/JS_Object.h" |
16 #include "fpdfsdk/javascript/JS_Value.h" | 16 #include "fpdfsdk/javascript/JS_Value.h" |
17 #include "fpdfsdk/javascript/cjs_context.h" | 17 #include "fpdfsdk/javascript/cjs_context.h" |
18 #include "fpdfsdk/javascript/resource.h" | 18 #include "fpdfsdk/javascript/resource.h" |
19 | 19 |
20 BEGIN_JS_STATIC_CONST(CJS_Global) | 20 BEGIN_JS_STATIC_CONST(CJS_Global) |
21 END_JS_STATIC_CONST() | 21 END_JS_STATIC_CONST() |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 pNewData->nType = JS_GlobalDataType::NULLOBJ; | 433 pNewData->nType = JS_GlobalDataType::NULLOBJ; |
434 pNewData->bPersistent = bDefaultPersistent; | 434 pNewData->bPersistent = bDefaultPersistent; |
435 } break; | 435 } break; |
436 default: | 436 default: |
437 return FALSE; | 437 return FALSE; |
438 } | 438 } |
439 | 439 |
440 m_mapGlobal[propname] = pNewData; | 440 m_mapGlobal[propname] = pNewData; |
441 return TRUE; | 441 return TRUE; |
442 } | 442 } |
OLD | NEW |