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

Side by Side Diff: fpdfsdk/src/fsdk_baseform.cpp

Issue 1747123002: Fix and enable lint checks. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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/src/fpdfxfa/fpdfxfa_doc.cpp ('k') | fpdfsdk/src/javascript/Consts.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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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/fsdk_baseform.h" 7 #include "fpdfsdk/include/fsdk_baseform.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 CPDFSDK_Document* pSDKDoc = m_pPageView->GetSDKDocument(); 49 CPDFSDK_Document* pSDKDoc = m_pPageView->GetSDKDocument();
50 CPDFXFA_Document* pDoc = pSDKDoc->GetXFADocument(); 50 CPDFXFA_Document* pDoc = pSDKDoc->GetXFADocument();
51 if (pDoc->GetDocType() == DOCTYPE_STATIC_XFA) { 51 if (pDoc->GetDocType() == DOCTYPE_STATIC_XFA) {
52 if (!m_hMixXFAWidget) { 52 if (!m_hMixXFAWidget) {
53 if (IXFA_DocView* pDocView = pDoc->GetXFADocView()) { 53 if (IXFA_DocView* pDocView = pDoc->GetXFADocView()) {
54 CFX_WideString sName; 54 CFX_WideString sName;
55 if (GetFieldType() == FIELDTYPE_RADIOBUTTON) { 55 if (GetFieldType() == FIELDTYPE_RADIOBUTTON) {
56 sName = GetAnnotName(); 56 sName = GetAnnotName();
57 if (sName.IsEmpty()) 57 if (sName.IsEmpty())
58 sName = GetName(); 58 sName = GetName();
59 } else 59 } else {
60 sName = GetName(); 60 sName = GetName();
61 }
61 62
62 if (!sName.IsEmpty()) 63 if (!sName.IsEmpty())
63 m_hMixXFAWidget = pDocView->GetWidgetByName(sName); 64 m_hMixXFAWidget = pDocView->GetWidgetByName(sName);
64 } 65 }
65 } 66 }
66 return m_hMixXFAWidget; 67 return m_hMixXFAWidget;
67 } 68 }
68 69
69 return NULL; 70 return NULL;
70 } 71 }
(...skipping 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after
2857 break; 2858 break;
2858 } 2859 }
2859 } 2860 }
2860 } 2861 }
2861 2862
2862 CFX_FloatRect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) { 2863 CFX_FloatRect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) {
2863 CFX_FloatRect rcAnnot; 2864 CFX_FloatRect rcAnnot;
2864 pAnnot->GetPDFAnnot()->GetRect(rcAnnot); 2865 pAnnot->GetPDFAnnot()->GetRect(rcAnnot);
2865 return rcAnnot; 2866 return rcAnnot;
2866 } 2867 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp ('k') | fpdfsdk/src/javascript/Consts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698