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_xfawidgethandler.h" | 7 #include "fpdfsdk/cpdfsdk_xfawidgethandler.h" |
8 | 8 |
9 #include "core/fpdfdoc/cpdf_interform.h" | 9 #include "core/fpdfdoc/cpdf_interform.h" |
10 #include "fpdfsdk/cpdfsdk_annot.h" | 10 #include "fpdfsdk/cpdfsdk_annot.h" |
11 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" | 11 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" |
12 #include "fpdfsdk/cpdfsdk_interform.h" | 12 #include "fpdfsdk/cpdfsdk_interform.h" |
13 #include "fpdfsdk/cpdfsdk_pageview.h" | 13 #include "fpdfsdk/cpdfsdk_pageview.h" |
14 #include "fpdfsdk/cpdfsdk_xfawidget.h" | 14 #include "fpdfsdk/cpdfsdk_xfawidget.h" |
15 #include "fpdfsdk/fpdfxfa/cpdfxfa_context.h" | 15 #include "fpdfsdk/fpdfxfa/cpdfxfa_context.h" |
| 16 #include "xfa/fwl/core/cfwl_app.h" |
16 #include "xfa/fwl/core/fwl_widgethit.h" | 17 #include "xfa/fwl/core/fwl_widgethit.h" |
17 #include "xfa/fwl/core/ifwl_app.h" | |
18 #include "xfa/fxfa/fxfa_basic.h" | 18 #include "xfa/fxfa/fxfa_basic.h" |
19 #include "xfa/fxfa/xfa_ffdocview.h" | 19 #include "xfa/fxfa/xfa_ffdocview.h" |
20 #include "xfa/fxfa/xfa_ffpageview.h" | 20 #include "xfa/fxfa/xfa_ffpageview.h" |
21 #include "xfa/fxfa/xfa_ffwidget.h" | 21 #include "xfa/fxfa/xfa_ffwidget.h" |
22 #include "xfa/fxfa/xfa_ffwidgethandler.h" | 22 #include "xfa/fxfa/xfa_ffwidgethandler.h" |
23 #include "xfa/fxgraphics/cfx_graphics.h" | 23 #include "xfa/fxgraphics/cfx_graphics.h" |
24 | 24 |
25 CPDFSDK_XFAWidgetHandler::CPDFSDK_XFAWidgetHandler( | 25 CPDFSDK_XFAWidgetHandler::CPDFSDK_XFAWidgetHandler( |
26 CPDFSDK_FormFillEnvironment* pFormFillEnv) | 26 CPDFSDK_FormFillEnvironment* pFormFillEnv) |
27 : m_pFormFillEnv(pFormFillEnv) {} | 27 : m_pFormFillEnv(pFormFillEnv) {} |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 dwFWLFlag |= FWL_KEYFLAG_MButton; | 350 dwFWLFlag |= FWL_KEYFLAG_MButton; |
351 if (dwFlag & FWL_EVENTFLAG_RightButtonDown) | 351 if (dwFlag & FWL_EVENTFLAG_RightButtonDown) |
352 dwFWLFlag |= FWL_KEYFLAG_RButton; | 352 dwFWLFlag |= FWL_KEYFLAG_RButton; |
353 if (dwFlag & FWL_EVENTFLAG_ShiftKey) | 353 if (dwFlag & FWL_EVENTFLAG_ShiftKey) |
354 dwFWLFlag |= FWL_KEYFLAG_Shift; | 354 dwFWLFlag |= FWL_KEYFLAG_Shift; |
355 if (dwFlag & FWL_EVENTFLAG_AltKey) | 355 if (dwFlag & FWL_EVENTFLAG_AltKey) |
356 dwFWLFlag |= FWL_KEYFLAG_Alt; | 356 dwFWLFlag |= FWL_KEYFLAG_Alt; |
357 | 357 |
358 return dwFWLFlag; | 358 return dwFWLFlag; |
359 } | 359 } |
OLD | NEW |