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

Side by Side Diff: xfa/fxfa/parser/xfa_basic_imp.h

Issue 1835703002: Remove FX_DWORD from XFA, part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « xfa/fxfa/fm2js/xfa_simpleexpression.h ('k') | xfa/fxfa/parser/xfa_docdata.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ 7 #ifndef XFA_FXFA_PARSER_XFA_BASIC_IMP_H_
8 #define XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ 8 #define XFA_FXFA_PARSER_XFA_BASIC_IMP_H_
9 9
10 #include "xfa/fgas/crt/fgas_stream.h" 10 #include "xfa/fgas/crt/fgas_stream.h"
11 #include "xfa/include/fxfa/fxfa_basic.h" 11 #include "xfa/include/fxfa/fxfa_basic.h"
12 12
13 struct XFA_NOTSUREATTRIBUTE { 13 struct XFA_NOTSUREATTRIBUTE {
14 XFA_ELEMENT eElement; 14 XFA_ELEMENT eElement;
15 XFA_ATTRIBUTE eAttribute; 15 XFA_ATTRIBUTE eAttribute;
16 XFA_ATTRIBUTETYPE eType; 16 XFA_ATTRIBUTETYPE eType;
17 void* pValue; 17 void* pValue;
18 }; 18 };
19 const XFA_NOTSUREATTRIBUTE* XFA_GetNotsureAttribute( 19 const XFA_NOTSUREATTRIBUTE* XFA_GetNotsureAttribute(
20 XFA_ELEMENT eElement, 20 XFA_ELEMENT eElement,
21 XFA_ATTRIBUTE eAttribute, 21 XFA_ATTRIBUTE eAttribute,
22 XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE); 22 XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE);
23 23
24 class CXFA_WideTextRead : public IFX_Stream { 24 class CXFA_WideTextRead : public IFX_Stream {
25 public: 25 public:
26 CXFA_WideTextRead(const CFX_WideString& wsBuffer); 26 CXFA_WideTextRead(const CFX_WideString& wsBuffer);
27 virtual void Release(); 27 virtual void Release();
28 virtual IFX_Stream* Retain(); 28 virtual IFX_Stream* Retain();
29 29
30 virtual FX_DWORD GetAccessModes() const; 30 virtual uint32_t GetAccessModes() const;
31 virtual int32_t GetLength() const; 31 virtual int32_t GetLength() const;
32 virtual int32_t Seek(FX_STREAMSEEK eSeek, int32_t iOffset); 32 virtual int32_t Seek(FX_STREAMSEEK eSeek, int32_t iOffset);
33 virtual int32_t GetPosition(); 33 virtual int32_t GetPosition();
34 virtual FX_BOOL IsEOF() const; 34 virtual FX_BOOL IsEOF() const;
35 35
36 virtual int32_t ReadData(uint8_t* pBuffer, int32_t iBufferSize) { return 0; } 36 virtual int32_t ReadData(uint8_t* pBuffer, int32_t iBufferSize) { return 0; }
37 virtual int32_t ReadString(FX_WCHAR* pStr, 37 virtual int32_t ReadString(FX_WCHAR* pStr,
38 int32_t iMaxLength, 38 int32_t iMaxLength,
39 FX_BOOL& bEOS, 39 FX_BOOL& bEOS,
40 int32_t const* pByteSize = NULL); 40 int32_t const* pByteSize = NULL);
41 virtual int32_t WriteData(const uint8_t* pBuffer, int32_t iBufferSize) { 41 virtual int32_t WriteData(const uint8_t* pBuffer, int32_t iBufferSize) {
42 return 0; 42 return 0;
43 } 43 }
44 virtual int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) { 44 virtual int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) {
45 return 0; 45 return 0;
46 } 46 }
47 virtual void Flush() {} 47 virtual void Flush() {}
48 virtual FX_BOOL SetLength(int32_t iLength) { return FALSE; } 48 virtual FX_BOOL SetLength(int32_t iLength) { return FALSE; }
49 49
50 virtual int32_t GetBOM(uint8_t bom[4]) const { return 0; } 50 virtual int32_t GetBOM(uint8_t bom[4]) const { return 0; }
51 virtual uint16_t GetCodePage() const; 51 virtual uint16_t GetCodePage() const;
52 virtual uint16_t SetCodePage(uint16_t wCodePage); 52 virtual uint16_t SetCodePage(uint16_t wCodePage);
53 53
54 virtual void Lock() {} 54 virtual void Lock() {}
55 virtual void Unlock() {} 55 virtual void Unlock() {}
56 56
57 virtual IFX_Stream* CreateSharedStream(FX_DWORD dwAccess, 57 virtual IFX_Stream* CreateSharedStream(uint32_t dwAccess,
58 int32_t iOffset, 58 int32_t iOffset,
59 int32_t iLength) { 59 int32_t iLength) {
60 return NULL; 60 return NULL;
61 } 61 }
62 62
63 CFX_WideString GetSrcText() const { return m_wsBuffer; } 63 CFX_WideString GetSrcText() const { return m_wsBuffer; }
64 64
65 protected: 65 protected:
66 CFX_WideString m_wsBuffer; 66 CFX_WideString m_wsBuffer;
67 int32_t m_iPosition; 67 int32_t m_iPosition;
68 int32_t m_iRefCount; 68 int32_t m_iRefCount;
69 }; 69 };
70 70
71 #endif // XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ 71 #endif // XFA_FXFA_PARSER_XFA_BASIC_IMP_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/fm2js/xfa_simpleexpression.h ('k') | xfa/fxfa/parser/xfa_docdata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698