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

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

Issue 2501033005: Continue fwl/core nit cleanup. (Closed)
Patch Set: Rebase to master 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/fwl/core/ifwl_caret.cpp ('k') | xfa/fwl/core/ifwl_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_IFWL_CHECKBOX_H_ 7 #ifndef XFA_FWL_CORE_IFWL_CHECKBOX_H_
8 #define XFA_FWL_CORE_IFWL_CHECKBOX_H_ 8 #define XFA_FWL_CORE_IFWL_CHECKBOX_H_
9 9
10 #include "xfa/fwl/core/cfwl_event.h" 10 #include "xfa/fwl/core/cfwl_event.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void DrawWidget(CFX_Graphics* pGraphics, 67 void DrawWidget(CFX_Graphics* pGraphics,
68 const CFX_Matrix* pMatrix = nullptr) override; 68 const CFX_Matrix* pMatrix = nullptr) override;
69 69
70 void OnProcessMessage(CFWL_Message* pMessage) override; 70 void OnProcessMessage(CFWL_Message* pMessage) override;
71 void OnDrawWidget(CFX_Graphics* pGraphics, 71 void OnDrawWidget(CFX_Graphics* pGraphics,
72 const CFX_Matrix* pMatrix) override; 72 const CFX_Matrix* pMatrix) override;
73 73
74 private: 74 private:
75 void SetCheckState(int32_t iCheck); 75 void SetCheckState(int32_t iCheck);
76 void Layout(); 76 void Layout();
77 uint32_t GetPartStates(); 77 uint32_t GetPartStates() const;
78 void UpdateTextOutStyles(); 78 void UpdateTextOutStyles();
79 void NextStates(); 79 void NextStates();
80 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); 80 void OnFocusChanged(bool bSet);
81 void OnLButtonDown(CFWL_MsgMouse* pMsg); 81 void OnLButtonDown();
82 void OnLButtonUp(CFWL_MsgMouse* pMsg); 82 void OnLButtonUp(CFWL_MsgMouse* pMsg);
83 void OnMouseMove(CFWL_MsgMouse* pMsg); 83 void OnMouseMove(CFWL_MsgMouse* pMsg);
84 void OnMouseLeave(CFWL_MsgMouse* pMsg); 84 void OnMouseLeave();
85 void OnKeyDown(CFWL_MsgKey* pMsg); 85 void OnKeyDown(CFWL_MsgKey* pMsg);
86 86
87 CFX_RectF m_rtClient; 87 CFX_RectF m_rtClient;
88 CFX_RectF m_rtBox; 88 CFX_RectF m_rtBox;
89 CFX_RectF m_rtCaption; 89 CFX_RectF m_rtCaption;
90 CFX_RectF m_rtFocus; 90 CFX_RectF m_rtFocus;
91 uint32_t m_dwTTOStyles; 91 uint32_t m_dwTTOStyles;
92 int32_t m_iTTOAlign; 92 int32_t m_iTTOAlign;
93 bool m_bBtnDown; 93 bool m_bBtnDown;
94 }; 94 };
95 95
96 #endif // XFA_FWL_CORE_IFWL_CHECKBOX_H_ 96 #endif // XFA_FWL_CORE_IFWL_CHECKBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_caret.cpp ('k') | xfa/fwl/core/ifwl_checkbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698