| OLD | NEW |
| 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_FWL_FORMIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_FORMIMP_H_ |
| 8 #define XFA_FWL_CORE_FWL_FORMIMP_H_ | 8 #define XFA_FWL_CORE_FWL_FORMIMP_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/fwl_widgetimp.h" | 10 #include "xfa/fwl/core/fwl_widgetimp.h" |
| 11 #include "xfa/fwl/core/ifwl_form.h" | 11 #include "xfa/fwl/core/ifwl_form.h" |
| 12 | 12 |
| 13 class CFWL_MsgMouse; | 13 class CFWL_MsgMouse; |
| 14 class CFWL_MsgClose; | 14 class CFWL_MsgClose; |
| 15 class CFWL_MsgWindowMove; | 15 class CFWL_MsgWindowMove; |
| 16 class CFWL_NoteLoop; | 16 class CFWL_NoteLoop; |
| 17 class CFWL_WidgetImpProperties; | 17 class CFWL_WidgetImpProperties; |
| 18 class IFWL_Widget; | 18 class IFWL_Widget; |
| 19 class IFWL_ThemeProvider; | 19 class IFWL_ThemeProvider; |
| 20 class CFWL_SysBtn; | 20 class CFWL_SysBtn; |
| 21 class CFWL_FormImp; | 21 class CFWL_FormImp; |
| 22 class CFWL_FormImpDelegate; | 22 class CFWL_FormImpDelegate; |
| 23 | 23 |
| 24 #define FWL_SYSBUTTONSTATE_Hover 0x0001 | 24 #define FWL_SYSBUTTONSTATE_Hover 0x0001 |
| 25 #define FWL_SYSBUTTONSTATE_Pressed 0x0002 | 25 #define FWL_SYSBUTTONSTATE_Pressed 0x0002 |
| 26 #define FWL_SYSBUTTONSTATE_Disabled 0x0010 | 26 #define FWL_SYSBUTTONSTATE_Disabled 0x0010 |
| 27 |
| 27 class CFWL_SysBtn { | 28 class CFWL_SysBtn { |
| 28 public: | 29 public: |
| 29 CFWL_SysBtn() { | 30 CFWL_SysBtn() { |
| 30 m_rtBtn.Set(0, 0, 0, 0); | 31 m_rtBtn.Set(0, 0, 0, 0); |
| 31 m_dwState = 0; | 32 m_dwState = 0; |
| 32 } | 33 } |
| 33 | 34 |
| 34 FX_BOOL IsDisabled() { return m_dwState & FWL_SYSBUTTONSTATE_Disabled; } | 35 FX_BOOL IsDisabled() { return m_dwState & FWL_SYSBUTTONSTATE_Disabled; } |
| 35 | 36 |
| 36 void SetNormal() { m_dwState &= 0xFFF0; } | 37 void SetNormal() { m_dwState &= 0xFFF0; } |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 void OnMouseMove(CFWL_MsgMouse* pMsg); | 179 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 179 void OnMouseHover(CFWL_MsgMouse* pMsg); | 180 void OnMouseHover(CFWL_MsgMouse* pMsg); |
| 180 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 181 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 181 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); | 182 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); |
| 182 void OnWindowMove(CFWL_MsgWindowMove* pMsg); | 183 void OnWindowMove(CFWL_MsgWindowMove* pMsg); |
| 183 void OnClose(CFWL_MsgClose* pMsg); | 184 void OnClose(CFWL_MsgClose* pMsg); |
| 184 CFWL_FormImp* m_pOwner; | 185 CFWL_FormImp* m_pOwner; |
| 185 }; | 186 }; |
| 186 | 187 |
| 187 #endif // XFA_FWL_CORE_FWL_FORMIMP_H_ | 188 #endif // XFA_FWL_CORE_FWL_FORMIMP_H_ |
| OLD | NEW |