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

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

Issue 2469893004: Unify CFWL_WidgetProperties and CFWL_WidgetImpProperties. (Closed)
Patch Set: review cleanup Created 4 years, 1 month 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 IFWL_ComboEdit::IFWL_ComboEdit(const IFWL_App* app, 12 IFWL_ComboEdit::IFWL_ComboEdit(
13 const CFWL_WidgetImpProperties& properties, 13 const IFWL_App* app,
14 IFWL_Widget* pOuter) 14 std::unique_ptr<CFWL_WidgetProperties> properties,
15 : IFWL_Edit(app, properties, pOuter) { 15 IFWL_Widget* pOuter)
16 : IFWL_Edit(app, std::move(properties), pOuter) {
16 m_pOuter = static_cast<IFWL_ComboBox*>(pOuter); 17 m_pOuter = static_cast<IFWL_ComboBox*>(pOuter);
17 } 18 }
18 19
19 void IFWL_ComboEdit::ClearSelected() { 20 void IFWL_ComboEdit::ClearSelected() {
20 ClearSelections(); 21 ClearSelections();
21 Repaint(&m_rtClient); 22 Repaint(&m_rtClient);
22 } 23 }
23 24
24 void IFWL_ComboEdit::SetSelected() { 25 void IFWL_ComboEdit::SetSelected() {
25 FlagFocus(true); 26 FlagFocus(true);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 SetComboBoxFocus(true); 69 SetComboBoxFocus(true);
69 } 70 }
70 break; 71 break;
71 } 72 }
72 default: 73 default:
73 break; 74 break;
74 } 75 }
75 if (backDefault) 76 if (backDefault)
76 IFWL_Edit::OnProcessMessage(pMessage); 77 IFWL_Edit::OnProcessMessage(pMessage);
77 } 78 }
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