Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: xfa/fwl/theme/cfwl_arrowdata.cpp

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/theme/cfwl_arrowdata.h ('k') | xfa/fwl/theme/cfwl_monthcalendartp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_arrowdata.h ('k') | xfa/fwl/theme/cfwl_monthcalendartp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698