Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: xfa/fxfa/app/xfa_ffcheckbutton.h

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/theme/cfwl_widgettp.cpp ('k') | xfa/fxfa/app/xfa_ffcheckbutton.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_FFCHECKBUTTON_H_ 7 #ifndef XFA_FXFA_APP_XFA_FFCHECKBUTTON_H_
8 #define XFA_FXFA_APP_XFA_FFCHECKBUTTON_H_ 8 #define XFA_FXFA_APP_XFA_FFCHECKBUTTON_H_
9 9
10 #include "xfa/fxfa/app/xfa_fffield.h" 10 #include "xfa/fxfa/app/xfa_fffield.h"
11 #include "xfa/fxfa/include/xfa_ffpageview.h" 11 #include "xfa/fxfa/include/xfa_ffpageview.h"
12 12
13 class CXFA_FFCheckButton : public CXFA_FFField { 13 class CXFA_FFCheckButton : public CXFA_FFField {
14 public: 14 public:
15 CXFA_FFCheckButton(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); 15 CXFA_FFCheckButton(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
16 virtual ~CXFA_FFCheckButton(); 16 virtual ~CXFA_FFCheckButton();
17 virtual void RenderWidget(CFX_Graphics* pGS, 17 virtual void RenderWidget(CFX_Graphics* pGS,
18 CFX_Matrix* pMatrix = NULL, 18 CFX_Matrix* pMatrix = NULL,
19 uint32_t dwStatus = 0, 19 uint32_t dwStatus = 0,
20 int32_t iRotate = 0); 20 int32_t iRotate = 0);
21 21
22 virtual FX_BOOL LoadWidget(); 22 virtual FX_BOOL LoadWidget();
23 virtual FX_BOOL PerformLayout(); 23 virtual FX_BOOL PerformLayout();
24 virtual FX_BOOL UpdateFWLData(); 24 virtual FX_BOOL UpdateFWLData();
25 virtual void UpdateWidgetProperty(); 25 virtual void UpdateWidgetProperty();
26 virtual FX_BOOL OnLButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); 26 virtual FX_BOOL OnLButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy);
27 void SetFWLCheckState(XFA_CHECKSTATE eCheckState); 27 void SetFWLCheckState(XFA_CHECKSTATE eCheckState);
28 virtual int32_t OnProcessMessage(CFWL_Message* pMessage); 28 virtual void OnProcessMessage(CFWL_Message* pMessage);
29 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent); 29 virtual void OnProcessEvent(CFWL_Event* pEvent);
30 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, 30 virtual void OnDrawWidget(CFX_Graphics* pGraphics,
31 const CFX_Matrix* pMatrix = NULL); 31 const CFX_Matrix* pMatrix = NULL);
32 32
33 protected: 33 protected:
34 virtual FX_BOOL CommitData(); 34 virtual FX_BOOL CommitData();
35 virtual FX_BOOL IsDataChanged(); 35 virtual FX_BOOL IsDataChanged();
36 void CapLeftRightPlacement(CXFA_Margin mgCap); 36 void CapLeftRightPlacement(CXFA_Margin mgCap);
37 void AddUIMargin(int32_t iCapPlacement); 37 void AddUIMargin(int32_t iCapPlacement);
38 XFA_CHECKSTATE FWLState2XFAState(); 38 XFA_CHECKSTATE FWLState2XFAState();
39 IFWL_WidgetDelegate* m_pOldDelegate; 39 IFWL_WidgetDelegate* m_pOldDelegate;
40 CFX_RectF m_rtCheckBox; 40 CFX_RectF m_rtCheckBox;
41 }; 41 };
42 42
43 #endif // XFA_FXFA_APP_XFA_FFCHECKBUTTON_H_ 43 #endif // XFA_FXFA_APP_XFA_FFCHECKBUTTON_H_
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_widgettp.cpp ('k') | xfa/fxfa/app/xfa_ffcheckbutton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698