1 // Copyright 2014 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FWL_THEME_CFWL_LISTBOXTP_H_ 8 #define XFA_FWL_THEME_CFWL_LISTBOXTP_H_ 9 10 #include "fxjs/gc/heap.h" 11 #include "xfa/fwl/cfwl_themepart.h" 12 #include "xfa/fwl/theme/cfwl_widgettp.h" 13 14 namespace pdfium { 15 16 class CFWL_ListBoxTP final : public CFWL_WidgetTP { 17 public: 18 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED; 19 ~CFWL_ListBoxTP() override; 20 21 // CFWL_WidgetTP: 22 void DrawBackground(const CFWL_ThemeBackground& pParams) override; 23 24 private: 25 CFWL_ListBoxTP(); 26 27 void DrawListBoxItem(CFGAS_GEGraphics* pGraphics, 28 Mask<CFWL_PartState> dwStates, 29 const CFX_RectF& rtItem, 30 const CFX_RectF* pData, 31 const CFX_Matrix& matrix); 32 }; 33 34 } // namespace pdfium 35 36 // TODO(crbug.com/42271761): Remove. 37 using pdfium::CFWL_ListBoxTP; 38 39 #endif // XFA_FWL_THEME_CFWL_LISTBOXTP_H_ 40