| 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/cfx_systemhandler.h" | 7 #include "fpdfsdk/cfx_systemhandler.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "core/fpdfapi/parser/cpdf_document.h" | 11 #include "core/fpdfapi/parser/cpdf_document.h" |
| 12 #include "core/fxge/cfx_fontmapper.h" | 12 #include "core/fxge/cfx_fontmapper.h" |
| 13 #include "core/fxge/cfx_fontmgr.h" | 13 #include "core/fxge/cfx_fontmgr.h" |
| 14 #include "core/fxge/cfx_gemodule.h" | 14 #include "core/fxge/cfx_gemodule.h" |
| 15 #include "fpdfsdk/cpdfsdk_annot.h" | 15 #include "fpdfsdk/cpdfsdk_annot.h" |
| 16 #include "fpdfsdk/cpdfsdk_document.h" | |
| 17 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" | 16 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" |
| 18 #include "fpdfsdk/cpdfsdk_pageview.h" | 17 #include "fpdfsdk/cpdfsdk_pageview.h" |
| 19 #include "fpdfsdk/cpdfsdk_widget.h" | 18 #include "fpdfsdk/cpdfsdk_widget.h" |
| 20 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 19 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
| 21 | 20 |
| 22 namespace { | 21 namespace { |
| 23 | 22 |
| 24 int CharSet2CP(int charset) { | 23 int CharSet2CP(int charset) { |
| 25 if (charset == FXFONT_SHIFTJIS_CHARSET) | 24 if (charset == FXFONT_SHIFTJIS_CHARSET) |
| 26 return 932; | 25 return 932; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 return !!m_pEnv->IsSHIFTKeyDown(nFlag); | 137 return !!m_pEnv->IsSHIFTKeyDown(nFlag); |
| 139 } | 138 } |
| 140 | 139 |
| 141 bool CFX_SystemHandler::IsCTRLKeyDown(uint32_t nFlag) const { | 140 bool CFX_SystemHandler::IsCTRLKeyDown(uint32_t nFlag) const { |
| 142 return !!m_pEnv->IsCTRLKeyDown(nFlag); | 141 return !!m_pEnv->IsCTRLKeyDown(nFlag); |
| 143 } | 142 } |
| 144 | 143 |
| 145 bool CFX_SystemHandler::IsALTKeyDown(uint32_t nFlag) const { | 144 bool CFX_SystemHandler::IsALTKeyDown(uint32_t nFlag) const { |
| 146 return !!m_pEnv->IsALTKeyDown(nFlag); | 145 return !!m_pEnv->IsALTKeyDown(nFlag); |
| 147 } | 146 } |
| OLD | NEW |