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

Side by Side Diff: fpdfsdk/include/javascript/IJavaScript.h

Issue 971013002: Merge to XFA: Return error information from pdfium to JS. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 9 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 | « no previous file | fpdfsdk/include/javascript/JS_Define.h » ('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 _IJAVASCRIPT_H_ 7 #ifndef _IJAVASCRIPT_H_
8 #define _IJAVASCRIPT_H_ 8 #define _IJAVASCRIPT_H_
9 9
10 #include "../../../core/include/fxcrt/fx_basic.h"
11 #include "../../../xfa/include/fxjse/fxjse.h"
12
13 class CPDF_Bookmark;
14 class CPDF_FormField;
15 class CPDFSDK_Annot;
16 class CPDFSDK_Document;
17
10 class IFXJS_Context 18 class IFXJS_Context
11 { 19 {
12 public: 20 public:
13 virtual ~IFXJS_Context() { } 21 virtual ~IFXJS_Context() { }
14 virtual FX_BOOL Compile(const CFX_WideString& sc ript, CFX_WideString& info) = 0; 22 virtual FX_BOOL Compile(const CFX_WideString& sc ript, CFX_WideString& info) = 0;
15 virtual FX_BOOL RunScript(const CFX_WideString& script, CFX_WideString& info) = 0; 23 virtual FX_BOOL RunScript(const CFX_WideString& script, CFX_WideString& info) = 0;
16 24
17 virtual void OnApp_Init() = 0; 25 virtual void OnApp_Init() = 0;
18 26
19 virtual void OnDoc_Open(CPDFSDK_Document* pDo c, const CFX_WideString& strTargetName) = 0; 27 virtual void OnDoc_Open(CPDFSDK_Document* pDo c, const CFX_WideString& strTargetName) = 0;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void ReleaseGlobalDat a(); 109 void ReleaseGlobalDat a();
102 private: 110 private:
103 FX_BOOL m_bInit; 111 FX_BOOL m_bInit;
104 int m_nRef; 112 int m_nRef;
105 CJS_GlobalData* m_pGlobalData; 113 CJS_GlobalData* m_pGlobalData;
106 FX_INT32 m_nGlobalDataCou nt; 114 FX_INT32 m_nGlobalDataCou nt;
107 }; 115 };
108 116
109 #endif //_IJAVASCRIPT_H_ 117 #endif //_IJAVASCRIPT_H_
110 118
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/include/javascript/JS_Define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698