| 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_INCLUDE_FSDK_MGR_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 108 } |
| 109 | 109 |
| 110 FX_BOOL FFI_IsCTRLKeyDown(uint32_t nFlag) const { | 110 FX_BOOL FFI_IsCTRLKeyDown(uint32_t nFlag) const { |
| 111 return (nFlag & FWL_EVENTFLAG_ControlKey) != 0; | 111 return (nFlag & FWL_EVENTFLAG_ControlKey) != 0; |
| 112 } | 112 } |
| 113 | 113 |
| 114 FX_BOOL FFI_IsALTKeyDown(uint32_t nFlag) const { | 114 FX_BOOL FFI_IsALTKeyDown(uint32_t nFlag) const { |
| 115 return (nFlag & FWL_EVENTFLAG_AltKey) != 0; | 115 return (nFlag & FWL_EVENTFLAG_AltKey) != 0; |
| 116 } | 116 } |
| 117 | 117 |
| 118 FX_BOOL FFI_IsINSERTKeyDown(uint32_t nFlag) const { return FALSE; } | |
| 119 | |
| 120 FPDF_PAGE FFI_GetPage(FPDF_DOCUMENT document, int nPageIndex) { | 118 FPDF_PAGE FFI_GetPage(FPDF_DOCUMENT document, int nPageIndex) { |
| 121 if (m_pInfo && m_pInfo->FFI_GetPage) | 119 if (m_pInfo && m_pInfo->FFI_GetPage) |
| 122 return m_pInfo->FFI_GetPage(m_pInfo, document, nPageIndex); | 120 return m_pInfo->FFI_GetPage(m_pInfo, document, nPageIndex); |
| 123 return NULL; | 121 return NULL; |
| 124 } | 122 } |
| 125 | 123 |
| 126 FPDF_PAGE FFI_GetCurrentPage(FPDF_DOCUMENT document) { | 124 FPDF_PAGE FFI_GetCurrentPage(FPDF_DOCUMENT document) { |
| 127 if (m_pInfo && m_pInfo->FFI_GetCurrentPage) | 125 if (m_pInfo && m_pInfo->FFI_GetCurrentPage) |
| 128 return m_pInfo->FFI_GetCurrentPage(m_pInfo, document); | 126 return m_pInfo->FFI_GetCurrentPage(m_pInfo, document); |
| 129 return NULL; | 127 return NULL; |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 FX_BOOL m_bTakeOverPage; | 638 FX_BOOL m_bTakeOverPage; |
| 641 #endif // PDF_ENABLE_XFA | 639 #endif // PDF_ENABLE_XFA |
| 642 FX_BOOL m_bEnterWidget; | 640 FX_BOOL m_bEnterWidget; |
| 643 FX_BOOL m_bExitWidget; | 641 FX_BOOL m_bExitWidget; |
| 644 FX_BOOL m_bOnWidget; | 642 FX_BOOL m_bOnWidget; |
| 645 FX_BOOL m_bValid; | 643 FX_BOOL m_bValid; |
| 646 FX_BOOL m_bLocked; | 644 FX_BOOL m_bLocked; |
| 647 }; | 645 }; |
| 648 | 646 |
| 649 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 647 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| OLD | NEW |