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

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

Issue 2556873004: Convert GetWidgetRect to return rect. (Closed)
Patch Set: Review feedback 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) override;
59 void Update() override; 58 void Update() override;
60 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; 59 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override;
61 60
62 void OnProcessMessage(CFWL_Message* pMessage) override; 61 void OnProcessMessage(CFWL_Message* pMessage) override;
63 void OnDrawWidget(CFX_Graphics* pGraphics, 62 void OnDrawWidget(CFX_Graphics* pGraphics,
64 const CFX_Matrix* pMatrix) override; 63 const CFX_Matrix* pMatrix) override;
65 64
66 void SetBoxSize(FX_FLOAT fHeight); 65 void SetBoxSize(FX_FLOAT fHeight);
67 66
68 private: 67 private:
(...skipping 13 matching lines...) Expand all
82 CFX_RectF m_rtBox; 81 CFX_RectF m_rtBox;
83 CFX_RectF m_rtCaption; 82 CFX_RectF m_rtCaption;
84 CFX_RectF m_rtFocus; 83 CFX_RectF m_rtFocus;
85 uint32_t m_dwTTOStyles; 84 uint32_t m_dwTTOStyles;
86 int32_t m_iTTOAlign; 85 int32_t m_iTTOAlign;
87 bool m_bBtnDown; 86 bool m_bBtnDown;
88 FX_FLOAT m_fBoxHeight; 87 FX_FLOAT m_fBoxHeight;
89 }; 88 };
90 89
91 #endif // XFA_FWL_CORE_CFWL_CHECKBOX_H_ 90 #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