| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 FX_BOOL
m_bBlocking; | 63 FX_BOOL
m_bBlocking; |
| 57 CJS_FieldEvent* m_pField
EventPath; | 64 CJS_FieldEvent* m_pField
EventPath; |
| 58 | 65 |
| 59 v8::Isolate* m_isolat
e; | 66 v8::Isolate* m_isolat
e; |
| 60 v8::Persistent<v8::Context> m_context; | 67 v8::Persistent<v8::Context> m_context; |
| 61 FX_BOOL
m_bRegistered; | 68 FX_BOOL
m_bRegistered; |
| 62 }; | 69 }; |
| 63 | 70 |
| 64 #endif //_JS_RUNTIME_H_ | 71 #endif //_JS_RUNTIME_H_ |
| 65 | 72 |
| OLD | NEW |