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 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 return FWL_ERR_Succeeded; | 126 return FWL_ERR_Succeeded; |
127 } | 127 } |
128 | 128 |
129 CFWL_WidgetTP* CFWL_Theme::GetTheme(IFWL_Widget* pWidget) { | 129 CFWL_WidgetTP* CFWL_Theme::GetTheme(IFWL_Widget* pWidget) { |
130 for (const auto& pTheme : m_ThemesArray) { | 130 for (const auto& pTheme : m_ThemesArray) { |
131 if (pTheme->IsValidWidget(pWidget)) | 131 if (pTheme->IsValidWidget(pWidget)) |
132 return pTheme.get(); | 132 return pTheme.get(); |
133 } | 133 } |
134 return nullptr; | 134 return nullptr; |
135 } | 135 } |
OLD | NEW |