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

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

Issue 2183313004: Split fpdfdoc/include/fpdf_doc.h into individual classes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: review feedback Created 4 years, 4 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/cpdf_annotlist.h ('k') | core/fpdfdoc/cpdf_apsettings.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 2016 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 #include "core/fpdfdoc/cpdf_annotlist.h" 7 #include "core/fpdfdoc/include/cpdf_annotlist.h"
8 8
9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" 9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
11 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h" 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h"
12 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" 12 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h"
13 #include "core/fpdfdoc/cpdf_annot.h"
14 #include "core/fpdfdoc/cpvt_generateap.h" 13 #include "core/fpdfdoc/cpvt_generateap.h"
14 #include "core/fpdfdoc/include/cpdf_annot.h"
15 #include "core/fpdfdoc/include/cpdf_interform.h"
16 #include "core/fpdfdoc/include/cpdf_occontext.h"
15 17
16 CPDF_AnnotList::CPDF_AnnotList(CPDF_Page* pPage) 18 CPDF_AnnotList::CPDF_AnnotList(CPDF_Page* pPage)
17 : m_pDocument(pPage->m_pDocument) { 19 : m_pDocument(pPage->m_pDocument) {
18 if (!pPage->m_pFormDict) 20 if (!pPage->m_pFormDict)
19 return; 21 return;
20 22
21 CPDF_Array* pAnnots = pPage->m_pFormDict->GetArrayBy("Annots"); 23 CPDF_Array* pAnnots = pPage->m_pFormDict->GetArrayBy("Annots");
22 if (!pAnnots) 24 if (!pAnnots)
23 return; 25 return;
24 26
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 CPDF_RenderContext* pContext, 125 CPDF_RenderContext* pContext,
124 FX_BOOL bPrinting, 126 FX_BOOL bPrinting,
125 CFX_Matrix* pMatrix, 127 CFX_Matrix* pMatrix,
126 FX_BOOL bShowWidget, 128 FX_BOOL bShowWidget,
127 CPDF_RenderOptions* pOptions) { 129 CPDF_RenderOptions* pOptions) {
128 uint32_t dwAnnotFlags = bShowWidget ? ANNOTFLAG_INVISIBLE | ANNOTFLAG_HIDDEN 130 uint32_t dwAnnotFlags = bShowWidget ? ANNOTFLAG_INVISIBLE | ANNOTFLAG_HIDDEN
129 : ANNOTFLAG_INVISIBLE; 131 : ANNOTFLAG_INVISIBLE;
130 DisplayAnnots(pPage, nullptr, pContext, bPrinting, pMatrix, dwAnnotFlags, 132 DisplayAnnots(pPage, nullptr, pContext, bPrinting, pMatrix, dwAnnotFlags,
131 pOptions, nullptr); 133 pOptions, nullptr);
132 } 134 }
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpdf_annotlist.h ('k') | core/fpdfdoc/cpdf_apsettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698