| 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/fwl/core/ifwl_spinbutton.h" | 7 #include "xfa/fwl/core/ifwl_spinbutton.h" |
| 8 | 8 |
| 9 #include "third_party/base/ptr_util.h" | 9 #include "third_party/base/ptr_util.h" |
| 10 #include "xfa/fwl/core/cfwl_evtclick.h" | 10 #include "xfa/fwl/core/cfwl_evtclick.h" |
| 11 #include "xfa/fwl/core/cfwl_msgkey.h" | 11 #include "xfa/fwl/core/cfwl_msgkey.h" |
| 12 #include "xfa/fwl/core/cfwl_msgmouse.h" | 12 #include "xfa/fwl/core/cfwl_msgmouse.h" |
| 13 #include "xfa/fwl/core/cfwl_themebackground.h" | 13 #include "xfa/fwl/core/cfwl_themebackground.h" |
| 14 #include "xfa/fwl/core/cfwl_widgetproperties.h" | 14 #include "xfa/fwl/core/cfwl_widgetproperties.h" |
| 15 #include "xfa/fwl/core/fwl_noteimp.h" | 15 #include "xfa/fwl/core/fwl_noteimp.h" |
| 16 #include "xfa/fwl/core/ifwl_spinbutton.h" | 16 #include "xfa/fwl/core/ifwl_spinbutton.h" |
| 17 #include "xfa/fwl/core/ifwl_themeprovider.h" | 17 #include "xfa/fwl/core/ifwl_themeprovider.h" |
| 18 #include "xfa/fwl/core/ifwl_themeprovider.h" | 18 #include "xfa/fwl/core/ifwl_themeprovider.h" |
| 19 #include "xfa/fwl/core/ifwl_timer.h" | 19 #include "xfa/fwl/core/ifwl_timerinfo.h" |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 const int kMinWidth = 18; | 23 const int kMinWidth = 18; |
| 24 const int kMinHeight = 32; | 24 const int kMinHeight = 32; |
| 25 const int kElapseTime = 200; | 25 const int kElapseTime = 200; |
| 26 | 26 |
| 27 } // namespace | 27 } // namespace |
| 28 | 28 |
| 29 IFWL_SpinButton::IFWL_SpinButton( | 29 IFWL_SpinButton::IFWL_SpinButton( |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 void IFWL_SpinButton::Timer::Run(IFWL_TimerInfo* pTimerInfo) { | 378 void IFWL_SpinButton::Timer::Run(IFWL_TimerInfo* pTimerInfo) { |
| 379 IFWL_SpinButton* pButton = static_cast<IFWL_SpinButton*>(m_pWidget); | 379 IFWL_SpinButton* pButton = static_cast<IFWL_SpinButton*>(m_pWidget); |
| 380 | 380 |
| 381 if (!pButton->m_pTimerInfo) | 381 if (!pButton->m_pTimerInfo) |
| 382 return; | 382 return; |
| 383 | 383 |
| 384 CFWL_EvtClick wmPosChanged; | 384 CFWL_EvtClick wmPosChanged; |
| 385 wmPosChanged.m_pSrcTarget = pButton; | 385 wmPosChanged.m_pSrcTarget = pButton; |
| 386 pButton->DispatchEvent(&wmPosChanged); | 386 pButton->DispatchEvent(&wmPosChanged); |
| 387 } | 387 } |
| OLD | NEW |