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

Side by Side Diff: xfa/fwl/core/ifwl_comboboxproxy.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_comboboxproxy.h ('k') | xfa/fwl/core/ifwl_comboedit.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_comboboxproxy.h" 7 #include "xfa/fwl/core/ifwl_comboboxproxy.h"
8 8
9 #include "xfa/fwl/core/fwl_noteimp.h" 9 #include "xfa/fwl/core/fwl_noteimp.h"
10 #include "xfa/fwl/core/ifwl_app.h" 10 #include "xfa/fwl/core/ifwl_app.h"
11 #include "xfa/fwl/core/ifwl_combobox.h" 11 #include "xfa/fwl/core/ifwl_combobox.h"
12 12
13 IFWL_ComboBoxProxy::IFWL_ComboBoxProxy( 13 IFWL_ComboBoxProxy::IFWL_ComboBoxProxy(
14 IFWL_ComboBox* pComboBox, 14 IFWL_ComboBox* pComboBox,
15 const IFWL_App* app, 15 const IFWL_App* app,
16 const CFWL_WidgetImpProperties& properties, 16 std::unique_ptr<CFWL_WidgetProperties> properties,
17 IFWL_Widget* pOuter) 17 IFWL_Widget* pOuter)
18 : IFWL_FormProxy(app, properties, pOuter), 18 : IFWL_FormProxy(app, std::move(properties), pOuter),
19 m_bLButtonDown(false), 19 m_bLButtonDown(false),
20 m_bLButtonUpSelf(false), 20 m_bLButtonUpSelf(false),
21 m_pComboBox(pComboBox) {} 21 m_pComboBox(pComboBox) {}
22 22
23 IFWL_ComboBoxProxy::~IFWL_ComboBoxProxy() {} 23 IFWL_ComboBoxProxy::~IFWL_ComboBoxProxy() {}
24 24
25 void IFWL_ComboBoxProxy::OnProcessMessage(CFWL_Message* pMessage) { 25 void IFWL_ComboBoxProxy::OnProcessMessage(CFWL_Message* pMessage) {
26 if (!pMessage) 26 if (!pMessage)
27 return; 27 return;
28 28
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 m_pComboBox->ShowDropList(false); 109 m_pComboBox->ShowDropList(false);
110 } 110 }
111 111
112 void IFWL_ComboBoxProxy::OnFocusChanged(CFWL_MsgKillFocus* pMsg, bool bSet) { 112 void IFWL_ComboBoxProxy::OnFocusChanged(CFWL_MsgKillFocus* pMsg, bool bSet) {
113 if (bSet) 113 if (bSet)
114 return; 114 return;
115 115
116 if (!pMsg->m_pSetFocus) 116 if (!pMsg->m_pSetFocus)
117 m_pComboBox->ShowDropList(false); 117 m_pComboBox->ShowDropList(false);
118 } 118 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_comboboxproxy.h ('k') | xfa/fwl/core/ifwl_comboedit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698