Chromium Code Reviews| Index: core/include/fpdfdoc/fpdf_doc.h |
| diff --git a/core/include/fpdfdoc/fpdf_doc.h b/core/include/fpdfdoc/fpdf_doc.h |
| index ac7b0cf774d5e42a22d26da43f5315aead5f3d83..5ee0c90e1429db0d6546c5038ba8f2c4fa10fbcb 100644 |
| --- a/core/include/fpdfdoc/fpdf_doc.h |
| +++ b/core/include/fpdfdoc/fpdf_doc.h |
| @@ -951,37 +951,37 @@ class CPDF_FormControl { |
| return GetColor(iColorType, "BC"); |
| } |
| - inline FX_FLOAT GetOriginalBorderColor(int index) { |
| + FX_FLOAT GetOriginalBorderColor(int index) { |
| return GetOriginalColor(index, "BC"); |
| } |
| - inline void GetOriginalBorderColor(int& iColorType, FX_FLOAT fc[4]) { |
| + void GetOriginalBorderColor(int& iColorType, FX_FLOAT fc[4]) { |
| GetOriginalColor(iColorType, fc, "BC"); |
| } |
| - inline FX_ARGB GetBackgroundColor(int& iColorType) { |
| + FX_ARGB GetBackgroundColor(int& iColorType) { |
| return GetColor(iColorType, "BG"); |
| } |
| - inline FX_FLOAT GetOriginalBackgroundColor(int index) { |
| + FX_FLOAT GetOriginalBackgroundColor(int index) { |
| return GetOriginalColor(index, "BG"); |
| } |
| - inline void GetOriginalBackgroundColor(int& iColorType, FX_FLOAT fc[4]) { |
| + void GetOriginalBackgroundColor(int& iColorType, FX_FLOAT fc[4]) { |
| GetOriginalColor(iColorType, fc, "BG"); |
| } |
| - inline CFX_WideString GetNormalCaption() { return GetCaption("CA"); } |
| + CFX_WideString GetNormalCaption() { return GetCaption("CA"); } |
| - inline CFX_WideString GetRolloverCaption() { return GetCaption("RC"); } |
| + CFX_WideString GetRolloverCaption() { return GetCaption("RC"); } |
| - inline CFX_WideString GetDownCaption() { return GetCaption("AC"); } |
| + CFX_WideString GetDownCaption() { return GetCaption("AC"); } |
| - inline CPDF_Stream* GetNormalIcon() { return GetIcon("I"); } |
| + CPDF_Stream* GetNormalIcon() { return GetIcon("I"); } |
| - inline CPDF_Stream* GetRolloverIcon() { return GetIcon("RI"); } |
| + CPDF_Stream* GetRolloverIcon() { return GetIcon("RI"); } |
| - inline CPDF_Stream* GetDownIcon() { return GetIcon("IX"); } |
| + CPDF_Stream* GetDownIcon() { return GetIcon("IX"); } |
| CPDF_IconFit GetIconFit(); |
| @@ -1018,7 +1018,7 @@ class CPDF_FormControl { |
| CPDF_Stream* GetIcon(CFX_ByteString csEntry); |
| - CPDF_ApSettings GetMK(FX_BOOL bCreate); |
| + CPDF_ApSettings GetMK(); |
| CPDF_InterForm* m_pForm; |
| @@ -1107,74 +1107,71 @@ class CPDF_ViewerPreferences { |
| class CPDF_ApSettings { |
| public: |
| - // TODO(thestig): Examine why this cannot be explicit. |
| - CPDF_ApSettings(CPDF_Dictionary* pDict = NULL) { m_pDict = pDict; } |
| - |
| - operator CPDF_Dictionary*() const { return m_pDict; } |
|
Tom Sepez
2015/11/10 17:28:04
You removed this, right? Are we sure there aren't
Tom Sepez
2015/11/10 17:31:20
Guess not:
$ git grep '(\s*CPDF_Dictionary\s*\*\s
Lei Zhang
2015/11/11 02:27:55
Acknowledged.
Lei Zhang
2015/11/11 02:27:55
cs.chromium.org's xref also shows all uses of this
|
| - |
| - FX_BOOL HasMKEntry(const CFX_ByteStringC& csEntry); |
| + explicit CPDF_ApSettings(CPDF_Dictionary* pDict); |
| - int GetRotation(); |
| + FX_BOOL HasMKEntry(const CFX_ByteStringC& csEntry) const; |
| + int GetRotation() const; |
| - inline FX_ARGB GetBorderColor(int& iColorType) { |
| + FX_ARGB GetBorderColor(int& iColorType) const { |
| return GetColor(iColorType, FX_BSTRC("BC")); |
| } |
| - inline FX_FLOAT GetOriginalBorderColor(int index) { |
| + FX_FLOAT GetOriginalBorderColor(int index) const { |
| return GetOriginalColor(index, FX_BSTRC("BC")); |
| } |
| - inline void GetOriginalBorderColor(int& iColorType, FX_FLOAT fc[4]) { |
| + void GetOriginalBorderColor(int& iColorType, FX_FLOAT fc[4]) const { |
| GetOriginalColor(iColorType, fc, FX_BSTRC("BC")); |
| } |
| - inline FX_ARGB GetBackgroundColor(int& iColorType) { |
| + FX_ARGB GetBackgroundColor(int& iColorType) const { |
| return GetColor(iColorType, FX_BSTRC("BG")); |
| } |
| - inline FX_FLOAT GetOriginalBackgroundColor(int index) { |
| + FX_FLOAT GetOriginalBackgroundColor(int index) const { |
| return GetOriginalColor(index, FX_BSTRC("BG")); |
| } |
| - inline void GetOriginalBackgroundColor(int& iColorType, FX_FLOAT fc[4]) { |
| + void GetOriginalBackgroundColor(int& iColorType, FX_FLOAT fc[4]) const { |
| GetOriginalColor(iColorType, fc, FX_BSTRC("BG")); |
| } |
| - inline CFX_WideString GetNormalCaption() { |
| - return GetCaption(FX_BSTRC("CA")); |
| - } |
| + CFX_WideString GetNormalCaption() const { return GetCaption(FX_BSTRC("CA")); } |
| - inline CFX_WideString GetRolloverCaption() { |
| + CFX_WideString GetRolloverCaption() const { |
| return GetCaption(FX_BSTRC("RC")); |
| } |
| - inline CFX_WideString GetDownCaption() { return GetCaption(FX_BSTRC("AC")); } |
| - |
| - inline CPDF_Stream* GetNormalIcon() { return GetIcon(FX_BSTRC("I")); } |
| + CFX_WideString GetDownCaption() const { return GetCaption(FX_BSTRC("AC")); } |
| - inline CPDF_Stream* GetRolloverIcon() { return GetIcon(FX_BSTRC("RI")); } |
| + CPDF_Stream* GetNormalIcon() const { return GetIcon(FX_BSTRC("I")); } |
| - inline CPDF_Stream* GetDownIcon() { return GetIcon(FX_BSTRC("IX")); } |
| + CPDF_Stream* GetRolloverIcon() const { return GetIcon(FX_BSTRC("RI")); } |
| - CPDF_IconFit GetIconFit(); |
| + CPDF_Stream* GetDownIcon() const { return GetIcon(FX_BSTRC("IX")); } |
| - int GetTextPosition(); |
| + CPDF_IconFit GetIconFit() const; |
| - CPDF_Dictionary* m_pDict; |
| + int GetTextPosition() const; |
| protected: |
| - FX_ARGB GetColor(int& iColorType, const CFX_ByteStringC& csEntry); |
| + friend class CPDF_FormControl; |
| - FX_FLOAT GetOriginalColor(int index, const CFX_ByteStringC& csEntry); |
| + FX_ARGB GetColor(int& iColorType, const CFX_ByteStringC& csEntry) const; |
| + |
| + FX_FLOAT GetOriginalColor(int index, const CFX_ByteStringC& csEntry) const; |
| void GetOriginalColor(int& iColorType, |
| FX_FLOAT fc[4], |
| - const CFX_ByteStringC& csEntry); |
| + const CFX_ByteStringC& csEntry) const; |
| - CFX_WideString GetCaption(const CFX_ByteStringC& csEntry); |
| + CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; |
| - CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry); |
| - friend class CPDF_FormControl; |
| + CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; |
| + |
| + CPDF_Dictionary* const m_pDict; |
| }; |
| +CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); |
| + |
| #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |