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