| 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/include/fwl/lightwidget/theme.h" | 7 #include "xfa/include/fwl/lightwidget/theme.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "xfa/fwl/core/cfwl_themebackground.h" |
| 12 #include "xfa/fwl/core/cfwl_themepart.h" |
| 13 #include "xfa/fwl/core/cfwl_themetext.h" |
| 11 #include "xfa/include/fwl/theme/barcodetp.h" | 14 #include "xfa/include/fwl/theme/barcodetp.h" |
| 12 #include "xfa/include/fwl/theme/carettp.h" | 15 #include "xfa/include/fwl/theme/carettp.h" |
| 13 #include "xfa/include/fwl/theme/checkboxtp.h" | 16 #include "xfa/include/fwl/theme/checkboxtp.h" |
| 14 #include "xfa/include/fwl/theme/comboboxtp.h" | 17 #include "xfa/include/fwl/theme/comboboxtp.h" |
| 15 #include "xfa/include/fwl/theme/datetimepickertp.h" | 18 #include "xfa/include/fwl/theme/datetimepickertp.h" |
| 16 #include "xfa/include/fwl/theme/edittp.h" | 19 #include "xfa/include/fwl/theme/edittp.h" |
| 17 #include "xfa/include/fwl/theme/formtp.h" | 20 #include "xfa/include/fwl/theme/formtp.h" |
| 18 #include "xfa/include/fwl/theme/listboxtp.h" | 21 #include "xfa/include/fwl/theme/listboxtp.h" |
| 19 #include "xfa/include/fwl/theme/monthcalendartp.h" | 22 #include "xfa/include/fwl/theme/monthcalendartp.h" |
| 20 #include "xfa/include/fwl/theme/pictureboxtp.h" | 23 #include "xfa/include/fwl/theme/pictureboxtp.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 return FWL_ERR_Succeeded; | 129 return FWL_ERR_Succeeded; |
| 127 } | 130 } |
| 128 | 131 |
| 129 CFWL_WidgetTP* CFWL_Theme::GetTheme(IFWL_Widget* pWidget) { | 132 CFWL_WidgetTP* CFWL_Theme::GetTheme(IFWL_Widget* pWidget) { |
| 130 for (const auto& pTheme : m_ThemesArray) { | 133 for (const auto& pTheme : m_ThemesArray) { |
| 131 if (pTheme->IsValidWidget(pWidget)) | 134 if (pTheme->IsValidWidget(pWidget)) |
| 132 return pTheme.get(); | 135 return pTheme.get(); |
| 133 } | 136 } |
| 134 return nullptr; | 137 return nullptr; |
| 135 } | 138 } |
| OLD | NEW |