summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_charposlist.h
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-11-17 13:50:44 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-17 13:50:44 -0800
commit483f3c485ac727cbf74c89e3912e5a4475d5f8f9 (patch)
tree546976bd96b8bad85bdad99a131a5ce425359ce9 /core/fpdfapi/render/cpdf_charposlist.h
parentbcf4695095caa8ecc1b2df25992a7d06d58d80ac (diff)
downloadpdfium-483f3c485ac727cbf74c89e3912e5a4475d5f8f9.tar.xz
Move CPDF_RenderStatus from render_int
Moved CPDF_RenderStatus to its own class and removed unused methods. I only added some spaces and removed some {}s in cpdf_renderstatus.cpp. Will do cleanup of the file as a followup because it would be too hard to keep track of what's changed in this CL. Review-Url: https://codereview.chromium.org/2513693002
Diffstat (limited to 'core/fpdfapi/render/cpdf_charposlist.h')
-rw-r--r--core/fpdfapi/render/cpdf_charposlist.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/core/fpdfapi/render/cpdf_charposlist.h b/core/fpdfapi/render/cpdf_charposlist.h
new file mode 100644
index 0000000000..9fa3c2cf51
--- /dev/null
+++ b/core/fpdfapi/render/cpdf_charposlist.h
@@ -0,0 +1,28 @@
+// 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 CORE_FPDFAPI_RENDER_CPDF_CHARPOSLIST_H_
+#define CORE_FPDFAPI_RENDER_CPDF_CHARPOSLIST_H_
+
+#include "core/fxcrt/fx_system.h"
+#include "core/fxge/cfx_renderdevice.h"
+
+class CPDF_Font;
+
+class CPDF_CharPosList {
+ public:
+ CPDF_CharPosList();
+ ~CPDF_CharPosList();
+ void Load(int nChars,
+ uint32_t* pCharCodes,
+ FX_FLOAT* pCharPos,
+ CPDF_Font* pFont,
+ FX_FLOAT font_size);
+ FXTEXT_CHARPOS* m_pCharPos;
+ uint32_t m_nChars;
+};
+
+#endif // CORE_FPDFAPI_RENDER_CPDF_CHARPOSLIST_H_