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

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

Issue 1484843002: Tidy ifdefs in fpdfsdk. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Fix initialization error warning. Created 5 years 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 | « fpdfsdk/include/fsdk_mgr.h ('k') | fpdfsdk/include/jsapi/fxjs_v8.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 FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_
9 9
10 #include "core/include/fxcrt/fx_string.h"
11 #include "core/include/fxcrt/fx_system.h"
12
10 #ifdef PDF_ENABLE_XFA 13 #ifdef PDF_ENABLE_XFA
11 #include "../../../xfa/include/fxjse/fxjse.h" 14 #include "../../../xfa/include/fxjse/fxjse.h"
12 #endif 15 #endif // PDF_ENABLE_XFA
13 #include "core/include/fxcrt/fx_string.h"
14 #include "core/include/fxcrt/fx_system.h"
15 16
16 class CPDFDoc_Environment; 17 class CPDFDoc_Environment;
17 class CPDFSDK_Annot; 18 class CPDFSDK_Annot;
18 class CPDFSDK_Document; 19 class CPDFSDK_Document;
19 class CPDF_Bookmark; 20 class CPDF_Bookmark;
20 class CPDF_FormField; 21 class CPDF_FormField;
21 22
22 // Records the details of an event and triggers JS execution for it. 23 // Records the details of an event and triggers JS execution for it.
23 class IJS_Context { 24 class IJS_Context {
24 public: 25 public:
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual CPDFSDK_Document* GetReaderDocument() = 0; 150 virtual CPDFSDK_Document* GetReaderDocument() = 0;
150 virtual int Execute(IJS_Context* cc, 151 virtual int Execute(IJS_Context* cc,
151 const wchar_t* script, 152 const wchar_t* script,
152 CFX_WideString* info) = 0; 153 CFX_WideString* info) = 0;
153 154
154 #ifdef PDF_ENABLE_XFA 155 #ifdef PDF_ENABLE_XFA
155 virtual FX_BOOL GetHValueByName(const CFX_ByteStringC& utf8Name, 156 virtual FX_BOOL GetHValueByName(const CFX_ByteStringC& utf8Name,
156 FXJSE_HVALUE hValue) = 0; 157 FXJSE_HVALUE hValue) = 0;
157 virtual FX_BOOL SetHValueByName(const CFX_ByteStringC& utf8Name, 158 virtual FX_BOOL SetHValueByName(const CFX_ByteStringC& utf8Name,
158 FXJSE_HVALUE hValue) = 0; 159 FXJSE_HVALUE hValue) = 0;
160 #endif // PDF_ENABLE_XFA
159 161
160 #endif
161 protected: 162 protected:
162 IJS_Runtime() {} 163 IJS_Runtime() {}
163 }; 164 };
164 165
165 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ 166 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_mgr.h ('k') | fpdfsdk/include/jsapi/fxjs_v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698