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

Unified Diff: core/fxcrt/include/fx_basic.h

Issue 1980293004: Pass objects instead of strings for undo/redo records. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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/fxcrt/include/fx_basic.h
diff --git a/core/fxcrt/include/fx_basic.h b/core/fxcrt/include/fx_basic.h
index 59d72b8f5aef8fb4a422ecf61180480652b3d930..1835d9e0a6d5cb6ab75dca07d275f6bcd3310d03 100644
--- a/core/fxcrt/include/fx_basic.h
+++ b/core/fxcrt/include/fx_basic.h
@@ -108,71 +108,6 @@ class CFX_WideTextBuf : public CFX_BinaryBuf {
CFX_WideTextBuf& operator<<(const CFX_WideTextBuf& buf);
};
-#ifdef PDF_ENABLE_XFA
-class CFX_ArchiveSaver {
- public:
- CFX_ArchiveSaver() : m_pStream(NULL) {}
-
- CFX_ArchiveSaver& operator<<(uint8_t i);
-
- CFX_ArchiveSaver& operator<<(int i);
-
- CFX_ArchiveSaver& operator<<(uint32_t i);
-
- CFX_ArchiveSaver& operator<<(FX_FLOAT i);
-
- CFX_ArchiveSaver& operator<<(double i);
-
- CFX_ArchiveSaver& operator<<(const CFX_ByteStringC& bstr);
-
- CFX_ArchiveSaver& operator<<(const FX_WCHAR* bstr);
-
- CFX_ArchiveSaver& operator<<(const CFX_WideString& wstr);
-
- void Write(const void* pData, FX_STRSIZE dwSize);
-
- intptr_t GetLength() { return m_SavingBuf.GetSize(); }
-
- const uint8_t* GetBuffer() { return m_SavingBuf.GetBuffer(); }
-
- void SetStream(IFX_FileStream* pStream) { m_pStream = pStream; }
-
- protected:
- CFX_BinaryBuf m_SavingBuf;
-
- IFX_FileStream* m_pStream;
-};
-class CFX_ArchiveLoader {
- public:
- CFX_ArchiveLoader(const uint8_t* pData, uint32_t dwSize);
-
- CFX_ArchiveLoader& operator>>(uint8_t& i);
-
- CFX_ArchiveLoader& operator>>(int& i);
-
- CFX_ArchiveLoader& operator>>(uint32_t& i);
-
- CFX_ArchiveLoader& operator>>(FX_FLOAT& i);
-
- CFX_ArchiveLoader& operator>>(double& i);
-
- CFX_ArchiveLoader& operator>>(CFX_ByteString& bstr);
-
- CFX_ArchiveLoader& operator>>(CFX_WideString& wstr);
-
- FX_BOOL IsEOF();
-
- FX_BOOL Read(void* pBuf, uint32_t dwSize);
-
- protected:
- uint32_t m_LoadingPos;
-
- const uint8_t* m_pLoadingBuf;
-
- uint32_t m_LoadingSize;
-};
-#endif // PDF_ENABLE_XFA
-
class CFX_FileBufferArchive {
public:
CFX_FileBufferArchive();

Powered by Google App Engine
This is Rietveld 408576698