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

Side by Side Diff: xfa/include/fxjse/fxjse.h

Issue 1434543003: Merge to XFA: Fix all relative includes to third_party. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Fix XFA Created 5 years, 1 month 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
« xfa.gyp ('K') | « xfa.gyp ('k') | no next file » | 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 _FXJSE_H_ 7 #ifndef XFA_INCLUDE_FXJSE_FXJSE_H_
8 #define _FXJSE_H_ 8 #define XFA_INCLUDE_FXJSE_FXJSE_H_
9
10 #include "../../../core/include/fpdfapi/fpdf_parser.h"
Lei Zhang 2015/11/06 21:41:14 It's amazing that this worked before.
Tom Sepez 2015/11/06 22:21:26 IWYU? Nah.
11 #include "../../../core/include/fxcrt/fx_string.h"
12 #include "../../../core/include/fxcrt/fx_system.h"
13
14 class CPDFDoc_Environment;
15 class CPDF_Page;
9 16
10 typedef struct FXJSE_HRUNTIME_ { void* pData; } * FXJSE_HRUNTIME; 17 typedef struct FXJSE_HRUNTIME_ { void* pData; } * FXJSE_HRUNTIME;
11 typedef struct FXJSE_HCONTEXT_ { void* pData; } * FXJSE_HCONTEXT; 18 typedef struct FXJSE_HCONTEXT_ { void* pData; } * FXJSE_HCONTEXT;
12 typedef struct FXJSE_HCLASS_ { void* pData; } * FXJSE_HCLASS; 19 typedef struct FXJSE_HCLASS_ { void* pData; } * FXJSE_HCLASS;
13 typedef struct FXJSE_HVALUE_ { void* pData; } * FXJSE_HVALUE; 20 typedef struct FXJSE_HVALUE_ { void* pData; } * FXJSE_HVALUE;
14 typedef struct FXJSE_HOBJECT_ : public FXJSE_HVALUE_{} * FXJSE_HOBJECT; 21 typedef struct FXJSE_HOBJECT_ : public FXJSE_HVALUE_{} * FXJSE_HOBJECT;
15 22
16 typedef double FXJSE_DOUBLE; 23 typedef double FXJSE_DOUBLE;
17 void FXJSE_Initialize(); 24 void FXJSE_Initialize();
18 void FXJSE_Finalize(); 25 void FXJSE_Finalize();
19 FXJSE_HRUNTIME FXJSE_Runtime_Create(); 26 FXJSE_HRUNTIME FXJSE_Runtime_Create();
20 void FXJSE_Runtime_Release(FXJSE_HRUNTIME hRuntime); 27 void FXJSE_Runtime_Release(FXJSE_HRUNTIME hRuntime);
21 typedef struct _FXJSE_CLASS FXJSE_CLASS; 28 typedef struct _FXJSE_CLASS FXJSE_CLASS;
22 FXJSE_HCONTEXT FXJSE_Context_Create(FXJSE_HRUNTIME hRuntime, 29 FXJSE_HCONTEXT FXJSE_Context_Create(FXJSE_HRUNTIME hRuntime,
23 const FXJSE_CLASS* lpGlobalClass = NULL, 30 const FXJSE_CLASS* lpGlobalClass = nullptr,
24 void* lpGlobalObject = NULL); 31 void* lpGlobalObject = nullptr);
25 void FXJSE_Context_Release(FXJSE_HCONTEXT hContext); 32 void FXJSE_Context_Release(FXJSE_HCONTEXT hContext);
26 FXJSE_HVALUE FXJSE_Context_GetGlobalObject(FXJSE_HCONTEXT hContext); 33 FXJSE_HVALUE FXJSE_Context_GetGlobalObject(FXJSE_HCONTEXT hContext);
27 FXJSE_HRUNTIME FXJSE_Context_GetRuntime(FXJSE_HCONTEXT hContext); 34 FXJSE_HRUNTIME FXJSE_Context_GetRuntime(FXJSE_HCONTEXT hContext);
28 enum FXJSE_CompatibleModeFlags { 35 enum FXJSE_CompatibleModeFlags {
29 FXJSE_COMPATIBLEMODEFLAG_CONSTRUCTOREXTRAMETHODS = (1 << 0), 36 FXJSE_COMPATIBLEMODEFLAG_CONSTRUCTOREXTRAMETHODS = (1 << 0),
30 FXJSE_COMPATIBLEMODEFLAGCOUNT = 1, 37 FXJSE_COMPATIBLEMODEFLAGCOUNT = 1,
31 }; 38 };
32 void FXJSE_Context_EnableCompatibleMode(FXJSE_HCONTEXT hContext, 39 void FXJSE_Context_EnableCompatibleMode(FXJSE_HCONTEXT hContext,
33 FX_DWORD dwCompatibleFlags); 40 FX_DWORD dwCompatibleFlags);
34 class CFXJSE_Arguments { 41 class CFXJSE_Arguments {
35 public: 42 public:
36 FXJSE_HRUNTIME GetRuntime() const; 43 FXJSE_HRUNTIME GetRuntime() const;
37 int32_t GetLength() const; 44 int32_t GetLength() const;
38 FXJSE_HVALUE GetValue(int32_t index) const; 45 FXJSE_HVALUE GetValue(int32_t index) const;
39 FX_BOOL GetBoolean(int32_t index) const; 46 FX_BOOL GetBoolean(int32_t index) const;
40 int32_t GetInt32(int32_t index) const; 47 int32_t GetInt32(int32_t index) const;
41 FX_FLOAT GetFloat(int32_t index) const; 48 FX_FLOAT GetFloat(int32_t index) const;
42 CFX_ByteString GetUTF8String(int32_t index) const; 49 CFX_ByteString GetUTF8String(int32_t index) const;
43 void* GetObject(int32_t index, FXJSE_HCLASS hClass = NULL) const; 50 void* GetObject(int32_t index, FXJSE_HCLASS hClass = nullptr) const;
44 FXJSE_HVALUE GetReturnValue(); 51 FXJSE_HVALUE GetReturnValue();
45 }; 52 };
46 typedef void (*FXJSE_FuncCallback)(FXJSE_HOBJECT hThis, 53 typedef void (*FXJSE_FuncCallback)(FXJSE_HOBJECT hThis,
47 const CFX_ByteStringC& szFuncName, 54 const CFX_ByteStringC& szFuncName,
48 CFXJSE_Arguments& args); 55 CFXJSE_Arguments& args);
49 typedef void (*FXJSE_PropAccessor)(FXJSE_HOBJECT hObject, 56 typedef void (*FXJSE_PropAccessor)(FXJSE_HOBJECT hObject,
50 const CFX_ByteStringC& szPropName, 57 const CFX_ByteStringC& szPropName,
51 FXJSE_HVALUE hValue); 58 FXJSE_HVALUE hValue);
52 typedef int32_t (*FXJSE_PropTypeGetter)(FXJSE_HOBJECT hObject, 59 typedef int32_t (*FXJSE_PropTypeGetter)(FXJSE_HOBJECT hObject,
53 const CFX_ByteStringC& szPropName, 60 const CFX_ByteStringC& szPropName,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 FXJSE_HVALUE hThis, 156 FXJSE_HVALUE hThis,
150 FXJSE_HVALUE hRetValue, 157 FXJSE_HVALUE hRetValue,
151 uint32_t nArgCount, 158 uint32_t nArgCount,
152 FXJSE_HVALUE* lpArgs); 159 FXJSE_HVALUE* lpArgs);
153 FX_BOOL FXJSE_Value_SetFunctionBind(FXJSE_HVALUE hValue, 160 FX_BOOL FXJSE_Value_SetFunctionBind(FXJSE_HVALUE hValue,
154 FXJSE_HVALUE hOldFunction, 161 FXJSE_HVALUE hOldFunction,
155 FXJSE_HVALUE hNewThis); 162 FXJSE_HVALUE hNewThis);
156 FX_BOOL FXJSE_ExecuteScript(FXJSE_HCONTEXT hContext, 163 FX_BOOL FXJSE_ExecuteScript(FXJSE_HCONTEXT hContext,
157 const FX_CHAR* szScript, 164 const FX_CHAR* szScript,
158 FXJSE_HVALUE hRetValue, 165 FXJSE_HVALUE hRetValue,
159 FXJSE_HVALUE hNewThisObject = NULL); 166 FXJSE_HVALUE hNewThisObject = nullptr);
160 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, 167 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name,
161 const CFX_ByteStringC& utf8Message); 168 const CFX_ByteStringC& utf8Message);
162 FX_BOOL FXJSE_ReturnValue_GetMessage(FXJSE_HVALUE hRetValue, 169 FX_BOOL FXJSE_ReturnValue_GetMessage(FXJSE_HVALUE hRetValue,
163 CFX_ByteString& utf8Name, 170 CFX_ByteString& utf8Name,
164 CFX_ByteString& utf8Message); 171 CFX_ByteString& utf8Message);
165 FX_BOOL FXJSE_ReturnValue_GetLineInfo(FXJSE_HVALUE hRetValue, 172 FX_BOOL FXJSE_ReturnValue_GetLineInfo(FXJSE_HVALUE hRetValue,
166 int32_t& nLine, 173 int32_t& nLine,
167 int32_t& nCol); 174 int32_t& nCol);
168 #endif 175
176 #endif // XFA_INCLUDE_FXJSE_FXJSE_H_
OLDNEW
« xfa.gyp ('K') | « xfa.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698