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

Side by Side Diff: fpdfsdk/cpdfsdk_baannot.cpp

Issue 2384503003: Move fpdfsdk/include to fpdfsdk (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 | « fpdfsdk/cpdfsdk_baannot.h ('k') | fpdfsdk/cpdfsdk_baannothandler.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 "fpdfsdk/include/cpdfsdk_baannot.h" 7 #include "fpdfsdk/cpdfsdk_baannot.h"
8 8
9 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" 9 #include "core/fpdfapi/fpdf_parser/cpdf_array.h"
10 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" 10 #include "core/fpdfapi/fpdf_parser/cpdf_document.h"
11 #include "core/fpdfapi/fpdf_parser/cpdf_number.h" 11 #include "core/fpdfapi/fpdf_parser/cpdf_number.h"
12 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h" 12 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h"
13 #include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h" 13 #include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h"
14 #include "fpdfsdk/include/cpdfsdk_datetime.h" 14 #include "fpdfsdk/cpdfsdk_datetime.h"
15 #include "fpdfsdk/include/cpdfsdk_document.h" 15 #include "fpdfsdk/cpdfsdk_document.h"
16 #include "fpdfsdk/include/cpdfsdk_pageview.h" 16 #include "fpdfsdk/cpdfsdk_pageview.h"
17 17
18 CPDFSDK_BAAnnot::CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, 18 CPDFSDK_BAAnnot::CPDFSDK_BAAnnot(CPDF_Annot* pAnnot,
19 CPDFSDK_PageView* pPageView) 19 CPDFSDK_PageView* pPageView)
20 : CPDFSDK_Annot(pPageView), m_pAnnot(pAnnot) {} 20 : CPDFSDK_Annot(pPageView), m_pAnnot(pAnnot) {}
21 21
22 CPDFSDK_BAAnnot::~CPDFSDK_BAAnnot() {} 22 CPDFSDK_BAAnnot::~CPDFSDK_BAAnnot() {}
23 23
24 CPDF_Annot* CPDFSDK_BAAnnot::GetPDFAnnot() const { 24 CPDF_Annot* CPDFSDK_BAAnnot::GetPDFAnnot() const {
25 return m_pAnnot; 25 return m_pAnnot;
26 } 26 }
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 CPDF_RenderOptions* pOptions) { 394 CPDF_RenderOptions* pOptions) {
395 m_pAnnot->GetAPForm(m_pPageView->GetPDFPage(), CPDF_Annot::Normal); 395 m_pAnnot->GetAPForm(m_pPageView->GetPDFPage(), CPDF_Annot::Normal);
396 m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Device, 396 m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Device,
397 CPDF_Annot::Normal, nullptr); 397 CPDF_Annot::Normal, nullptr);
398 } 398 }
399 399
400 void CPDFSDK_BAAnnot::SetOpenState(bool bOpenState) { 400 void CPDFSDK_BAAnnot::SetOpenState(bool bOpenState) {
401 if (CPDF_Annot* pAnnot = m_pAnnot->GetPopupAnnot()) 401 if (CPDF_Annot* pAnnot = m_pAnnot->GetPopupAnnot())
402 pAnnot->SetOpenState(bOpenState); 402 pAnnot->SetOpenState(bOpenState);
403 } 403 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_baannot.h ('k') | fpdfsdk/cpdfsdk_baannothandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698