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

Side by Side Diff: xfa/fde/fde_iterator.h

Issue 1896893003: Cleanup FDE interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/fde/fde_geobject.cpp ('k') | xfa/fde/fde_iterator.cpp » ('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_FDE_FDE_ITERATOR_H_ 7 #ifndef XFA_FDE_FDE_ITERATOR_H_
8 #define XFA_FDE_FDE_ITERATOR_H_ 8 #define XFA_FDE_FDE_ITERATOR_H_
9 9
10 #include "xfa/fde/fde_visualset.h" 10 #include "xfa/fde/fde_visualset.h"
11 #include "xfa/fgas/crt/fgas_memory.h" 11 #include "xfa/fgas/crt/fgas_memory.h"
12 #include "xfa/fgas/crt/fgas_utils.h" 12 #include "xfa/fgas/crt/fgas_utils.h"
13 13
14 struct FDE_CANVASITEM { 14 struct FDE_CANVASITEM {
15 IFDE_CanvasSet* pCanvas; 15 IFDE_CanvasSet* pCanvas;
16 FDE_HVISUALOBJ hCanvas; 16 FDE_HVISUALOBJ hCanvas;
17 FX_POSITION hPos; 17 FX_POSITION hPos;
18 }; 18 };
19 19
20 class CFDE_VisualSetIterator : public IFDE_VisualSetIterator, 20 class CFDE_VisualSetIterator : public CFX_Target {
21 public CFX_Target {
22 public: 21 public:
23 CFDE_VisualSetIterator(); 22 CFDE_VisualSetIterator();
24 ~CFDE_VisualSetIterator(); 23 ~CFDE_VisualSetIterator();
25 virtual void Release() { delete this; }
26 24
27 virtual FX_BOOL AttachCanvas(IFDE_CanvasSet* pCanvas); 25 void Release() { delete this; }
28 virtual FX_BOOL FilterObjects(uint32_t dwObjects = 0xFFFFFFFF);
29 26
30 virtual void Reset(); 27 FX_BOOL AttachCanvas(IFDE_CanvasSet* pCanvas);
31 virtual FDE_HVISUALOBJ GetNext(IFDE_VisualSet*& pVisualSet, 28 FX_BOOL FilterObjects(uint32_t dwObjects = 0xFFFFFFFF);
32 FDE_HVISUALOBJ* phCanvasObj = NULL, 29
33 IFDE_CanvasSet** ppCanvasSet = NULL); 30 void Reset();
31 FDE_HVISUALOBJ GetNext(IFDE_VisualSet*& pVisualSet,
32 FDE_HVISUALOBJ* phCanvasObj = NULL,
33 IFDE_CanvasSet** ppCanvasSet = NULL);
34 34
35 protected: 35 protected:
36 uint32_t m_dwFilter; 36 uint32_t m_dwFilter;
37 CFX_StackTemplate<FDE_CANVASITEM> m_CanvasStack; 37 CFX_StackTemplate<FDE_CANVASITEM> m_CanvasStack;
38 }; 38 };
39 39
40 #endif // XFA_FDE_FDE_ITERATOR_H_ 40 #endif // XFA_FDE_FDE_ITERATOR_H_
OLDNEW
« no previous file with comments | « xfa/fde/fde_geobject.cpp ('k') | xfa/fde/fde_iterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698