summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa/cpdfxfa_app.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-02 12:37:12 -0700
committerCommit bot <commit-bot@chromium.org>2016-11-02 12:37:12 -0700
commit25ec646b2c128a6beaa961ec2b2eeb673ed034ca (patch)
tree1487a9657719d45d3198bae5af744cf515f93e14 /fpdfsdk/fpdfxfa/cpdfxfa_app.h
parent6fe8795d9022105a0061a0a81be9a49d49fda345 (diff)
downloadpdfium-25ec646b2c128a6beaa961ec2b2eeb673ed034ca.tar.xz
Merge CPDFXFA_App into CPDFXFA_Document.
This Cl moves the CPDFXFA_App code into CPDFXFA_Document. Review-Url: https://codereview.chromium.org/2424993002
Diffstat (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_app.h')
-rw-r--r--fpdfsdk/fpdfxfa/cpdfxfa_app.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_app.h b/fpdfsdk/fpdfxfa/cpdfxfa_app.h
deleted file mode 100644
index 763f88da96..0000000000
--- a/fpdfsdk/fpdfxfa/cpdfxfa_app.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef FPDFSDK_FPDFXFA_CPDFXFA_APP_H_
-#define FPDFSDK_FPDFXFA_CPDFXFA_APP_H_
-
-#include "third_party/base/ptr_util.h"
-#include "xfa/fxfa/fxfa.h"
-
-class CPDFSDK_FormFillEnvironment;
-class CJS_Runtime;
-
-class CPDFXFA_App : public IXFA_AppProvider {
- public:
- CPDFXFA_App();
- ~CPDFXFA_App() override;
-
- CXFA_FFApp* GetXFAApp() { return m_pXFAApp.get(); }
-
- void SetFormFillEnv(CPDFSDK_FormFillEnvironment* pFormFillEnv);
-
- v8::Isolate* GetJSERuntime() const;
-
- // IFXA_AppProvider:
- void GetLanguage(CFX_WideString& wsLanguage) override;
- void GetPlatform(CFX_WideString& wsPlatform) override;
- void GetAppName(CFX_WideString& wsName) override;
-
- void Beep(uint32_t dwType) override;
- int32_t MsgBox(const CFX_WideString& wsMessage,
- const CFX_WideString& wsTitle,
- uint32_t dwIconType,
- uint32_t dwButtonType) override;
- CFX_WideString Response(const CFX_WideString& wsQuestion,
- const CFX_WideString& wsTitle,
- const CFX_WideString& wsDefaultAnswer,
- FX_BOOL bMark) override;
-
- IFX_SeekableReadStream* DownloadURL(const CFX_WideString& wsURL) override;
- FX_BOOL PostRequestURL(const CFX_WideString& wsURL,
- const CFX_WideString& wsData,
- const CFX_WideString& wsContentType,
- const CFX_WideString& wsEncode,
- const CFX_WideString& wsHeader,
- CFX_WideString& wsResponse) override;
- FX_BOOL PutRequestURL(const CFX_WideString& wsURL,
- const CFX_WideString& wsData,
- const CFX_WideString& wsEncode) override;
-
- void LoadString(int32_t iStringID, CFX_WideString& wsString) override;
- IFWL_AdapterTimerMgr* GetTimerMgr() override;
-
- private:
- CPDFSDK_FormFillEnvironment* m_pFormFillEnv; // Not owned.
- std::unique_ptr<CXFA_FFApp> m_pXFAApp;
-};
-
-#endif // FPDFSDK_FPDFXFA_CPDFXFA_APP_H_