| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 FPDF_WIDESTRING pTo = (FPDF_WIDESTRING)bsTo.GetBuffer(wsURL.GetLength()); | 270 FPDF_WIDESTRING pTo = (FPDF_WIDESTRING)bsTo.GetBuffer(wsURL.GetLength()); |
| 271 m_pInfo->FFI_GotoURL(m_pInfo, document, pTo); | 271 m_pInfo->FFI_GotoURL(m_pInfo, document, pTo); |
| 272 bsTo.ReleaseBuffer(); | 272 bsTo.ReleaseBuffer(); |
| 273 } | 273 } |
| 274 } | 274 } |
| 275 | 275 |
| 276 void FFI_GetURL(FPDF_DOCUMENT document, CFX_WideString& wsURL) { | 276 void FFI_GetURL(FPDF_DOCUMENT document, CFX_WideString& wsURL) { |
| 277 wsURL = CFX_WideString(); | 277 wsURL = CFX_WideString(); |
| 278 } | 278 } |
| 279 | 279 |
| 280 void FFI_AddDoRecord(FPDF_DOCUMENT document, FPDF_WIDGET hWidget) {} | |
| 281 void FFI_PageEvent(FPDF_PAGE page, FPDF_DWORD flag) {} | 280 void FFI_PageEvent(FPDF_PAGE page, FPDF_DWORD flag) {} |
| 282 | 281 |
| 283 void FFI_GetPageViewRect(FPDF_PAGE page, FS_RECTF& dstRect) { | 282 void FFI_GetPageViewRect(FPDF_PAGE page, FS_RECTF& dstRect) { |
| 284 if (m_pInfo && m_pInfo->FFI_GetPageViewRect) { | 283 if (m_pInfo && m_pInfo->FFI_GetPageViewRect) { |
| 285 double left; | 284 double left; |
| 286 double top; | 285 double top; |
| 287 double right; | 286 double right; |
| 288 double bottom; | 287 double bottom; |
| 289 m_pInfo->FFI_GetPageViewRect(m_pInfo, page, &left, &top, &right, &bottom); | 288 m_pInfo->FFI_GetPageViewRect(m_pInfo, page, &left, &top, &right, &bottom); |
| 290 | 289 |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 } | 732 } |
| 734 | 733 |
| 735 if (nStartPos < m) | 734 if (nStartPos < m) |
| 736 QuickSort(nStartPos, m, bAscend, pCompare); | 735 QuickSort(nStartPos, m, bAscend, pCompare); |
| 737 if (nStopPos > m) | 736 if (nStopPos > m) |
| 738 QuickSort(m, nStopPos, bAscend, pCompare); | 737 QuickSort(m, nStopPos, bAscend, pCompare); |
| 739 } | 738 } |
| 740 }; | 739 }; |
| 741 | 740 |
| 742 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 741 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| OLD | NEW |