| 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/basewidget/fwl_listboximp.h" | 7 #include "xfa/fwl/basewidget/fwl_listboximp.h" |
| 8 | 8 |
| 9 #include "xfa/fde/tto/fde_textout.h" | 9 #include "xfa/fde/tto/fde_textout.h" |
| 10 #include "xfa/fwl/basewidget/fwl_comboboximp.h" | 10 #include "xfa/fwl/basewidget/fwl_comboboximp.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 m_pScrollBarTP(NULL) { | 72 m_pScrollBarTP(NULL) { |
| 73 m_rtClient.Reset(); | 73 m_rtClient.Reset(); |
| 74 m_rtConent.Reset(); | 74 m_rtConent.Reset(); |
| 75 m_rtStatic.Reset(); | 75 m_rtStatic.Reset(); |
| 76 } | 76 } |
| 77 CFWL_ListBoxImp::~CFWL_ListBoxImp() {} | 77 CFWL_ListBoxImp::~CFWL_ListBoxImp() {} |
| 78 FWL_ERR CFWL_ListBoxImp::GetClassName(CFX_WideString& wsClass) const { | 78 FWL_ERR CFWL_ListBoxImp::GetClassName(CFX_WideString& wsClass) const { |
| 79 wsClass = FWL_CLASS_ListBox; | 79 wsClass = FWL_CLASS_ListBox; |
| 80 return FWL_ERR_Succeeded; | 80 return FWL_ERR_Succeeded; |
| 81 } | 81 } |
| 82 uint32_t CFWL_ListBoxImp::GetClassID() const { | 82 |
| 83 return FWL_CLASSHASH_ListBox; | |
| 84 } | |
| 85 FWL_ERR CFWL_ListBoxImp::Initialize() { | 83 FWL_ERR CFWL_ListBoxImp::Initialize() { |
| 86 if (CFWL_WidgetImp::Initialize() != FWL_ERR_Succeeded) | 84 if (CFWL_WidgetImp::Initialize() != FWL_ERR_Succeeded) |
| 87 return FWL_ERR_Indefinite; | 85 return FWL_ERR_Indefinite; |
| 88 m_pDelegate = new CFWL_ListBoxImpDelegate(this); | 86 m_pDelegate = new CFWL_ListBoxImpDelegate(this); |
| 89 return FWL_ERR_Succeeded; | 87 return FWL_ERR_Succeeded; |
| 90 } | 88 } |
| 91 FWL_ERR CFWL_ListBoxImp::Finalize() { | 89 FWL_ERR CFWL_ListBoxImp::Finalize() { |
| 92 if (m_pVertScrollBar) { | 90 if (m_pVertScrollBar) { |
| 93 m_pVertScrollBar->Finalize(); | 91 m_pVertScrollBar->Finalize(); |
| 94 } | 92 } |
| (...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 pScrollBar->SetTrackPos(fPos); | 1240 pScrollBar->SetTrackPos(fPos); |
| 1243 m_pOwner->Repaint(&m_pOwner->m_rtClient); | 1241 m_pOwner->Repaint(&m_pOwner->m_rtClient); |
| 1244 } | 1242 } |
| 1245 return TRUE; | 1243 return TRUE; |
| 1246 } | 1244 } |
| 1247 void CFWL_ListBoxImpDelegate::DispatchSelChangedEv() { | 1245 void CFWL_ListBoxImpDelegate::DispatchSelChangedEv() { |
| 1248 CFWL_EvtLtbSelChanged ev; | 1246 CFWL_EvtLtbSelChanged ev; |
| 1249 ev.m_pSrcTarget = m_pOwner->m_pInterface; | 1247 ev.m_pSrcTarget = m_pOwner->m_pInterface; |
| 1250 m_pOwner->DispatchEvent(&ev); | 1248 m_pOwner->DispatchEvent(&ev); |
| 1251 } | 1249 } |
| OLD | NEW |