| 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 #ifndef XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ | 7 #ifndef XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ |
| 8 #define XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ | 8 #define XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ |
| 9 | 9 |
| 10 #include "xfa/fxfa/parser/xfa_script.h" | 10 #include "xfa/fxfa/parser/xfa_script.h" |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 CFXJSE_Value**& resultValues, | 397 CFXJSE_Value**& resultValues, |
| 398 int32_t& iCount, | 398 int32_t& iCount, |
| 399 int32_t iStart = 0); | 399 int32_t iStart = 0); |
| 400 static void GetObjectDefaultValue(CFXJSE_Value* pObjectValue, | 400 static void GetObjectDefaultValue(CFXJSE_Value* pObjectValue, |
| 401 CFXJSE_Value* pDefaultValue); | 401 CFXJSE_Value* pDefaultValue); |
| 402 static FX_BOOL SetObjectDefaultValue(CFXJSE_Value* pObjectValue, | 402 static FX_BOOL SetObjectDefaultValue(CFXJSE_Value* pObjectValue, |
| 403 CFXJSE_Value* pNewValue); | 403 CFXJSE_Value* pNewValue); |
| 404 static void GenerateSomExpression(const CFX_ByteStringC& szName, | 404 static void GenerateSomExpression(const CFX_ByteStringC& szName, |
| 405 int32_t iIndexFlags, | 405 int32_t iIndexFlags, |
| 406 int32_t iIndexValue, | 406 int32_t iIndexValue, |
| 407 FX_BOOL bIsStar, | 407 bool bIsStar, |
| 408 CFX_ByteString& szSomExp); | 408 CFX_ByteString& szSomExp); |
| 409 static FX_BOOL GetObjectByName(CFXJSE_Value* pThis, | 409 static FX_BOOL GetObjectByName(CFXJSE_Value* pThis, |
| 410 CFXJSE_Value* accessorValue, | 410 CFXJSE_Value* accessorValue, |
| 411 const CFX_ByteStringC& szAccessorName); | 411 const CFX_ByteStringC& szAccessorName); |
| 412 static int32_t ResolveObjects(CFXJSE_Value* pThis, | 412 static int32_t ResolveObjects(CFXJSE_Value* pThis, |
| 413 CFXJSE_Value* pParentValue, | 413 CFXJSE_Value* pParentValue, |
| 414 const CFX_ByteStringC& bsSomExp, | 414 const CFX_ByteStringC& bsSomExp, |
| 415 XFA_RESOLVENODE_RS& resoveNodeRS, | 415 XFA_RESOLVENODE_RS& resoveNodeRS, |
| 416 FX_BOOL bdotAccessor = TRUE, | 416 FX_BOOL bdotAccessor = TRUE, |
| 417 FX_BOOL bHasNoResolveName = FALSE); | 417 FX_BOOL bHasNoResolveName = FALSE); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 CXFA_Document* GetDocument() const { return m_pDocument; } | 451 CXFA_Document* GetDocument() const { return m_pDocument; } |
| 452 void ThrowException(int32_t iStringID, ...); | 452 void ThrowException(int32_t iStringID, ...); |
| 453 | 453 |
| 454 v8::Isolate* m_pIsolate; | 454 v8::Isolate* m_pIsolate; |
| 455 CFXJSE_Class* m_pFMClass; | 455 CFXJSE_Class* m_pFMClass; |
| 456 std::unique_ptr<CFXJSE_Value> m_pValue; | 456 std::unique_ptr<CFXJSE_Value> m_pValue; |
| 457 CXFA_Document* const m_pDocument; | 457 CXFA_Document* const m_pDocument; |
| 458 }; | 458 }; |
| 459 | 459 |
| 460 #endif // XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ | 460 #endif // XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ |
| OLD | NEW |