OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_CPDFSDK_ENVIRONMENT_H_ | 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_ |
8 #define FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_ | 8 #define FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 } | 352 } |
353 | 353 |
354 void PageEvent(int iPageCount, uint32_t dwEventType) const { | 354 void PageEvent(int iPageCount, uint32_t dwEventType) const { |
355 if (m_pInfo && m_pInfo->FFI_PageEvent) | 355 if (m_pInfo && m_pInfo->FFI_PageEvent) |
356 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType); | 356 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType); |
357 } | 357 } |
358 #endif // PDF_ENABLE_XFA | 358 #endif // PDF_ENABLE_XFA |
359 | 359 |
360 int JS_appAlert(const FX_WCHAR* Msg, | 360 int JS_appAlert(const FX_WCHAR* Msg, |
361 const FX_WCHAR* Title, | 361 const FX_WCHAR* Title, |
362 FX_UINT Type, | 362 uint32_t Type, |
363 FX_UINT Icon); | 363 uint32_t Icon); |
364 int JS_appResponse(const FX_WCHAR* Question, | 364 int JS_appResponse(const FX_WCHAR* Question, |
365 const FX_WCHAR* Title, | 365 const FX_WCHAR* Title, |
366 const FX_WCHAR* Default, | 366 const FX_WCHAR* Default, |
367 const FX_WCHAR* cLabel, | 367 const FX_WCHAR* cLabel, |
368 FPDF_BOOL bPassword, | 368 FPDF_BOOL bPassword, |
369 void* response, | 369 void* response, |
370 int length); | 370 int length); |
371 void JS_appBeep(int nType); | 371 void JS_appBeep(int nType); |
372 CFX_WideString JS_fieldBrowse(); | 372 CFX_WideString JS_fieldBrowse(); |
373 CFX_WideString JS_docGetFilePath(); | 373 CFX_WideString JS_docGetFilePath(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; | 410 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; |
411 std::unique_ptr<IJS_Runtime> m_pJSRuntime; | 411 std::unique_ptr<IJS_Runtime> m_pJSRuntime; |
412 FPDF_FORMFILLINFO* const m_pInfo; | 412 FPDF_FORMFILLINFO* const m_pInfo; |
413 CPDFSDK_Document* m_pSDKDoc; | 413 CPDFSDK_Document* m_pSDKDoc; |
414 UnderlyingDocumentType* const m_pUnderlyingDoc; | 414 UnderlyingDocumentType* const m_pUnderlyingDoc; |
415 std::unique_ptr<CFFL_IFormFiller> m_pIFormFiller; | 415 std::unique_ptr<CFFL_IFormFiller> m_pIFormFiller; |
416 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; | 416 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; |
417 }; | 417 }; |
418 | 418 |
419 #endif // FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_ | 419 #endif // FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_ |
OLD | NEW |