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

Unified Diff: core/include/fpdfapi/fpdf_pageobj.h

Issue 1695633004: Fix the way to access marked content. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 10 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
Index: core/include/fpdfapi/fpdf_pageobj.h
diff --git a/core/include/fpdfapi/fpdf_pageobj.h b/core/include/fpdfapi/fpdf_pageobj.h
index 7a3d390fed92cf1021ffb22b38001699f214d860..42248c7dd1a99b6cb62975d5f3c99530d4f8d2ff 100644
--- a/core/include/fpdfapi/fpdf_pageobj.h
+++ b/core/include/fpdfapi/fpdf_pageobj.h
@@ -265,7 +265,7 @@ class CPDF_GeneralState : public CFX_CountRef<CPDF_GeneralStateData> {
};
class CPDF_ContentMarkItem {
public:
- typedef enum { None, PropertiesDict, DirectDict, MCID } ParamType;
+ enum ParamType { None, PropertiesDict, DirectDict };
CPDF_ContentMarkItem();
@@ -277,13 +277,13 @@ class CPDF_ContentMarkItem {
inline ParamType GetParamType() const { return m_ParamType; }
- inline void* GetParam() const { return m_pParam; }
+ inline CPDF_Dictionary* GetParam() const { return m_pParam; }
inline FX_BOOL HasMCID() const;
inline void SetName(const CFX_ByteString& name) { m_MarkName = name; }
- inline void SetParam(ParamType type, void* param) {
+ inline void SetParam(ParamType type, CPDF_Dictionary* param) {
m_ParamType = type;
m_pParam = param;
}
@@ -293,7 +293,7 @@ class CPDF_ContentMarkItem {
ParamType m_ParamType;
- void* m_pParam;
+ CPDF_Dictionary* m_pParam;
};
class CPDF_ContentMarkData {
public:

Powered by Google App Engine
This is Rietveld 408576698