| OLD | NEW |
| 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/FFL_FormFiller.h" | 7 #include "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h" |
| 8 #include "../../include/formfiller/FFL_CBA_Fontmap.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)) |
| 11 #define GetGreen(rgb) ((uint8_t)(((FX_WORD)(rgb)) >> 8)) | 11 #define GetGreen(rgb) ((uint8_t)(((FX_WORD)(rgb)) >> 8)) |
| 12 #define GetBlue(rgb) ((uint8_t)((rgb) >> 16)) | 12 #define GetBlue(rgb) ((uint8_t)((rgb) >> 16)) |
| 13 | 13 |
| 14 #define FFL_HINT_ELAPSE 800 | 14 #define FFL_HINT_ELAPSE 800 |
| 15 | 15 |
| 16 /* ------------------------- CFFL_FormFiller ------------------------- */ | 16 /* ------------------------- CFFL_FormFiller ------------------------- */ |
| 17 | 17 |
| 18 CFFL_FormFiller::CFFL_FormFiller(CPDFDoc_Environment* pApp, | 18 CFFL_FormFiller::CFFL_FormFiller(CPDFDoc_Environment* pApp, |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); | 715 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); |
| 716 } | 716 } |
| 717 | 717 |
| 718 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, | 718 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, |
| 719 CPDFSDK_Annot* pAnnot, | 719 CPDFSDK_Annot* pAnnot, |
| 720 CFX_RenderDevice* pDevice, | 720 CFX_RenderDevice* pDevice, |
| 721 CPDF_Matrix* pUser2Device, | 721 CPDF_Matrix* pUser2Device, |
| 722 FX_DWORD dwFlags) { | 722 FX_DWORD dwFlags) { |
| 723 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); | 723 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); |
| 724 } | 724 } |
| OLD | NEW |