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

Side by Side Diff: fpdfsdk/cpdfsdk_annot.cpp

Issue 2295953002: Use enum class for subtypes of CPDF_Annot. (Closed)
Patch Set: Use enum class for subtypes of CPDF_Annot. 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::GetAnnotSubtype() const { 61 CPDF_Annot::Subtype CPDFSDK_Annot::GetAnnotSubtype() const {
62 return ""; 62 return CPDF_Annot::Subtype::UNKNOWN;
63 } 63 }
64 64
65 bool CPDFSDK_Annot::IsSignatureWidget() const { 65 bool CPDFSDK_Annot::IsSignatureWidget() const {
66 return false; 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();
(...skipping 15 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