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 FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_ | 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_ |
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_ | 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_ |
9 | 9 |
10 #include "JS_Define.h" | 10 #include "JS_Define.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 public: | 23 public: |
24 void SetTimer(CJS_Timer* pTimer); | 24 void SetTimer(CJS_Timer* pTimer); |
25 CJS_Timer* GetTimer() const; | 25 CJS_Timer* GetTimer() const; |
26 | 26 |
27 private: | 27 private: |
28 CJS_Timer* m_pTimer; | 28 CJS_Timer* m_pTimer; |
29 }; | 29 }; |
30 | 30 |
31 class CJS_TimerObj : public CJS_Object { | 31 class CJS_TimerObj : public CJS_Object { |
32 public: | 32 public: |
33 CJS_TimerObj(JSFXObject pObject) : CJS_Object(pObject) {} | 33 CJS_TimerObj(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
34 ~CJS_TimerObj() override {} | 34 ~CJS_TimerObj() override {} |
35 | 35 |
36 DECLARE_JS_CLASS(CJS_TimerObj); | 36 DECLARE_JS_CLASS(CJS_TimerObj); |
37 }; | 37 }; |
38 | 38 |
39 class app : public CJS_EmbedObj { | 39 class app : public CJS_EmbedObj { |
40 public: | 40 public: |
41 app(CJS_Object* pJSObject); | 41 app(CJS_Object* pJSObject); |
42 ~app() override; | 42 ~app() override; |
43 | 43 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 void TimerProc(CJS_Timer* pTimer) override; | 167 void TimerProc(CJS_Timer* pTimer) override; |
168 void RunJsScript(CJS_Runtime* pRuntime, const CFX_WideString& wsScript); | 168 void RunJsScript(CJS_Runtime* pRuntime, const CFX_WideString& wsScript); |
169 | 169 |
170 bool m_bCalculate; | 170 bool m_bCalculate; |
171 bool m_bRuntimeHighLight; | 171 bool m_bRuntimeHighLight; |
172 CFX_ArrayTemplate<CJS_Timer*> m_aTimer; | 172 CFX_ArrayTemplate<CJS_Timer*> m_aTimer; |
173 }; | 173 }; |
174 | 174 |
175 class CJS_App : public CJS_Object { | 175 class CJS_App : public CJS_Object { |
176 public: | 176 public: |
177 explicit CJS_App(JSFXObject pObject) : CJS_Object(pObject) {} | 177 explicit CJS_App(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
178 ~CJS_App() override {} | 178 ~CJS_App() override {} |
179 | 179 |
180 DECLARE_JS_CLASS(CJS_App); | 180 DECLARE_JS_CLASS(CJS_App); |
181 | 181 |
182 JS_STATIC_PROP(activeDocs, app); | 182 JS_STATIC_PROP(activeDocs, app); |
183 JS_STATIC_PROP(calculate, app); | 183 JS_STATIC_PROP(calculate, app); |
184 JS_STATIC_PROP(formsVersion, app); | 184 JS_STATIC_PROP(formsVersion, app); |
185 JS_STATIC_PROP(fs, app); | 185 JS_STATIC_PROP(fs, app); |
186 JS_STATIC_PROP(fullscreen, app); | 186 JS_STATIC_PROP(fullscreen, app); |
187 JS_STATIC_PROP(language, app); | 187 JS_STATIC_PROP(language, app); |
(...skipping 21 matching lines...) Expand all Loading... |
209 JS_STATIC_METHOD(openDoc, app); | 209 JS_STATIC_METHOD(openDoc, app); |
210 JS_STATIC_METHOD(openFDF, app); | 210 JS_STATIC_METHOD(openFDF, app); |
211 JS_STATIC_METHOD(popUpMenuEx, app); | 211 JS_STATIC_METHOD(popUpMenuEx, app); |
212 JS_STATIC_METHOD(popUpMenu, app); | 212 JS_STATIC_METHOD(popUpMenu, app); |
213 JS_STATIC_METHOD(response, app); | 213 JS_STATIC_METHOD(response, app); |
214 JS_STATIC_METHOD(setInterval, app); | 214 JS_STATIC_METHOD(setInterval, app); |
215 JS_STATIC_METHOD(setTimeOut, app); | 215 JS_STATIC_METHOD(setTimeOut, app); |
216 }; | 216 }; |
217 | 217 |
218 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_ | 218 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_ |
OLD | NEW |