| OLD | NEW | 
|---|
| 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/cfwl_combobox.h" | 7 #include "xfa/fwl/core/cfwl_combobox.h" | 
| 8 | 8 | 
| 9 #include <utility> | 9 #include <utility> | 
| 10 | 10 | 
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 120 } | 120 } | 
| 121 | 121 | 
| 122 bool CFWL_ComboBox::EditCut(CFX_WideString& wsCut) { | 122 bool CFWL_ComboBox::EditCut(CFX_WideString& wsCut) { | 
| 123   return GetWidget() ? ToComboBox(GetWidget())->EditCut(wsCut) : false; | 123   return GetWidget() ? ToComboBox(GetWidget())->EditCut(wsCut) : false; | 
| 124 } | 124 } | 
| 125 | 125 | 
| 126 bool CFWL_ComboBox::EditPaste(const CFX_WideString& wsPaste) { | 126 bool CFWL_ComboBox::EditPaste(const CFX_WideString& wsPaste) { | 
| 127   return GetWidget() ? ToComboBox(GetWidget())->EditPaste(wsPaste) : false; | 127   return GetWidget() ? ToComboBox(GetWidget())->EditPaste(wsPaste) : false; | 
| 128 } | 128 } | 
| 129 | 129 | 
| 130 bool CFWL_ComboBox::EditSelectAll() { | 130 void CFWL_ComboBox::EditSelectAll() { | 
| 131   return GetWidget() ? ToComboBox(GetWidget())->EditSelectAll() : false; | 131   if (GetWidget()) | 
|  | 132     ToComboBox(GetWidget())->EditSelectAll(); | 
| 132 } | 133 } | 
| 133 | 134 | 
| 134 bool CFWL_ComboBox::EditDelete() { | 135 void CFWL_ComboBox::EditDelete() { | 
| 135   return GetWidget() ? ToComboBox(GetWidget())->EditDelete() : false; | 136   if (GetWidget()) | 
|  | 137     ToComboBox(GetWidget())->EditDelete(); | 
| 136 } | 138 } | 
| 137 | 139 | 
| 138 bool CFWL_ComboBox::EditDeSelect() { | 140 void CFWL_ComboBox::EditDeSelect() { | 
| 139   return GetWidget() ? ToComboBox(GetWidget())->EditDeSelect() : false; | 141   if (GetWidget()) | 
|  | 142     ToComboBox(GetWidget())->EditDeSelect(); | 
| 140 } | 143 } | 
| 141 | 144 | 
| 142 void CFWL_ComboBox::GetBBox(CFX_RectF& rect) { | 145 void CFWL_ComboBox::GetBBox(CFX_RectF& rect) { | 
| 143   if (GetWidget()) | 146   if (GetWidget()) | 
| 144     ToComboBox(GetWidget())->GetBBox(rect); | 147     ToComboBox(GetWidget())->GetBBox(rect); | 
| 145 } | 148 } | 
| 146 | 149 | 
| 147 void CFWL_ComboBox::EditModifyStylesEx(uint32_t dwStylesExAdded, | 150 void CFWL_ComboBox::EditModifyStylesEx(uint32_t dwStylesExAdded, | 
| 148                                        uint32_t dwStylesExRemoved) { | 151                                        uint32_t dwStylesExRemoved) { | 
| 149   if (GetWidget()) { | 152   if (GetWidget()) { | 
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 241 | 244 | 
| 242 void CFWL_ComboBox::SetItemCheckState(IFWL_Widget* pWidget, | 245 void CFWL_ComboBox::SetItemCheckState(IFWL_Widget* pWidget, | 
| 243                                       CFWL_ListItem* pItem, | 246                                       CFWL_ListItem* pItem, | 
| 244                                       uint32_t dwCheckState) { | 247                                       uint32_t dwCheckState) { | 
| 245   static_cast<CFWL_ListItem*>(pItem)->m_dwCheckState = dwCheckState; | 248   static_cast<CFWL_ListItem*>(pItem)->m_dwCheckState = dwCheckState; | 
| 246 } | 249 } | 
| 247 | 250 | 
| 248 FX_FLOAT CFWL_ComboBox::GetListHeight(IFWL_Widget* pWidget) { | 251 FX_FLOAT CFWL_ComboBox::GetListHeight(IFWL_Widget* pWidget) { | 
| 249   return m_fMaxListHeight; | 252   return m_fMaxListHeight; | 
| 250 } | 253 } | 
| OLD | NEW | 
|---|