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

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

Issue 1484843002: Tidy ifdefs in fpdfsdk. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Fix initialization error warning. Created 5 years 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_ComboBox.cpp ('k') | fpdfsdk/src/formfiller/FFL_IFormFiller.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/formfiller/FFL_CBA_Fontmap.h" 7 #include "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h"
8 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" 8 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h"
9 9
10 #define GetRed(rgb) ((uint8_t)(rgb)) 10 #define GetRed(rgb) ((uint8_t)(rgb))
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 FX_BOOL CFFL_FormFiller::IsDataChanged(CPDFSDK_PageView* pPageView) { 559 FX_BOOL CFFL_FormFiller::IsDataChanged(CPDFSDK_PageView* pPageView) {
560 return FALSE; 560 return FALSE;
561 } 561 }
562 562
563 void CFFL_FormFiller::SaveData(CPDFSDK_PageView* pPageView) {} 563 void CFFL_FormFiller::SaveData(CPDFSDK_PageView* pPageView) {}
564 564
565 #ifdef PDF_ENABLE_XFA 565 #ifdef PDF_ENABLE_XFA
566 FX_BOOL CFFL_FormFiller::IsFieldFull(CPDFSDK_PageView* pPageView) { 566 FX_BOOL CFFL_FormFiller::IsFieldFull(CPDFSDK_PageView* pPageView) {
567 return FALSE; 567 return FALSE;
568 } 568 }
569 #endif // PDF_ENABLE_XFA
569 570
570 #endif
571 void CFFL_FormFiller::SetChangeMark() { 571 void CFFL_FormFiller::SetChangeMark() {
572 m_pApp->FFI_OnChange(); 572 m_pApp->FFI_OnChange();
573 } 573 }
574 574
575 void CFFL_FormFiller::GetActionData(CPDFSDK_PageView* pPageView, 575 void CFFL_FormFiller::GetActionData(CPDFSDK_PageView* pPageView,
576 CPDF_AAction::AActionType type, 576 CPDF_AAction::AActionType type,
577 PDFSDK_FieldAction& fa) { 577 PDFSDK_FieldAction& fa) {
578 fa.sValue = m_pWidget->GetValue(); 578 fa.sValue = m_pWidget->GetValue();
579 } 579 }
580 580
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); 717 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL);
718 } 718 }
719 719
720 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, 720 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView,
721 CPDFSDK_Annot* pAnnot, 721 CPDFSDK_Annot* pAnnot,
722 CFX_RenderDevice* pDevice, 722 CFX_RenderDevice* pDevice,
723 CPDF_Matrix* pUser2Device, 723 CPDF_Matrix* pUser2Device,
724 FX_DWORD dwFlags) { 724 FX_DWORD dwFlags) {
725 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); 725 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags);
726 } 726 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_ComboBox.cpp ('k') | fpdfsdk/src/formfiller/FFL_IFormFiller.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698