OLD | NEW |
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_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ | 7 #ifndef FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ |
8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ | 8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ |
9 | 9 |
10 #include "xfa/fxfa/include/fxfa.h" | 10 #include "xfa/fxfa/include/fxfa.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 FX_BOOL IsJavaScriptInitialized() const { return m_bJavaScriptInitialized; } | 29 FX_BOOL IsJavaScriptInitialized() const { return m_bJavaScriptInitialized; } |
30 void SetJavaScriptInitialized(FX_BOOL bInitialized) { | 30 void SetJavaScriptInitialized(FX_BOOL bInitialized) { |
31 m_bJavaScriptInitialized = bInitialized; | 31 m_bJavaScriptInitialized = bInitialized; |
32 } | 32 } |
33 | 33 |
34 v8::Isolate* GetJSERuntime() const { return m_pIsolate; } | 34 v8::Isolate* GetJSERuntime() const { return m_pIsolate; } |
35 | 35 |
36 // IFXA_AppProvider: | 36 // IFXA_AppProvider: |
37 void GetAppType(CFX_WideString& wsAppType) override; | 37 void GetAppType(CFX_WideString& wsAppType) override; |
38 void SetAppType(const CFX_WideStringC& wsAppType) override; | 38 void SetAppType(const CFX_WideStringC& wsAppType) override; |
| 39 void SetFoxitAppType(const CFX_WideStringC& wsFoxitAppType) override; |
| 40 void GetFoxitAppType(CFX_WideString& wsFoxitAppType) override; |
39 | 41 |
40 void GetLanguage(CFX_WideString& wsLanguage) override; | 42 void GetLanguage(CFX_WideString& wsLanguage) override; |
41 void GetPlatform(CFX_WideString& wsPlatform) override; | 43 void GetPlatform(CFX_WideString& wsPlatform) override; |
42 void GetVariation(CFX_WideString& wsVariation) override; | 44 void GetVariation(CFX_WideString& wsVariation) override; |
43 void GetVersion(CFX_WideString& wsVersion) override; | 45 void GetVersion(CFX_WideString& wsVersion) override; |
44 void GetFoxitVersion(CFX_WideString& wsFoxitVersion) override { | 46 void GetFoxitVersion(CFX_WideString& wsFoxitVersion) override; |
45 wsFoxitVersion = L"7.0"; | |
46 } | |
47 | 47 |
48 void GetAppName(CFX_WideString& wsName) override; | 48 void GetAppName(CFX_WideString& wsName) override; |
49 void GetFoxitAppName(CFX_WideString& wsFoxitName) override { | 49 void GetFoxitAppName(CFX_WideString& wsFoxitName) override; |
50 wsFoxitName = L"Foxit"; | |
51 } | |
52 | 50 |
53 void Beep(uint32_t dwType) override; | 51 void Beep(uint32_t dwType) override; |
54 int32_t MsgBox(const CFX_WideString& wsMessage, | 52 int32_t MsgBox(const CFX_WideString& wsMessage, |
55 const CFX_WideString& wsTitle, | 53 const CFX_WideString& wsTitle, |
56 uint32_t dwIconType, | 54 uint32_t dwIconType, |
57 uint32_t dwButtonType) override; | 55 uint32_t dwButtonType) override; |
58 CFX_WideString Response(const CFX_WideString& wsQuestion, | 56 CFX_WideString Response(const CFX_WideString& wsQuestion, |
59 const CFX_WideString& wsTitle, | 57 const CFX_WideString& wsTitle, |
60 const CFX_WideString& wsDefaultAnswer, | 58 const CFX_WideString& wsDefaultAnswer, |
61 FX_BOOL bMark) override; | 59 FX_BOOL bMark) override; |
(...skipping 21 matching lines...) Expand all Loading... |
83 static CPDFXFA_App* g_pApp; | 81 static CPDFXFA_App* g_pApp; |
84 | 82 |
85 FX_BOOL m_bJavaScriptInitialized; | 83 FX_BOOL m_bJavaScriptInitialized; |
86 CXFA_FFApp* m_pXFAApp; | 84 CXFA_FFApp* m_pXFAApp; |
87 v8::Isolate* m_pIsolate; | 85 v8::Isolate* m_pIsolate; |
88 IFXJS_Runtime* m_pJSRuntime; | 86 IFXJS_Runtime* m_pJSRuntime; |
89 CFX_WideString m_csAppType; | 87 CFX_WideString m_csAppType; |
90 }; | 88 }; |
91 | 89 |
92 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ | 90 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_APP_H_ |
OLD | NEW |