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

Side by Side Diff: fpdfsdk/cpdfsdk_annot.cpp

Issue 2287703002: Rename CPDFSDK_Annot::GetType to CPDFSDK_Annot::GetAnnotSubtype. (Closed)
Patch Set: Rename CPDFSDK_Annot::GetType to CPDFSDK_Annot::GetAnnotSubtype. Created 4 years, 3 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/cba_annotiterator.cpp ('k') | fpdfsdk/cpdfsdk_annothandlermgr.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 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_annot.h" 7 #include "fpdfsdk/include/cpdfsdk_annot.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 int CPDFSDK_Annot::GetLayoutOrder() const { 53 int CPDFSDK_Annot::GetLayoutOrder() const {
54 return 5; 54 return 5;
55 } 55 }
56 56
57 CPDF_Annot* CPDFSDK_Annot::GetPDFAnnot() const { 57 CPDF_Annot* CPDFSDK_Annot::GetPDFAnnot() const {
58 return nullptr; 58 return nullptr;
59 } 59 }
60 60
61 CFX_ByteString CPDFSDK_Annot::GetType() const { 61 CFX_ByteString CPDFSDK_Annot::GetAnnotSubtype() const {
62 return ""; 62 return "";
63 } 63 }
64 64
65 CFX_ByteString CPDFSDK_Annot::GetSubType() const { 65 bool CPDFSDK_Annot::IsSignatureWidget() const {
66 return ""; 66 return false;
67 } 67 }
68 68
69 void CPDFSDK_Annot::SetRect(const CFX_FloatRect& rect) {} 69 void CPDFSDK_Annot::SetRect(const CFX_FloatRect& rect) {}
70 70
71 CFX_FloatRect CPDFSDK_Annot::GetRect() const { 71 CFX_FloatRect CPDFSDK_Annot::GetRect() const {
72 return CFX_FloatRect(); 72 return CFX_FloatRect();
73 } 73 }
74 74
75 void CPDFSDK_Annot::Annot_OnDraw(CFX_RenderDevice* pDevice, 75 void CPDFSDK_Annot::Annot_OnDraw(CFX_RenderDevice* pDevice,
76 CFX_Matrix* pUser2Device, 76 CFX_Matrix* pUser2Device,
(...skipping 11 matching lines...) Expand all
88 #ifdef PDF_ENABLE_XFA 88 #ifdef PDF_ENABLE_XFA
89 return GetPDFXFAPage(); 89 return GetPDFXFAPage();
90 #else // PDF_ENABLE_XFA 90 #else // PDF_ENABLE_XFA
91 return GetPDFPage(); 91 return GetPDFPage();
92 #endif // PDF_ENABLE_XFA 92 #endif // PDF_ENABLE_XFA
93 } 93 }
94 94
95 CPDF_Page* CPDFSDK_Annot::GetPDFPage() { 95 CPDF_Page* CPDFSDK_Annot::GetPDFPage() {
96 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr; 96 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr;
97 } 97 }
OLDNEW
« no previous file with comments | « fpdfsdk/cba_annotiterator.cpp ('k') | fpdfsdk/cpdfsdk_annothandlermgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698