| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef XFA_FWL_THEME_CFWL_ARROWDATA_H_ | 7 #ifndef XFA_FWL_THEME_CFWL_ARROWDATA_H_ |
| 8 #define XFA_FWL_THEME_CFWL_ARROWDATA_H_ | 8 #define XFA_FWL_THEME_CFWL_ARROWDATA_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "core/fxcrt/fx_system.h" | 12 #include "core/fxcrt/fx_system.h" |
| 13 #include "core/fxge/fx_dib.h" | 13 #include "core/fxge/fx_dib.h" |
| 14 | 14 |
| 15 class CFWL_ArrowData { | 15 class CFWL_ArrowData { |
| 16 public: | 16 public: |
| 17 struct CColorData { | 17 struct CColorData { |
| 18 FX_ARGB clrBorder[4]; | 18 FX_ARGB clrBorder[4]; |
| 19 FX_ARGB clrStart[4]; | 19 FX_ARGB clrStart[4]; |
| 20 FX_ARGB clrEnd[4]; | 20 FX_ARGB clrEnd[4]; |
| 21 FX_ARGB clrSign[4]; | 21 FX_ARGB clrSign[4]; |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 static CFWL_ArrowData* GetInstance(); | 24 static CFWL_ArrowData* GetInstance(); |
| 25 static FX_BOOL HasInstance(); | 25 static bool HasInstance(); |
| 26 static void DestroyInstance(); | 26 static void DestroyInstance(); |
| 27 void SetColorData(uint32_t dwID); | 27 void SetColorData(uint32_t dwID); |
| 28 | 28 |
| 29 std::unique_ptr<CColorData> m_pColorData; | 29 std::unique_ptr<CColorData> m_pColorData; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 CFWL_ArrowData(); | 32 CFWL_ArrowData(); |
| 33 ~CFWL_ArrowData(); | 33 ~CFWL_ArrowData(); |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 #endif // XFA_FWL_THEME_CFWL_ARROWDATA_H_ | 36 #endif // XFA_FWL_THEME_CFWL_ARROWDATA_H_ |
| OLD | NEW |