| 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/theme/cfwl_widgettp.h" | 7 #include "xfa/fwl/theme/cfwl_widgettp.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "xfa/fde/tto/fde_textout.h" | 12 #include "xfa/fde/tto/fde_textout.h" |
| 13 #include "xfa/fgas/font/cfgas_fontmgr.h" | 13 #include "xfa/fgas/font/cfgas_fontmgr.h" |
| 14 #include "xfa/fgas/font/cfgas_gefont.h" | 14 #include "xfa/fgas/font/cfgas_gefont.h" |
| 15 #include "xfa/fwl/core/cfwl_themebackground.h" | 15 #include "xfa/fwl/cfwl_themebackground.h" |
| 16 #include "xfa/fwl/core/cfwl_themepart.h" | 16 #include "xfa/fwl/cfwl_themepart.h" |
| 17 #include "xfa/fwl/core/cfwl_themetext.h" | 17 #include "xfa/fwl/cfwl_themetext.h" |
| 18 #include "xfa/fwl/core/cfwl_widget.h" | 18 #include "xfa/fwl/cfwl_widget.h" |
| 19 #include "xfa/fwl/core/cfwl_widgetmgr.h" | 19 #include "xfa/fwl/cfwl_widgetmgr.h" |
| 20 #include "xfa/fwl/core/ifwl_themeprovider.h" | 20 #include "xfa/fwl/ifwl_themeprovider.h" |
| 21 #include "xfa/fwl/theme/cfwl_arrowdata.h" | 21 #include "xfa/fwl/theme/cfwl_arrowdata.h" |
| 22 #include "xfa/fxgraphics/cfx_color.h" | 22 #include "xfa/fxgraphics/cfx_color.h" |
| 23 #include "xfa/fxgraphics/cfx_path.h" | 23 #include "xfa/fxgraphics/cfx_path.h" |
| 24 #include "xfa/fxgraphics/cfx_shading.h" | 24 #include "xfa/fxgraphics/cfx_shading.h" |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 const float kEdgeFlat = 2.0f; | 28 const float kEdgeFlat = 2.0f; |
| 29 const float kEdgeRaised = 2.0f; | 29 const float kEdgeRaised = 2.0f; |
| 30 const float kEdgeSunken = 2.0f; | 30 const float kEdgeSunken = 2.0f; |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 if (!pFontData->LoadFont(wsFontFamily, dwFontStyles, wCodePage)) | 677 if (!pFontData->LoadFont(wsFontFamily, dwFontStyles, wCodePage)) |
| 678 return nullptr; | 678 return nullptr; |
| 679 m_FontsArray.push_back(std::move(pFontData)); | 679 m_FontsArray.push_back(std::move(pFontData)); |
| 680 return m_FontsArray.back()->GetFont(); | 680 return m_FontsArray.back()->GetFont(); |
| 681 } | 681 } |
| 682 | 682 |
| 683 void FWLTHEME_Release() { | 683 void FWLTHEME_Release() { |
| 684 CFWL_ArrowData::DestroyInstance(); | 684 CFWL_ArrowData::DestroyInstance(); |
| 685 CFWL_FontManager::DestroyInstance(); | 685 CFWL_FontManager::DestroyInstance(); |
| 686 } | 686 } |
| OLD | NEW |