OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/cpdfsdk_widget.h" | 7 #include "fpdfsdk/cpdfsdk_widget.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "fpdfsdk/cpdfsdk_pageview.h" | 25 #include "fpdfsdk/cpdfsdk_pageview.h" |
26 #include "fpdfsdk/formfiller/cba_fontmap.h" | 26 #include "fpdfsdk/formfiller/cba_fontmap.h" |
27 #include "fpdfsdk/fsdk_actionhandler.h" | 27 #include "fpdfsdk/fsdk_actionhandler.h" |
28 #include "fpdfsdk/fsdk_define.h" | 28 #include "fpdfsdk/fsdk_define.h" |
29 #include "fpdfsdk/fxedit/fxet_edit.h" | 29 #include "fpdfsdk/fxedit/fxet_edit.h" |
30 #include "fpdfsdk/pdfwindow/PWL_Edit.h" | 30 #include "fpdfsdk/pdfwindow/PWL_Edit.h" |
31 #include "fpdfsdk/pdfwindow/PWL_Utils.h" | 31 #include "fpdfsdk/pdfwindow/PWL_Utils.h" |
32 | 32 |
33 #ifdef PDF_ENABLE_XFA | 33 #ifdef PDF_ENABLE_XFA |
34 #include "fpdfsdk/fpdfxfa/fpdfxfa_doc.h" | 34 #include "fpdfsdk/fpdfxfa/fpdfxfa_doc.h" |
35 #include "xfa/fxfa/include/cxfa_eventparam.h" | 35 #include "xfa/fxfa/cxfa_eventparam.h" |
36 #include "xfa/fxfa/include/fxfa_widget.h" | 36 #include "xfa/fxfa/fxfa_widget.h" |
37 #include "xfa/fxfa/include/xfa_ffdocview.h" | 37 #include "xfa/fxfa/xfa_ffdocview.h" |
38 #include "xfa/fxfa/include/xfa_ffwidget.h" | 38 #include "xfa/fxfa/xfa_ffwidget.h" |
39 #include "xfa/fxfa/include/xfa_ffwidgethandler.h" | 39 #include "xfa/fxfa/xfa_ffwidgethandler.h" |
40 #endif // PDF_ENABLE_XFA | 40 #endif // PDF_ENABLE_XFA |
41 | 41 |
42 namespace { | 42 namespace { |
43 | 43 |
44 // Convert a FX_ARGB to a FX_COLORREF. | 44 // Convert a FX_ARGB to a FX_COLORREF. |
45 FX_COLORREF ARGBToColorRef(FX_ARGB argb) { | 45 FX_COLORREF ARGBToColorRef(FX_ARGB argb) { |
46 return (((static_cast<uint32_t>(argb) & 0x00FF0000) >> 16) | | 46 return (((static_cast<uint32_t>(argb) & 0x00FF0000) >> 16) | |
47 (static_cast<uint32_t>(argb) & 0x0000FF00) | | 47 (static_cast<uint32_t>(argb) & 0x0000FF00) | |
48 ((static_cast<uint32_t>(argb) & 0x000000FF) << 16)); | 48 ((static_cast<uint32_t>(argb) & 0x000000FF) << 16)); |
49 } | 49 } |
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1947 return FALSE; | 1947 return FALSE; |
1948 | 1948 |
1949 if (!IsVisible()) | 1949 if (!IsVisible()) |
1950 return FALSE; | 1950 return FALSE; |
1951 | 1951 |
1952 if ((GetFieldFlags() & FIELDFLAG_READONLY) == FIELDFLAG_READONLY) | 1952 if ((GetFieldFlags() & FIELDFLAG_READONLY) == FIELDFLAG_READONLY) |
1953 return FALSE; | 1953 return FALSE; |
1954 | 1954 |
1955 return TRUE; | 1955 return TRUE; |
1956 } | 1956 } |
OLD | NEW |