Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: xfa/fxfa/fm2js/xfa_fm2jscontext.h

Issue 2024833003: Remove XFA_HFM2JSCONTEXT. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/fm2js/xfa_fm2jsapi.cpp ('k') | xfa/fxfa/fm2js/xfa_fm2jscontext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 static std::unique_ptr<CFXJSE_Value> GetSimpleValue(CFXJSE_Value* pThis, 425 static std::unique_ptr<CFXJSE_Value> GetSimpleValue(CFXJSE_Value* pThis,
426 CFXJSE_Arguments& args, 426 CFXJSE_Arguments& args,
427 uint32_t index); 427 uint32_t index);
428 static FX_BOOL ValueIsNull(CFXJSE_Value* pThis, CFXJSE_Value* pValue); 428 static FX_BOOL ValueIsNull(CFXJSE_Value* pThis, CFXJSE_Value* pValue);
429 static int32_t ValueToInteger(CFXJSE_Value* pThis, CFXJSE_Value* pValue); 429 static int32_t ValueToInteger(CFXJSE_Value* pThis, CFXJSE_Value* pValue);
430 static FX_FLOAT ValueToFloat(CFXJSE_Value* pThis, CFXJSE_Value* pValue); 430 static FX_FLOAT ValueToFloat(CFXJSE_Value* pThis, CFXJSE_Value* pValue);
431 static FX_DOUBLE ValueToDouble(CFXJSE_Value* pThis, CFXJSE_Value* pValue); 431 static FX_DOUBLE ValueToDouble(CFXJSE_Value* pThis, CFXJSE_Value* pValue);
432 static void ValueToUTF8String(CFXJSE_Value* pValue, 432 static void ValueToUTF8String(CFXJSE_Value* pValue,
433 CFX_ByteString& outputValue); 433 CFX_ByteString& outputValue);
434 434
435 static int32_t Translate(const CFX_WideStringC& wsFormcalc,
436 CFX_WideTextBuf& wsJavascript,
437 CFX_WideString& wsError);
438
435 CXFA_FM2JSContext(v8::Isolate* pScriptIsolate, 439 CXFA_FM2JSContext(v8::Isolate* pScriptIsolate,
436 CFXJSE_Context* pScriptContext, 440 CFXJSE_Context* pScriptContext,
437 CXFA_Document* pDoc); 441 CXFA_Document* pDoc);
438 ~CXFA_FM2JSContext(); 442 ~CXFA_FM2JSContext();
439 443
440 void GlobalPropertyGetter(CFXJSE_Value* pValue); 444 void GlobalPropertyGetter(CFXJSE_Value* pValue);
441 445
442 private: 446 private:
443 v8::Isolate* GetScriptRuntime() const { return m_pIsolate; } 447 v8::Isolate* GetScriptRuntime() const { return m_pIsolate; }
444 CXFA_Document* GetDocument() const { return m_pDocument; } 448 CXFA_Document* GetDocument() const { return m_pDocument; }
445 void ThrowScriptErrorMessage(int32_t iStringID, ...); 449 void ThrowScriptErrorMessage(int32_t iStringID, ...);
446 450
447 v8::Isolate* m_pIsolate; 451 v8::Isolate* m_pIsolate;
448 CFXJSE_Class* m_pFMClass; 452 CFXJSE_Class* m_pFMClass;
449 std::unique_ptr<CFXJSE_Value> m_pValue; 453 std::unique_ptr<CFXJSE_Value> m_pValue;
450 CXFA_Document* const m_pDocument; 454 CXFA_Document* const m_pDocument;
451 }; 455 };
452 456
453 #endif // XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ 457 #endif // XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/fm2js/xfa_fm2jsapi.cpp ('k') | xfa/fxfa/fm2js/xfa_fm2jscontext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698