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

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

Issue 2165993002: Move xfa_basic_imp to cxfa_widetextread. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Really fix it .... Created 4 years, 5 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
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_CXFA_WIDETEXTREAD_H_
8 #define XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ 8 #define XFA_FXFA_PARSER_CXFA_WIDETEXTREAD_H_
9 9
10 #include "xfa/fgas/crt/fgas_stream.h" 10 #include "xfa/fgas/crt/fgas_stream.h"
11 #include "xfa/fxfa/include/fxfa_basic.h"
12
13 struct XFA_NOTSUREATTRIBUTE {
14 XFA_Element eElement;
15 XFA_ATTRIBUTE eAttribute;
16 XFA_ATTRIBUTETYPE eType;
17 void* pValue;
18 };
19 const XFA_NOTSUREATTRIBUTE* XFA_GetNotsureAttribute(
20 XFA_Element eElement,
21 XFA_ATTRIBUTE eAttribute,
22 XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE);
23 11
24 class CXFA_WideTextRead : public IFX_Stream { 12 class CXFA_WideTextRead : public IFX_Stream {
25 public: 13 public:
26 CXFA_WideTextRead(const CFX_WideString& wsBuffer); 14 CXFA_WideTextRead(const CFX_WideString& wsBuffer);
27 15
28 // IFX_Stream 16 // IFX_Stream
29 void Release() override; 17 void Release() override;
30 IFX_Stream* Retain() override; 18 IFX_Stream* Retain() override;
31 uint32_t GetAccessModes() const override; 19 uint32_t GetAccessModes() const override;
32 int32_t GetLength() const override; 20 int32_t GetLength() const override;
(...skipping 19 matching lines...) Expand all
52 virtual void Unlock(); 40 virtual void Unlock();
53 41
54 CFX_WideString GetSrcText() const; 42 CFX_WideString GetSrcText() const;
55 43
56 protected: 44 protected:
57 CFX_WideString m_wsBuffer; 45 CFX_WideString m_wsBuffer;
58 int32_t m_iPosition; 46 int32_t m_iPosition;
59 int32_t m_iRefCount; 47 int32_t m_iRefCount;
60 }; 48 };
61 49
62 #endif // XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ 50 #endif // XFA_FXFA_PARSER_CXFA_WIDETEXTREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698