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

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

Issue 1348433002: Merge to XFA: Refactor fxjs_v8 and add embeddertests for it. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 3 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 | « BUILD.gn ('k') | fpdfsdk/include/javascript/JS_Runtime.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" 10 #include "../../../core/include/fxcrt/fx_string.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 FXJSE_HVALUE hValue) = 0; 146 FXJSE_HVALUE hValue) = 0;
147 virtual FX_BOOL SetHValueByName(const CFX_ByteStringC& utf8Name, 147 virtual FX_BOOL SetHValueByName(const CFX_ByteStringC& utf8Name,
148 FXJSE_HVALUE hValue) = 0; 148 FXJSE_HVALUE hValue) = 0;
149 149
150 protected: 150 protected:
151 virtual ~IFXJS_Runtime() {} 151 virtual ~IFXJS_Runtime() {}
152 }; 152 };
153 153
154 class CJS_RuntimeFactory { 154 class CJS_RuntimeFactory {
155 public: 155 public:
156 CJS_RuntimeFactory() : m_bInit(FALSE), m_nRef(0) {} 156 CJS_RuntimeFactory() : m_bInit(false), m_nRef(0) {}
157 ~CJS_RuntimeFactory(); 157 ~CJS_RuntimeFactory();
158 158
159 IFXJS_Runtime* NewJSRuntime(CPDFDoc_Environment* pApp); 159 IFXJS_Runtime* NewJSRuntime(CPDFDoc_Environment* pApp);
160 void DeleteJSRuntime(IFXJS_Runtime* pRuntime); 160 void DeleteJSRuntime(IFXJS_Runtime* pRuntime);
161 void AddRef(); 161 void AddRef();
162 void Release(); 162 void Release();
163 163
164 private: 164 private:
165 FX_BOOL m_bInit; 165 bool m_bInit;
166 int m_nRef; 166 int m_nRef;
167 }; 167 };
168 168
169 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ 169 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | fpdfsdk/include/javascript/JS_Runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698