Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 1 | // Copyright 2014 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 | |
Dan Sinclair | 24ef633 | 2017-07-24 10:52:57 -0400 | [diff] [blame] | 7 | #ifndef XFA_FXFA_CXFA_FFSIGNATURE_H_ |
| 8 | #define XFA_FXFA_CXFA_FFSIGNATURE_H_ |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 9 | |
Dan Sinclair | 24ef633 | 2017-07-24 10:52:57 -0400 | [diff] [blame] | 10 | #include "xfa/fxfa/cxfa_fffield.h" |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 11 | |
| 12 | class CXFA_FFSignature final : public CXFA_FFField { |
| 13 | public: |
dan sinclair | aaf0bdc | 2017-02-04 10:16:21 -0500 | [diff] [blame] | 14 | explicit CXFA_FFSignature(CXFA_WidgetAcc* pDataAcc); |
weili | 47bcd4c | 2016-06-16 08:00:06 -0700 | [diff] [blame] | 15 | ~CXFA_FFSignature() override; |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 16 | |
weili | 47bcd4c | 2016-06-16 08:00:06 -0700 | [diff] [blame] | 17 | // CXFA_FFField |
Dan Sinclair | 2b918c8 | 2017-07-13 14:47:10 -0400 | [diff] [blame] | 18 | void RenderWidget(CXFA_Graphics* pGS, |
Lei Zhang | 7c9d4c2 | 2017-08-17 13:53:52 -0700 | [diff] [blame^] | 19 | const CFX_Matrix& matrix, |
dsinclair | 9d6ca99 | 2016-06-16 10:51:56 -0700 | [diff] [blame] | 20 | uint32_t dwStatus) override; |
tsepez | d19e912 | 2016-11-02 15:43:18 -0700 | [diff] [blame] | 21 | bool LoadWidget() override; |
| 22 | bool OnMouseEnter() override; |
| 23 | bool OnMouseExit() override; |
Dan Sinclair | b45ea1f | 2017-02-21 14:27:59 -0500 | [diff] [blame] | 24 | bool OnLButtonDown(uint32_t dwFlags, const CFX_PointF& point) override; |
| 25 | bool OnLButtonUp(uint32_t dwFlags, const CFX_PointF& point) override; |
| 26 | bool OnLButtonDblClk(uint32_t dwFlags, const CFX_PointF& point) override; |
| 27 | bool OnMouseMove(uint32_t dwFlags, const CFX_PointF& point) override; |
tsepez | d19e912 | 2016-11-02 15:43:18 -0700 | [diff] [blame] | 28 | bool OnMouseWheel(uint32_t dwFlags, |
| 29 | int16_t zDelta, |
Dan Sinclair | b45ea1f | 2017-02-21 14:27:59 -0500 | [diff] [blame] | 30 | const CFX_PointF& pointy) override; |
| 31 | bool OnRButtonDown(uint32_t dwFlags, const CFX_PointF& point) override; |
| 32 | bool OnRButtonUp(uint32_t dwFlags, const CFX_PointF& point) override; |
| 33 | bool OnRButtonDblClk(uint32_t dwFlags, const CFX_PointF& point) override; |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 34 | |
tsepez | d19e912 | 2016-11-02 15:43:18 -0700 | [diff] [blame] | 35 | bool OnKeyDown(uint32_t dwKeyCode, uint32_t dwFlags) override; |
| 36 | bool OnKeyUp(uint32_t dwKeyCode, uint32_t dwFlags) override; |
| 37 | bool OnChar(uint32_t dwChar, uint32_t dwFlags) override; |
Dan Sinclair | b45ea1f | 2017-02-21 14:27:59 -0500 | [diff] [blame] | 38 | FWL_WidgetHit OnHitTest(const CFX_PointF& point) override; |
| 39 | bool OnSetCursor(const CFX_PointF& point) override; |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 40 | }; |
| 41 | |
Dan Sinclair | 24ef633 | 2017-07-24 10:52:57 -0400 | [diff] [blame] | 42 | #endif // XFA_FXFA_CXFA_FFSIGNATURE_H_ |