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

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

Issue 2374383003: Move core/fpdfdoc/include to core/fpdfdoc (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 | « core/fpdfdoc/include/cpdf_annot.h ('k') | core/fpdfdoc/include/cpdf_bookmark.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_INCLUDE_CPDF_ANNOTLIST_H_
8 #define CORE_FPDFDOC_INCLUDE_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
35 void DisplayAnnots(CPDF_Page* pPage,
36 CFX_RenderDevice* pDevice,
37 CPDF_RenderContext* pContext,
38 FX_BOOL bPrinting,
39 CFX_Matrix* pMatrix,
40 uint32_t dwAnnotFlags,
41 CPDF_RenderOptions* pOptions,
42 FX_RECT* pClipRect);
43
44 size_t Count() const { return m_AnnotList.size(); }
45 CPDF_Annot* GetAt(size_t index) const { return m_AnnotList[index].get(); }
46 const std::vector<std::unique_ptr<CPDF_Annot>>& All() const {
47 return m_AnnotList;
48 }
49
50 private:
51 void DisplayPass(CPDF_Page* pPage,
52 CFX_RenderDevice* pDevice,
53 CPDF_RenderContext* pContext,
54 FX_BOOL bPrinting,
55 CFX_Matrix* pMatrix,
56 FX_BOOL bWidget,
57 CPDF_RenderOptions* pOptions,
58 FX_RECT* clip_rect);
59
60 CPDF_Document* const m_pDocument;
61 std::vector<std::unique_ptr<CPDF_Annot>> m_AnnotList;
62 };
63
64 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ANNOTLIST_H_
OLDNEW
« no previous file with comments | « core/fpdfdoc/include/cpdf_annot.h ('k') | core/fpdfdoc/include/cpdf_bookmark.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698