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

Side by Side Diff: fpdfsdk/javascript/Field.cpp

Issue 1999313002: Change CPDF_Boolean to use bool instead of FX_BOOL. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@interform
Patch Set: rebase Created 4 years, 7 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/fsdk_baseform.cpp ('k') | fpdfsdk/pdfwindow/PWL_Icon.h » ('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/javascript/Field.h" 7 #include "fpdfsdk/javascript/Field.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 return FALSE; 594 return FALSE;
595 595
596 CPDF_FormField* pFormField = FieldArray[0]; 596 CPDF_FormField* pFormField = FieldArray[0];
597 if (pFormField->GetFieldType() != FIELDTYPE_PUSHBUTTON) 597 if (pFormField->GetFieldType() != FIELDTYPE_PUSHBUTTON)
598 return FALSE; 598 return FALSE;
599 599
600 CPDF_FormControl* pFormControl = GetSmartFieldControl(pFormField); 600 CPDF_FormControl* pFormControl = GetSmartFieldControl(pFormField);
601 if (!pFormControl) 601 if (!pFormControl)
602 return FALSE; 602 return FALSE;
603 603
604 CPDF_IconFit IconFit = pFormControl->GetIconFit(); 604 vp << pFormControl->GetIconFit().GetFittingBounds();
605 vp << IconFit.GetFittingBounds();
606 } 605 }
607 606
608 return TRUE; 607 return TRUE;
609 } 608 }
610 609
611 void Field::SetButtonFitBounds(CPDFSDK_Document* pDocument, 610 void Field::SetButtonFitBounds(CPDFSDK_Document* pDocument,
612 const CFX_WideString& swFieldName, 611 const CFX_WideString& swFieldName,
613 int nControlIndex, 612 int nControlIndex,
614 bool b) { 613 bool b) {
615 // Not supported. 614 // Not supported.
(...skipping 2932 matching lines...) Expand 10 before | Expand all | Expand 10 after
3548 } 3547 }
3549 } 3548 }
3550 3549
3551 void Field::AddField(CPDFSDK_Document* pDocument, 3550 void Field::AddField(CPDFSDK_Document* pDocument,
3552 int nPageIndex, 3551 int nPageIndex,
3553 int nFieldType, 3552 int nFieldType,
3554 const CFX_WideString& sName, 3553 const CFX_WideString& sName,
3555 const CFX_FloatRect& rcCoords) { 3554 const CFX_FloatRect& rcCoords) {
3556 // Not supported. 3555 // Not supported.
3557 } 3556 }
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_baseform.cpp ('k') | fpdfsdk/pdfwindow/PWL_Icon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698