| OLD | NEW |
| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 CPDFSDK_Annot* pScreen) override {} | 109 CPDFSDK_Annot* pScreen) override {} |
| 110 void OnScreen_OutView(FX_BOOL bModifier, | 110 void OnScreen_OutView(FX_BOOL bModifier, |
| 111 FX_BOOL bShift, | 111 FX_BOOL bShift, |
| 112 CPDFSDK_Annot* pScreen) override {} | 112 CPDFSDK_Annot* pScreen) override {} |
| 113 void OnBookmark_MouseUp(CPDF_Bookmark* pBookMark) override {} | 113 void OnBookmark_MouseUp(CPDF_Bookmark* pBookMark) override {} |
| 114 void OnLink_MouseUp(CPDFSDK_Document* pTarget) override {} | 114 void OnLink_MouseUp(CPDFSDK_Document* pTarget) override {} |
| 115 void OnMenu_Exec(CPDFSDK_Document* pTarget, const CFX_WideString&) override {} | 115 void OnMenu_Exec(CPDFSDK_Document* pTarget, const CFX_WideString&) override {} |
| 116 void OnBatchExec(CPDFSDK_Document* pTarget) override {} | 116 void OnBatchExec(CPDFSDK_Document* pTarget) override {} |
| 117 void OnConsole_Exec() override {} | 117 void OnConsole_Exec() override {} |
| 118 void OnExternal_Exec() override {} | 118 void OnExternal_Exec() override {} |
| 119 void EnableMessageBox(FX_BOOL bEnable) override {} | |
| 120 }; | 119 }; |
| 121 | 120 |
| 122 class CJS_RuntimeStub final : public IJS_Runtime { | 121 class CJS_RuntimeStub final : public IJS_Runtime { |
| 123 public: | 122 public: |
| 124 CJS_RuntimeStub() : m_pDoc(nullptr) {} | 123 CJS_RuntimeStub() : m_pDoc(nullptr) {} |
| 125 ~CJS_RuntimeStub() override {} | 124 ~CJS_RuntimeStub() override {} |
| 126 | 125 |
| 127 IJS_Context* NewContext() override { | 126 IJS_Context* NewContext() override { |
| 128 if (!m_pContext) | 127 if (!m_pContext) |
| 129 m_pContext.reset(new CJS_ContextStub()); | 128 m_pContext.reset(new CJS_ContextStub()); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 160 // static | 159 // static |
| 161 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {} | 160 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {} |
| 162 | 161 |
| 163 // static | 162 // static |
| 164 void IJS_Runtime::Destroy() {} | 163 void IJS_Runtime::Destroy() {} |
| 165 | 164 |
| 166 // static | 165 // static |
| 167 IJS_Runtime* IJS_Runtime::Create(CPDFDoc_Environment* pEnv) { | 166 IJS_Runtime* IJS_Runtime::Create(CPDFDoc_Environment* pEnv) { |
| 168 return new CJS_RuntimeStub; | 167 return new CJS_RuntimeStub; |
| 169 } | 168 } |
| OLD | NEW |