| 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 #include "xfa/src/foxitlib.h" | 7 #include "xfa/src/foxitlib.h" | 
|  | 8 #include "xfa/src/fwl/src/basewidget/include/fwl_spinbuttonimp.h" | 
|  | 9 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" | 
| 8 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" | 10 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" | 
| 9 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" |  | 
| 10 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" | 11 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" | 
| 11 #include "xfa/src/fwl/src/basewidget/include/fwl_spinbuttonimp.h" |  | 
| 12 #define FWL_SPN_MinWidth 18 | 12 #define FWL_SPN_MinWidth 18 | 
| 13 #define FWL_SPN_MinHeight 32 | 13 #define FWL_SPN_MinHeight 32 | 
| 14 #define FWL_SPIN_Elapse 200 | 14 #define FWL_SPIN_Elapse 200 | 
| 15 | 15 | 
| 16 // static | 16 // static | 
| 17 IFWL_SpinButton* IFWL_SpinButton::Create( | 17 IFWL_SpinButton* IFWL_SpinButton::Create( | 
| 18     const CFWL_WidgetImpProperties& properties, | 18     const CFWL_WidgetImpProperties& properties, | 
| 19     IFWL_Widget* pOuter) { | 19     IFWL_Widget* pOuter) { | 
| 20   IFWL_SpinButton* pSpinButton = new IFWL_SpinButton; | 20   IFWL_SpinButton* pSpinButton = new IFWL_SpinButton; | 
| 21   CFWL_SpinButtonImp* pSpinButtonImpl = | 21   CFWL_SpinButtonImp* pSpinButtonImpl = | 
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 416   if (!bUpEnable && !bDownEnable) { | 416   if (!bUpEnable && !bDownEnable) { | 
| 417     return; | 417     return; | 
| 418   } | 418   } | 
| 419   CFWL_EvtSpbClick wmPosChanged; | 419   CFWL_EvtSpbClick wmPosChanged; | 
| 420   wmPosChanged.m_pSrcTarget = m_pOwner->m_pInterface; | 420   wmPosChanged.m_pSrcTarget = m_pOwner->m_pInterface; | 
| 421   wmPosChanged.m_bUp = bUpEnable; | 421   wmPosChanged.m_bUp = bUpEnable; | 
| 422   m_pOwner->DispatchEvent(&wmPosChanged); | 422   m_pOwner->DispatchEvent(&wmPosChanged); | 
| 423   m_pOwner->Repaint(bUpEnable ? &m_pOwner->m_rtUpButton | 423   m_pOwner->Repaint(bUpEnable ? &m_pOwner->m_rtUpButton | 
| 424                               : &m_pOwner->m_rtDnButton); | 424                               : &m_pOwner->m_rtDnButton); | 
| 425 } | 425 } | 
| OLD | NEW | 
|---|