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

Side by Side Diff: core/fpdfdoc/cpdf_annotlist.h

Issue 2163133002: Move CPDF_Annot and CPDF_AnnotList to their own header. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Move CPDF_Annot and CPDF_AnnotList to their own headers. 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
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef CORE_FPDFDOC_CPDF_ANNOTLIST_H_
8 #define CORE_FPDFDOC_CPDF_ANNOTLIST_H_
9
10 #include <memory>
11 #include <vector>
12
13 #include "core/fxcrt/include/fx_coordinates.h"
14 #include "core/fxcrt/include/fx_system.h"
15
16 class CFX_RenderDevice;
17 class CPDF_Annot;
18 class CPDF_Document;
19 class CPDF_Page;
20 class CPDF_RenderContext;
21 class CPDF_RenderOptions;
22
23 class CPDF_AnnotList {
24 public:
25 explicit CPDF_AnnotList(CPDF_Page* pPage);
26 ~CPDF_AnnotList();
27
28 void DisplayAnnots(CPDF_Page* pPage,
29 CPDF_RenderContext* pContext,
30 FX_BOOL bPrinting,
31 CFX_Matrix* pMatrix,
32 FX_BOOL bShowWidget,
33 CPDF_RenderOptions* pOptions) {
34 DisplayAnnots(pPage, nullptr, pContext, bPrinting, pMatrix,
35 bShowWidget ? 3 : 1, pOptions, nullptr);
36 }
37
38 void DisplayAnnots(CPDF_Page* pPage,
39 CFX_RenderDevice* pDevice,
40 CPDF_RenderContext* pContext,
41 FX_BOOL bPrinting,
42 CFX_Matrix* pMatrix,
43 uint32_t dwAnnotFlags,
44 CPDF_RenderOptions* pOptions,
45 FX_RECT* pClipRect);
46 size_t Count() const { return m_AnnotList.size(); }
47 CPDF_Annot* GetAt(size_t index) const { return m_AnnotList[index].get(); }
48 const std::vector<std::unique_ptr<CPDF_Annot>>& All() const {
49 return m_AnnotList;
50 }
51
52 private:
53 void DisplayPass(CPDF_Page* pPage,
54 CFX_RenderDevice* pDevice,
55 CPDF_RenderContext* pContext,
56 FX_BOOL bPrinting,
57 CFX_Matrix* pMatrix,
58 FX_BOOL bWidget,
59 CPDF_RenderOptions* pOptions,
60 FX_RECT* clip_rect);
61
62 CPDF_Document* const m_pDocument;
63 std::vector<std::unique_ptr<CPDF_Annot>> m_AnnotList;
64 };
65
66 #endif // CORE_FPDFDOC_CPDF_ANNOTLIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698