| 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 XFA_FXFA_APP_XFA_FFTEXT_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFTEXT_H_ |
| 8 #define XFA_FXFA_APP_XFA_FFTEXT_H_ | 8 #define XFA_FXFA_APP_XFA_FFTEXT_H_ |
| 9 | 9 |
| 10 #include "xfa/fxfa/app/xfa_ffdraw.h" | 10 #include "xfa/fxfa/app/xfa_ffdraw.h" |
| 11 | 11 |
| 12 class CXFA_FFText : public CXFA_FFDraw { | 12 class CXFA_FFText : public CXFA_FFDraw { |
| 13 public: | 13 public: |
| 14 CXFA_FFText(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 14 CXFA_FFText(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
| 15 ~CXFA_FFText() override; | 15 ~CXFA_FFText() override; |
| 16 | 16 |
| 17 // CXFA_FFWidget | 17 // CXFA_FFWidget |
| 18 FX_BOOL OnLButtonDown(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) override; | 18 bool OnLButtonDown(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) override; |
| 19 FX_BOOL OnLButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) override; | 19 bool OnLButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) override; |
| 20 FX_BOOL OnMouseMove(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) override; | 20 bool OnMouseMove(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) override; |
| 21 FWL_WidgetHit OnHitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 21 FWL_WidgetHit OnHitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| 22 void RenderWidget(CFX_Graphics* pGS, | 22 void RenderWidget(CFX_Graphics* pGS, |
| 23 CFX_Matrix* pMatrix, | 23 CFX_Matrix* pMatrix, |
| 24 uint32_t dwStatus) override; | 24 uint32_t dwStatus) override; |
| 25 FX_BOOL IsLoaded() override; | 25 bool IsLoaded() override; |
| 26 FX_BOOL PerformLayout() override; | 26 bool PerformLayout() override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 const FX_WCHAR* GetLinkURLAtPoint(FX_FLOAT fx, FX_FLOAT fy); | 29 const FX_WCHAR* GetLinkURLAtPoint(FX_FLOAT fx, FX_FLOAT fy); |
| 30 void FWLToClient(FX_FLOAT& fx, FX_FLOAT& fy); | 30 void FWLToClient(FX_FLOAT& fx, FX_FLOAT& fy); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 #endif // XFA_FXFA_APP_XFA_FFTEXT_H_ | 33 #endif // XFA_FXFA_APP_XFA_FFTEXT_H_ |
| OLD | NEW |