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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa.gyp ('k') | xfa/fwl/theme/cfwl_arrowdata.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/theme/cfwl_arrowdata.h
diff --git a/xfa/fwl/theme/cfwl_arrowdata.h b/xfa/fwl/theme/cfwl_arrowdata.h
new file mode 100644
index 0000000000000000000000000000000000000000..88982ab12dd29572302476cb3977c5e98e93f9ec
--- /dev/null
+++ b/xfa/fwl/theme/cfwl_arrowdata.h
@@ -0,0 +1,36 @@
+// Copyright 2016 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef XFA_FWL_THEME_CFWL_ARROWDATA_H_
+#define XFA_FWL_THEME_CFWL_ARROWDATA_H_
+
+#include <memory>
+
+#include "core/fxcrt/include/fx_system.h"
+#include "core/fxge/include/fx_dib.h"
+
+class CFWL_ArrowData {
+ public:
+ struct CColorData {
+ FX_ARGB clrBorder[4];
+ FX_ARGB clrStart[4];
+ FX_ARGB clrEnd[4];
+ FX_ARGB clrSign[4];
+ };
+
+ static CFWL_ArrowData* GetInstance();
+ static FX_BOOL HasInstance();
+ static void DestroyInstance();
+ void SetColorData(uint32_t dwID);
+
+ std::unique_ptr<CColorData> m_pColorData;
+
+ private:
+ CFWL_ArrowData();
+ ~CFWL_ArrowData();
+};
+
+#endif // XFA_FWL_THEME_CFWL_ARROWDATA_H_
« 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