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

Side by Side Diff: fpdfsdk/src/formfiller/FFL_CheckBox.cpp

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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/formfiller/FFL_CBA_Fontmap.cpp ('k') | fpdfsdk/src/formfiller/FFL_ComboBox.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 "../../include/formfiller/FormFiller.h" 7 #include "../../include/formfiller/FormFiller.h"
8 #include "../../include/formfiller/FFL_FormFiller.h" 8 #include "../../include/formfiller/FFL_FormFiller.h"
9 #include "../../include/formfiller/FFL_CheckBox.h" 9 #include "../../include/formfiller/FFL_CheckBox.h"
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 { 117 {
118 118
119 FX_BOOL bNewChecked = pWnd->IsChecked(); 119 FX_BOOL bNewChecked = pWnd->IsChecked();
120 120
121 121
122 if (bNewChecked) 122 if (bNewChecked)
123 { 123 {
124 CPDF_FormField* pField = m_pWidget->GetFormField(); 124 CPDF_FormField* pField = m_pWidget->GetFormField();
125 ASSERT(pField != NULL); 125 ASSERT(pField != NULL);
126 126
127 » » » for (FX_INT32 i=0,sz=pField->CountControls(); i<sz; i++) 127 » » » for (int32_t i=0,sz=pField->CountControls(); i<sz; i++)
128 { 128 {
129 if (CPDF_FormControl* pCtrl = pField->GetControl (i)) 129 if (CPDF_FormControl* pCtrl = pField->GetControl (i))
130 { 130 {
131 if (pCtrl->IsChecked()) 131 if (pCtrl->IsChecked())
132 { 132 {
133 break; 133 break;
134 } 134 }
135 } 135 }
136 } 136 }
137 } 137 }
138 138
139 m_pWidget->SetCheck(bNewChecked, FALSE); 139 m_pWidget->SetCheck(bNewChecked, FALSE);
140 m_pWidget->UpdateField(); 140 m_pWidget->UpdateField();
141 SetChangeMark(); 141 SetChangeMark();
142 } 142 }
143 143
144 } 144 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp ('k') | fpdfsdk/src/formfiller/FFL_ComboBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698