Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: fpdfsdk/include/javascript/app.h

Issue 1334833003: Merge to XFA: Remove some abstractions in fxjs_v8.h. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/include/javascript/PublicMethods.h ('k') | fpdfsdk/include/javascript/color.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « fpdfsdk/include/javascript/PublicMethods.h ('k') | fpdfsdk/include/javascript/color.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698