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

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

Issue 2154843002: Clean up singleton implementation (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 5 months 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.gyp ('k') | xfa/fwl/theme/cfwl_arrowdata.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_FWL_THEME_CFWL_ARROWDATA_H_
8 #define XFA_FWL_THEME_CFWL_ARROWDATA_H_
9
10 #include <memory>
11
12 #include "core/fxcrt/include/fx_system.h"
13 #include "core/fxge/include/fx_dib.h"
14
15 class CFWL_ArrowData {
16 public:
17 struct CColorData {
18 FX_ARGB clrBorder[4];
19 FX_ARGB clrStart[4];
20 FX_ARGB clrEnd[4];
21 FX_ARGB clrSign[4];
22 };
23
24 static CFWL_ArrowData* GetInstance();
25 static FX_BOOL HasInstance();
26 static void DestroyInstance();
27 void SetColorData(uint32_t dwID);
28
29 std::unique_ptr<CColorData> m_pColorData;
30
31 private:
32 CFWL_ArrowData();
33 ~CFWL_ArrowData();
34 };
35
36 #endif // XFA_FWL_THEME_CFWL_ARROWDATA_H_
OLDNEW
« no previous file with comments | « xfa.gyp ('k') | xfa/fwl/theme/cfwl_arrowdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698