OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 |
| 7 #ifndef XFA_FXFA_APP_CXFA_FFFIELDDELEGATE_H_ |
| 8 #define XFA_FXFA_APP_CXFA_FFFIELDDELEGATE_H_ |
| 9 |
| 10 #include "core/fxcrt/fx_coordinates.h" |
| 11 #include "xfa/fwl/core/cfwl_event.h" |
| 12 #include "xfa/fwl/core/cfwl_message.h" |
| 13 #include "xfa/fwl/core/ifwl_widgetdelegate.h" |
| 14 #include "xfa/fxfa/app/xfa_fffield.h" |
| 15 #include "xfa/fxfa/xfa_ffwidget.h" |
| 16 #include "xfa/fxgraphics/cfx_graphics.h" |
| 17 |
| 18 class CXFA_FFFieldDelegate : public IFWL_WidgetDelegate { |
| 19 public: |
| 20 CXFA_FFFieldDelegate(std::unique_ptr<IFWL_WidgetDelegate> pDelegate, |
| 21 CXFA_FFField* const pWidget); |
| 22 ~CXFA_FFFieldDelegate() override; |
| 23 |
| 24 // IFWL_WidgetDelegate |
| 25 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 26 void OnProcessEvent(CFWL_Event* pEvent) override; |
| 27 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 28 const CFX_Matrix* pMatrix) override; |
| 29 |
| 30 protected: |
| 31 std::unique_ptr<IFWL_WidgetDelegate> m_pDelegate; |
| 32 CXFA_FFWidget* const m_pWidget; // Not owned. |
| 33 }; |
| 34 |
| 35 #endif // XFA_FXFA_APP_CXFA_FFFIELDDELEGATE_H_ |
OLD | NEW |