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 "fpdfsdk/javascript/JS_EventHandler.h" | 7 #include "fpdfsdk/javascript/JS_EventHandler.h" |
8 | 8 |
9 #include "fpdfsdk/include/javascript/IJavaScript.h" | |
10 #include "fpdfsdk/javascript/Document.h" | 9 #include "fpdfsdk/javascript/Document.h" |
11 #include "fpdfsdk/javascript/Field.h" | 10 #include "fpdfsdk/javascript/Field.h" |
12 #include "fpdfsdk/javascript/JS_Context.h" | |
13 #include "fpdfsdk/javascript/JS_Define.h" | 11 #include "fpdfsdk/javascript/JS_Define.h" |
14 #include "fpdfsdk/javascript/JS_Object.h" | 12 #include "fpdfsdk/javascript/JS_Object.h" |
15 #include "fpdfsdk/javascript/JS_Runtime.h" | |
16 #include "fpdfsdk/javascript/JS_Value.h" | 13 #include "fpdfsdk/javascript/JS_Value.h" |
17 | 14 #include "fpdfsdk/javascript/cjs_context.h" |
18 /* ---------------------------- CJS_EventHandler ---------------------------- */ | 15 #include "fpdfsdk/javascript/cjs_runtime.h" |
19 | 16 |
20 CJS_EventHandler::CJS_EventHandler(CJS_Context* pContext) | 17 CJS_EventHandler::CJS_EventHandler(CJS_Context* pContext) |
21 : m_pJSContext(pContext), | 18 : m_pJSContext(pContext), |
22 m_eEventType(JET_UNKNOWN), | 19 m_eEventType(JET_UNKNOWN), |
23 m_bValid(FALSE), | 20 m_bValid(FALSE), |
24 m_pWideStrChange(NULL), | 21 m_pWideStrChange(NULL), |
25 m_nCommitKey(-1), | 22 m_nCommitKey(-1), |
26 m_bKeyDown(FALSE), | 23 m_bKeyDown(FALSE), |
27 m_bModifier(FALSE), | 24 m_bModifier(FALSE), |
28 m_bShift(FALSE), | 25 m_bShift(FALSE), |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 return *m_pValue; | 643 return *m_pValue; |
647 } | 644 } |
648 | 645 |
649 FX_BOOL CJS_EventHandler::WillCommit() { | 646 FX_BOOL CJS_EventHandler::WillCommit() { |
650 return m_bWillCommit; | 647 return m_bWillCommit; |
651 } | 648 } |
652 | 649 |
653 CFX_WideString CJS_EventHandler::TargetName() { | 650 CFX_WideString CJS_EventHandler::TargetName() { |
654 return m_strTargetName; | 651 return m_strTargetName; |
655 } | 652 } |
OLD | NEW |