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

Side by Side Diff: xfa/fwl/core/ifwl_spinbutton.cpp

Issue 2506253004: Split fwl/core class pt I. (Closed)
Patch Set: Rebase to master 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
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 #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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698