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

Side by Side Diff: xfa/fwl/core/cfwl_checkbox.h

Issue 2533623002: Cleanup default FWL params part I (Closed)
Patch Set: Rebase to master Created 4 years 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/core/cfwl_caret.cpp ('k') | xfa/fwl/core/cfwl_checkbox.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_FWL_CORE_CFWL_CHECKBOX_H_ 7 #ifndef XFA_FWL_CORE_CFWL_CHECKBOX_H_
8 #define XFA_FWL_CORE_CFWL_CHECKBOX_H_ 8 #define XFA_FWL_CORE_CFWL_CHECKBOX_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class CFWL_WidgetProperties; 48 class CFWL_WidgetProperties;
49 class CFWL_Widget; 49 class CFWL_Widget;
50 50
51 class CFWL_CheckBox : public CFWL_Widget { 51 class CFWL_CheckBox : public CFWL_Widget {
52 public: 52 public:
53 explicit CFWL_CheckBox(const CFWL_App* pApp); 53 explicit CFWL_CheckBox(const CFWL_App* pApp);
54 ~CFWL_CheckBox() override; 54 ~CFWL_CheckBox() override;
55 55
56 // CFWL_Widget 56 // CFWL_Widget
57 FWL_Type GetClassID() const override; 57 FWL_Type GetClassID() const override;
58 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 58 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override;
59 void Update() override; 59 void Update() override;
60 void DrawWidget(CFX_Graphics* pGraphics, 60 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override;
61 const CFX_Matrix* pMatrix = nullptr) override;
62 61
63 void OnProcessMessage(CFWL_Message* pMessage) override; 62 void OnProcessMessage(CFWL_Message* pMessage) override;
64 void OnDrawWidget(CFX_Graphics* pGraphics, 63 void OnDrawWidget(CFX_Graphics* pGraphics,
65 const CFX_Matrix* pMatrix) override; 64 const CFX_Matrix* pMatrix) override;
66 65
67 void SetBoxSize(FX_FLOAT fHeight); 66 void SetBoxSize(FX_FLOAT fHeight);
68 67
69 private: 68 private:
70 void SetCheckState(int32_t iCheck); 69 void SetCheckState(int32_t iCheck);
71 void Layout(); 70 void Layout();
(...skipping 11 matching lines...) Expand all
83 CFX_RectF m_rtBox; 82 CFX_RectF m_rtBox;
84 CFX_RectF m_rtCaption; 83 CFX_RectF m_rtCaption;
85 CFX_RectF m_rtFocus; 84 CFX_RectF m_rtFocus;
86 uint32_t m_dwTTOStyles; 85 uint32_t m_dwTTOStyles;
87 int32_t m_iTTOAlign; 86 int32_t m_iTTOAlign;
88 bool m_bBtnDown; 87 bool m_bBtnDown;
89 FX_FLOAT m_fBoxHeight; 88 FX_FLOAT m_fBoxHeight;
90 }; 89 };
91 90
92 #endif // XFA_FWL_CORE_CFWL_CHECKBOX_H_ 91 #endif // XFA_FWL_CORE_CFWL_CHECKBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_caret.cpp ('k') | xfa/fwl/core/cfwl_checkbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698