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 #ifndef _JS_RUNTIME_H_ | 7 #ifndef _JS_RUNTIME_H_ |
8 #define _JS_RUNTIME_H_ | 8 #define _JS_RUNTIME_H_ |
9 | 9 |
| 10 #include "../../../core/include/fxcrt/fx_basic.h" |
| 11 #include "../jsapi/fxjs_v8.h" |
| 12 #include "IJavaScript.h" |
| 13 #include "JS_EventHandler.h" |
| 14 |
| 15 class CJS_Context; |
| 16 |
10 class CJS_FieldEvent | 17 class CJS_FieldEvent |
11 { | 18 { |
12 public: | 19 public: |
13 CFX_WideString sTargetName; | 20 CFX_WideString sTargetName; |
14 JS_EVENT_T eEventType; | 21 JS_EVENT_T eEventType; |
15 CJS_FieldEvent* pNext; | 22 CJS_FieldEvent* pNext; |
16 }; | 23 }; |
17 | 24 |
18 class CJS_Runtime : public IFXJS_Runtime | 25 class CJS_Runtime : public IFXJS_Runtime |
19 { | 26 { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 FX_BOOL
m_bBlocking; | 59 FX_BOOL
m_bBlocking; |
53 CJS_FieldEvent* m_pField
EventPath; | 60 CJS_FieldEvent* m_pField
EventPath; |
54 | 61 |
55 v8::Isolate*
m_isolate; | 62 v8::Isolate*
m_isolate; |
56 v8::Persistent<v8::Context>
m_context; | 63 v8::Persistent<v8::Context>
m_context; |
57 FX_BOOL
m_bRegistered; | 64 FX_BOOL
m_bRegistered; |
58 }; | 65 }; |
59 | 66 |
60 #endif //_JS_RUNTIME_H_ | 67 #endif //_JS_RUNTIME_H_ |
61 | 68 |
OLD | NEW |