| 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 #include "xfa/src/fxfa/app/xfa_fwladapter.h" | 7 #include "xfa/fxfa/app/xfa_fwladapter.h" |
| 8 | 8 |
| 9 #include "xfa/src/fxfa/app/xfa_ffdoc.h" | 9 #include "xfa/fxfa/app/xfa_ffdoc.h" |
| 10 #include "xfa/src/fxfa/app/xfa_fffield.h" | 10 #include "xfa/fxfa/app/xfa_fffield.h" |
| 11 #include "xfa/src/fxfa/app/xfa_ffwidget.h" | 11 #include "xfa/fxfa/app/xfa_ffwidget.h" |
| 12 | 12 |
| 13 void FWL_PostMessageToMainRoop(CFWL_Message* pMessage) {} | 13 void FWL_PostMessageToMainRoop(CFWL_Message* pMessage) {} |
| 14 FX_BOOL FWL_ShowCaret(IFWL_Widget* pWidget, | 14 FX_BOOL FWL_ShowCaret(IFWL_Widget* pWidget, |
| 15 FX_BOOL bVisible, | 15 FX_BOOL bVisible, |
| 16 const CFX_RectF* pRtAnchor) { | 16 const CFX_RectF* pRtAnchor) { |
| 17 CXFA_FFWidget* pXFAWidget = (CXFA_FFWidget*)pWidget->GetPrivateData(pWidget); | 17 CXFA_FFWidget* pXFAWidget = (CXFA_FFWidget*)pWidget->GetPrivateData(pWidget); |
| 18 if (!pXFAWidget) { | 18 if (!pXFAWidget) { |
| 19 return FALSE; | 19 return FALSE; |
| 20 } | 20 } |
| 21 IXFA_DocProvider* pDocProvider = pXFAWidget->GetDoc()->GetDocProvider(); | 21 IXFA_DocProvider* pDocProvider = pXFAWidget->GetDoc()->GetDocProvider(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 52 CFX_RectF& rtPopup) { | 52 CFX_RectF& rtPopup) { |
| 53 CXFA_FFWidget* pFFWidget = (CXFA_FFWidget*)(pWidget->GetPrivateData(pWidget)); | 53 CXFA_FFWidget* pFFWidget = (CXFA_FFWidget*)(pWidget->GetPrivateData(pWidget)); |
| 54 CFX_Matrix mt; | 54 CFX_Matrix mt; |
| 55 pFFWidget->GetRotateMatrix(mt); | 55 pFFWidget->GetRotateMatrix(mt); |
| 56 CFX_RectF rtRotateAnchor(rtAnchor); | 56 CFX_RectF rtRotateAnchor(rtAnchor); |
| 57 mt.TransformRect(rtRotateAnchor); | 57 mt.TransformRect(rtRotateAnchor); |
| 58 pFFWidget->GetDoc()->GetDocProvider()->GetPopupPos( | 58 pFFWidget->GetDoc()->GetDocProvider()->GetPopupPos( |
| 59 pFFWidget, fMinHeight, fMaxHeight, rtRotateAnchor, rtPopup); | 59 pFFWidget, fMinHeight, fMaxHeight, rtRotateAnchor, rtPopup); |
| 60 return TRUE; | 60 return TRUE; |
| 61 } | 61 } |
| OLD | NEW |