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

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

Issue 2433133002: Remove IFWL_*::Create methods, use new (Closed)
Patch Set: Rebase to master Created 4 years, 2 months 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.h ('k') | xfa/fwl/core/ifwl_checkbox.h » ('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 #include "xfa/fwl/core/ifwl_caret.h" 7 #include "xfa/fwl/core/ifwl_caret.h"
8 8
9 #include "xfa/fwl/core/cfwl_themebackground.h" 9 #include "xfa/fwl/core/cfwl_themebackground.h"
10 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" 10 #include "xfa/fwl/core/cfwl_widgetimpproperties.h"
11 #include "xfa/fwl/core/fwl_noteimp.h" 11 #include "xfa/fwl/core/fwl_noteimp.h"
12 #include "xfa/fwl/core/ifwl_caret.h" 12 #include "xfa/fwl/core/ifwl_caret.h"
13 #include "xfa/fwl/core/ifwl_themeprovider.h" 13 #include "xfa/fwl/core/ifwl_themeprovider.h"
14 14
15 // static
16 IFWL_Caret* IFWL_Caret::Create(const CFWL_WidgetImpProperties& properties,
17 IFWL_Widget* pOuter) {
18 return new IFWL_Caret(properties, pOuter);
19 }
20
21 IFWL_Caret::IFWL_Caret(const CFWL_WidgetImpProperties& properties, 15 IFWL_Caret::IFWL_Caret(const CFWL_WidgetImpProperties& properties,
22 IFWL_Widget* pOuter) 16 IFWL_Widget* pOuter)
23 : IFWL_Widget(properties, pOuter), 17 : IFWL_Widget(properties, pOuter),
24 m_pTimer(new CFWL_CaretTimer(this)), 18 m_pTimer(new CFWL_CaretTimer(this)),
25 m_pTimerInfo(nullptr), 19 m_pTimerInfo(nullptr),
26 m_dwElapse(400), 20 m_dwElapse(400),
27 m_bSetColor(FALSE) { 21 m_bSetColor(FALSE) {
28 SetStates(FWL_STATE_CAT_HightLight); 22 SetStates(FWL_STATE_CAT_HightLight);
29 } 23 }
30 24
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 129
136 CFWL_CaretImpDelegate::CFWL_CaretImpDelegate(IFWL_Caret* pOwner) 130 CFWL_CaretImpDelegate::CFWL_CaretImpDelegate(IFWL_Caret* pOwner)
137 : m_pOwner(pOwner) {} 131 : m_pOwner(pOwner) {}
138 132
139 void CFWL_CaretImpDelegate::OnProcessMessage(CFWL_Message* pMessage) {} 133 void CFWL_CaretImpDelegate::OnProcessMessage(CFWL_Message* pMessage) {}
140 134
141 void CFWL_CaretImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, 135 void CFWL_CaretImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics,
142 const CFX_Matrix* pMatrix) { 136 const CFX_Matrix* pMatrix) {
143 m_pOwner->DrawWidget(pGraphics, pMatrix); 137 m_pOwner->DrawWidget(pGraphics, pMatrix);
144 } 138 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_caret.h ('k') | xfa/fwl/core/ifwl_checkbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698