| 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_OBJECT_H_ | 7 #ifndef _JS_OBJECT_H_ |
| 8 #define _JS_OBJECT_H_ | 8 #define _JS_OBJECT_H_ |
| 9 | 9 |
| 10 #include "../fsdk_define.h" // For FX_UINT | 10 #include "../fsdk_define.h" // For FX_UINT |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 void SetEmbedObject(CJS_Embed
Obj* pObj){m_pEmbedObj = pObj;}; | 60 void SetEmbedObject(CJS_Embed
Obj* pObj){m_pEmbedObj = pObj;}; |
| 61 CJS_EmbedObj * GetEmbedObject(){return m_pEmbed
Obj;}; | 61 CJS_EmbedObj * GetEmbedObject(){return m_pEmbed
Obj;}; |
| 62 | 62 |
| 63 static CPDFSDK_PageView * JSGetPageView(IFXJS_Context* cc); | 63 static CPDFSDK_PageView * JSGetPageView(IFXJS_Context* cc); |
| 64 static int MsgBox(CPDFDoc_Environme
nt* pApp, CPDFSDK_PageView* pPageView, FX_LPCWSTR swMsg, FX_LPCWSTR swTitle = NU
LL, FX_UINT nType = 0,FX_UINT nIcon = 0); | 64 static int MsgBox(CPDFDoc_Environme
nt* pApp, CPDFSDK_PageView* pPageView, FX_LPCWSTR swMsg, FX_LPCWSTR swTitle = NU
LL, FX_UINT nType = 0,FX_UINT nIcon = 0); |
| 65 static void Alert(CJS_Context* pCont
ext, FX_LPCWSTR swMsg); | 65 static void Alert(CJS_Context* pCont
ext, FX_LPCWSTR swMsg); |
| 66 | 66 |
| 67 v8::Isolate* GetIsolate() {return m_p
Isolate;} | 67 v8::Isolate* GetIsolate() {return m_p
Isolate;} |
| 68 protected: | 68 protected: |
| 69 CJS_EmbedObj * m_pEmbedObj; | 69 CJS_EmbedObj * m_pEmbedObj; |
| 70 » v8::Persistent<v8::Object>» » » m_pObject; | 70 » v8::Global<v8::Object>» » » m_pObject; |
| 71 v8::Isolate* m_pIsolate; | 71 v8::Isolate* m_pIsolate; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 struct JS_TIMER_MAP | 74 struct JS_TIMER_MAP |
| 75 { | 75 { |
| 76 FX_UINT nID; | 76 FX_UINT nID; |
| 77 CJS_Timer * pTimer; | 77 CJS_Timer * pTimer; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 typedef CFX_ArrayTemplate<JS_TIMER_MAP*> CTimerMapArray; | 80 typedef CFX_ArrayTemplate<JS_TIMER_MAP*> CTimerMapArray; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 FX_DWORD m_dwStar
tTime; | 285 FX_DWORD m_dwStar
tTime; |
| 286 FX_DWORD m_dwTime
Out; | 286 FX_DWORD m_dwTime
Out; |
| 287 FX_DWORD m_dwElapse; | 287 FX_DWORD m_dwElapse; |
| 288 CJS_Runtime* m_pRuntime; | 288 CJS_Runtime* m_pRuntime; |
| 289 CFX_WideString m_swJScript; | 289 CFX_WideString m_swJScript; |
| 290 int m_nType;
//0:Interval; 1:TimeOut | 290 int m_nType;
//0:Interval; 1:TimeOut |
| 291 | 291 |
| 292 CPDFDoc_Environment* m_pApp; | 292 CPDFDoc_Environment* m_pApp; |
| 293 }; | 293 }; |
| 294 #endif //_JS_OBJECT_H_ | 294 #endif //_JS_OBJECT_H_ |
| OLD | NEW |