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 
7 #ifndef _FXFA_FORMFILLER_SIGNATURE_IMP_H
8 #define _FXFA_FORMFILLER_SIGNATURE_IMP_H
9 class CXFA_FFSignature final : public CXFA_FFField {
10  public:
11   CXFA_FFSignature(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
12   virtual ~CXFA_FFSignature();
13 
14   virtual void RenderWidget(CFX_Graphics* pGS,
15                             CFX_Matrix* pMatrix = NULL,
16                             FX_DWORD dwStatus = 0,
17                             int32_t iRotate = 0);
18   virtual FX_BOOL LoadWidget();
19   virtual FX_BOOL OnMouseEnter();
20   virtual FX_BOOL OnMouseExit();
21   virtual FX_BOOL OnLButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
22   virtual FX_BOOL OnLButtonUp(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
23   virtual FX_BOOL OnLButtonDblClk(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
24   virtual FX_BOOL OnMouseMove(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
25   virtual FX_BOOL OnMouseWheel(FX_DWORD dwFlags,
26                                int16_t zDelta,
27                                FX_FLOAT fx,
28                                FX_FLOAT fy);
29   virtual FX_BOOL OnRButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
30   virtual FX_BOOL OnRButtonUp(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
31   virtual FX_BOOL OnRButtonDblClk(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
32 
33   virtual FX_BOOL OnKeyDown(FX_DWORD dwKeyCode, FX_DWORD dwFlags);
34   virtual FX_BOOL OnKeyUp(FX_DWORD dwKeyCode, FX_DWORD dwFlags);
35   virtual FX_BOOL OnChar(FX_DWORD dwChar, FX_DWORD dwFlags);
36   virtual FX_DWORD OnHitTest(FX_FLOAT fx, FX_FLOAT fy);
37   virtual FX_BOOL OnSetCursor(FX_FLOAT fx, FX_FLOAT fy);
38 
39  protected:
40 };
41 #endif
42