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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); | 711 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); |
712 } | 712 } |
713 | 713 |
714 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, | 714 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, |
715 CPDFSDK_Annot* pAnnot, | 715 CPDFSDK_Annot* pAnnot, |
716 CFX_RenderDevice* pDevice, | 716 CFX_RenderDevice* pDevice, |
717 CPDF_Matrix* pUser2Device, | 717 CPDF_Matrix* pUser2Device, |
718 FX_DWORD dwFlags) { | 718 FX_DWORD dwFlags) { |
719 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); | 719 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); |
720 } | 720 } |
OLD | NEW |