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

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

Issue 2466273003: Change IFWL_Widget to store a single delegate. (Closed)
Patch Set: Fix Mac Created 4 years, 1 month 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/fxfa/app/xfa_ffbarcode.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/xfa_ffpageview.h" 11 #include "xfa/fxfa/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 ~CXFA_FFCheckButton() override; 16 ~CXFA_FFCheckButton() override;
17 17
18 // CXFA_FFField 18 // CXFA_FFField
19 void RenderWidget(CFX_Graphics* pGS, 19 void RenderWidget(CFX_Graphics* pGS,
20 CFX_Matrix* pMatrix, 20 CFX_Matrix* pMatrix,
21 uint32_t dwStatus) override; 21 uint32_t dwStatus) override;
22 22
23 FX_BOOL LoadWidget() override; 23 FX_BOOL LoadWidget() override;
24 FX_BOOL PerformLayout() override; 24 FX_BOOL PerformLayout() override;
25 FX_BOOL UpdateFWLData() override; 25 FX_BOOL UpdateFWLData() override;
26 void UpdateWidgetProperty() override; 26 void UpdateWidgetProperty() override;
27 FX_BOOL OnLButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) override; 27 FX_BOOL OnLButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) override;
28 void OnProcessMessage(CFWL_Message* pMessage) override;
29 void OnProcessEvent(CFWL_Event* pEvent) override;
30 void OnDrawWidget(CFX_Graphics* pGraphics,
31 const CFX_Matrix* pMatrix = nullptr) override;
32 28
33 void SetFWLCheckState(XFA_CHECKSTATE eCheckState); 29 void SetFWLCheckState(XFA_CHECKSTATE eCheckState);
34 30
35 protected: 31 protected:
36 FX_BOOL CommitData() override; 32 FX_BOOL CommitData() override;
37 FX_BOOL IsDataChanged() override; 33 FX_BOOL IsDataChanged() override;
38 34
39 void CapLeftRightPlacement(CXFA_Margin mgCap); 35 void CapLeftRightPlacement(CXFA_Margin mgCap);
40 void AddUIMargin(int32_t iCapPlacement); 36 void AddUIMargin(int32_t iCapPlacement);
41 XFA_CHECKSTATE FWLState2XFAState(); 37 XFA_CHECKSTATE FWLState2XFAState();
42 IFWL_WidgetDelegate* m_pOldDelegate;
43 CFX_RectF m_rtCheckBox; 38 CFX_RectF m_rtCheckBox;
44 }; 39 };
45 40
46 #endif // XFA_FXFA_APP_XFA_FFCHECKBUTTON_H_ 41 #endif // XFA_FXFA_APP_XFA_FFCHECKBUTTON_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffbarcode.cpp ('k') | xfa/fxfa/app/xfa_ffcheckbutton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698