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

Side by Side Diff: fpdfsdk/src/formfiller/FFL_RadioButton.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_Notify.cpp ('k') | fpdfsdk/src/formfiller/FFL_TextField.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_RadioButton.h" 9 #include "../../include/formfiller/FFL_RadioButton.h"
10 //#include "../include/FFL_Undo.h" 10 //#include "../include/FFL_Undo.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 if (CPWL_RadioButton* pWnd = (CPWL_RadioButton*)GetPDFWindow(pPageView, FALSE)) 110 if (CPWL_RadioButton* pWnd = (CPWL_RadioButton*)GetPDFWindow(pPageView, FALSE))
111 { 111 {
112 112
113 FX_BOOL bNewChecked = pWnd->IsChecked(); 113 FX_BOOL bNewChecked = pWnd->IsChecked();
114 114
115 if (bNewChecked) 115 if (bNewChecked)
116 { 116 {
117 CPDF_FormField* pField = m_pWidget->GetFormField(); 117 CPDF_FormField* pField = m_pWidget->GetFormField();
118 ASSERT(pField != NULL); 118 ASSERT(pField != NULL);
119 119
120 » » » for (FX_INT32 i=0,sz=pField->CountControls(); i<sz; i++) 120 » » » for (int32_t i=0,sz=pField->CountControls(); i<sz; i++)
121 { 121 {
122 if (CPDF_FormControl* pCtrl = pField->GetControl (i)) 122 if (CPDF_FormControl* pCtrl = pField->GetControl (i))
123 { 123 {
124 if (pCtrl->IsChecked()) 124 if (pCtrl->IsChecked())
125 { 125 {
126 break; 126 break;
127 } 127 }
128 } 128 }
129 } 129 }
130 } 130 }
131 131
132 m_pWidget->SetCheck(bNewChecked, FALSE); 132 m_pWidget->SetCheck(bNewChecked, FALSE);
133 m_pWidget->UpdateField(); 133 m_pWidget->UpdateField();
134 SetChangeMark(); 134 SetChangeMark();
135 } 135 }
136 } 136 }
137 137
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_Notify.cpp ('k') | fpdfsdk/src/formfiller/FFL_TextField.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698