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

Side by Side Diff: xfa/fwl/core/ifwl_comboedit.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_comboedit.h ('k') | xfa/fwl/core/ifwl_combolist.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_comboedit.h" 7 #include "xfa/fwl/core/ifwl_comboedit.h"
8 8
9 #include "xfa/fde/cfde_txtedtengine.h" 9 #include "xfa/fde/cfde_txtedtengine.h"
10 #include "xfa/fwl/core/ifwl_combobox.h" 10 #include "xfa/fwl/core/ifwl_combobox.h"
11 11
12 // static
13 IFWL_ComboEdit* IFWL_ComboEdit::Create(
14 const CFWL_WidgetImpProperties& properties,
15 IFWL_Widget* pOuter) {
16 return new IFWL_ComboEdit(properties, pOuter);
17 }
18
19 IFWL_ComboEdit::IFWL_ComboEdit(const CFWL_WidgetImpProperties& properties, 12 IFWL_ComboEdit::IFWL_ComboEdit(const CFWL_WidgetImpProperties& properties,
20 IFWL_Widget* pOuter) 13 IFWL_Widget* pOuter)
21 : IFWL_Edit(properties, pOuter) { 14 : IFWL_Edit(properties, pOuter) {
22 m_pOuter = static_cast<IFWL_ComboBox*>(pOuter); 15 m_pOuter = static_cast<IFWL_ComboBox*>(pOuter);
23 } 16 }
24 17
25 void IFWL_ComboEdit::ClearSelected() { 18 void IFWL_ComboEdit::ClearSelected() {
26 ClearSelections(); 19 ClearSelections();
27 Repaint(&m_rtClient); 20 Repaint(&m_rtClient);
28 } 21 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 m_pOwner->SetComboBoxFocus(TRUE); 70 m_pOwner->SetComboBoxFocus(TRUE);
78 } 71 }
79 break; 72 break;
80 } 73 }
81 default: 74 default:
82 break; 75 break;
83 } 76 }
84 if (backDefault) 77 if (backDefault)
85 CFWL_EditImpDelegate::OnProcessMessage(pMessage); 78 CFWL_EditImpDelegate::OnProcessMessage(pMessage);
86 } 79 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_comboedit.h ('k') | xfa/fwl/core/ifwl_combolist.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698