| 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 #include "xfa/fwl/theme/cfwl_arrowdata.h" | 7 #include "xfa/fwl/theme/cfwl_arrowdata.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 CFWL_ArrowData* g_pInstance = nullptr; | 13 CFWL_ArrowData* g_pInstance = nullptr; |
| 14 | 14 |
| 15 } // namespace | 15 } // namespace |
| 16 | 16 |
| 17 CFWL_ArrowData* CFWL_ArrowData::GetInstance() { | 17 CFWL_ArrowData* CFWL_ArrowData::GetInstance() { |
| 18 if (!g_pInstance) | 18 if (!g_pInstance) |
| 19 g_pInstance = new CFWL_ArrowData; | 19 g_pInstance = new CFWL_ArrowData; |
| 20 return g_pInstance; | 20 return g_pInstance; |
| 21 } | 21 } |
| 22 | 22 |
| 23 FX_BOOL CFWL_ArrowData::HasInstance() { | 23 bool CFWL_ArrowData::HasInstance() { |
| 24 return !!g_pInstance; | 24 return !!g_pInstance; |
| 25 } | 25 } |
| 26 | 26 |
| 27 void CFWL_ArrowData::DestroyInstance() { | 27 void CFWL_ArrowData::DestroyInstance() { |
| 28 delete g_pInstance; | 28 delete g_pInstance; |
| 29 g_pInstance = nullptr; | 29 g_pInstance = nullptr; |
| 30 } | 30 } |
| 31 | 31 |
| 32 CFWL_ArrowData::~CFWL_ArrowData() {} | 32 CFWL_ArrowData::~CFWL_ArrowData() {} |
| 33 | 33 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 64 m_pColorData->clrEnd[0] = ArgbEncode(255, 175, 204, 251); | 64 m_pColorData->clrEnd[0] = ArgbEncode(255, 175, 204, 251); |
| 65 m_pColorData->clrEnd[1] = ArgbEncode(255, 185, 218, 251); | 65 m_pColorData->clrEnd[1] = ArgbEncode(255, 185, 218, 251); |
| 66 m_pColorData->clrEnd[2] = ArgbEncode(255, 210, 222, 235); | 66 m_pColorData->clrEnd[2] = ArgbEncode(255, 210, 222, 235); |
| 67 m_pColorData->clrEnd[3] = ArgbEncode(255, 243, 241, 236); | 67 m_pColorData->clrEnd[3] = ArgbEncode(255, 243, 241, 236); |
| 68 m_pColorData->clrSign[0] = ArgbEncode(255, 77, 97, 133); | 68 m_pColorData->clrSign[0] = ArgbEncode(255, 77, 97, 133); |
| 69 m_pColorData->clrSign[1] = ArgbEncode(255, 77, 97, 133); | 69 m_pColorData->clrSign[1] = ArgbEncode(255, 77, 97, 133); |
| 70 m_pColorData->clrSign[2] = ArgbEncode(255, 77, 97, 133); | 70 m_pColorData->clrSign[2] = ArgbEncode(255, 77, 97, 133); |
| 71 m_pColorData->clrSign[3] = ArgbEncode(255, 128, 128, 128); | 71 m_pColorData->clrSign[3] = ArgbEncode(255, 128, 128, 128); |
| 72 } | 72 } |
| 73 } | 73 } |
| OLD | NEW |