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

Side by Side Diff: fpdfsdk/javascript/JS_Runtime_Stub.cpp

Issue 2012253002: Remove FXJSE_HOBJECT and FXJSE_HVALUE for CFXJSE_Value* (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@fxjse_hclass
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 | « fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h ('k') | fpdfsdk/javascript/cjs_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 2015 PDFium Authors. All rights reserved. 1 // Copyright 2015 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 #include <memory> 7 #include <memory>
8 8
9 #include "fpdfsdk/include/fsdk_mgr.h" 9 #include "fpdfsdk/include/fsdk_mgr.h"
10 #include "fpdfsdk/javascript/ijs_context.h" 10 #include "fpdfsdk/javascript/ijs_context.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 IJS_Context* GetCurrentContext() override { return m_pContext.get(); } 133 IJS_Context* GetCurrentContext() override { return m_pContext.get(); }
134 void ReleaseContext(IJS_Context* pContext) override {} 134 void ReleaseContext(IJS_Context* pContext) override {}
135 135
136 void SetReaderDocument(CPDFSDK_Document* pReaderDoc) override { 136 void SetReaderDocument(CPDFSDK_Document* pReaderDoc) override {
137 m_pDoc = pReaderDoc; 137 m_pDoc = pReaderDoc;
138 } 138 }
139 CPDFSDK_Document* GetReaderDocument() override { return m_pDoc; } 139 CPDFSDK_Document* GetReaderDocument() override { return m_pDoc; }
140 140
141 #ifdef PDF_ENABLE_XFA 141 #ifdef PDF_ENABLE_XFA
142 FX_BOOL GetHValueByName(const CFX_ByteStringC&, FXJSE_HVALUE) override { 142 FX_BOOL GetValueByName(const CFX_ByteStringC&, CFXJSE_Value*) override {
143 return FALSE; 143 return FALSE;
144 } 144 }
145 145
146 FX_BOOL SetHValueByName(const CFX_ByteStringC&, FXJSE_HVALUE) override { 146 FX_BOOL SetValueByName(const CFX_ByteStringC&, CFXJSE_Value*) override {
147 return FALSE; 147 return FALSE;
148 } 148 }
149 #endif // PDF_ENABLE_XFA 149 #endif // PDF_ENABLE_XFA
150 150
151 int Execute(IJS_Context* cc, 151 int Execute(IJS_Context* cc,
152 const wchar_t* script, 152 const wchar_t* script,
153 CFX_WideString* info) override { 153 CFX_WideString* info) override {
154 return 0; 154 return 0;
155 } 155 }
156 156
157 protected: 157 protected:
158 CPDFSDK_Document* m_pDoc; 158 CPDFSDK_Document* m_pDoc;
159 std::unique_ptr<CJS_ContextStub> m_pContext; 159 std::unique_ptr<CJS_ContextStub> m_pContext;
160 }; 160 };
161 161
162 // static 162 // static
163 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {} 163 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {}
164 164
165 // static 165 // static
166 IJS_Runtime* IJS_Runtime::Create(CPDFDoc_Environment* pEnv) { 166 IJS_Runtime* IJS_Runtime::Create(CPDFDoc_Environment* pEnv) {
167 return new CJS_RuntimeStub; 167 return new CJS_RuntimeStub;
168 } 168 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h ('k') | fpdfsdk/javascript/cjs_runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698