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 #include "../../include/javascript/JavaScript.h" | 7 #include "../../include/javascript/JavaScript.h" |
8 #include "../../include/javascript/IJavaScript.h" | 8 #include "../../include/javascript/IJavaScript.h" |
9 #include "../../include/javascript/JS_Define.h" | 9 #include "../../include/javascript/JS_Define.h" |
10 #include "../../include/javascript/JS_Object.h" | 10 #include "../../include/javascript/JS_Object.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 JS_STATIC_METHOD_ENTRY(popUpMenu, 0) | 113 JS_STATIC_METHOD_ENTRY(popUpMenu, 0) |
114 JS_STATIC_METHOD_ENTRY(response, 0) | 114 JS_STATIC_METHOD_ENTRY(response, 0) |
115 JS_STATIC_METHOD_ENTRY(setInterval, 2) | 115 JS_STATIC_METHOD_ENTRY(setInterval, 2) |
116 JS_STATIC_METHOD_ENTRY(setTimeOut, 2) | 116 JS_STATIC_METHOD_ENTRY(setTimeOut, 2) |
117 END_JS_STATIC_METHOD() | 117 END_JS_STATIC_METHOD() |
118 | 118 |
119 IMPLEMENT_JS_CLASS(CJS_App,app) | 119 IMPLEMENT_JS_CLASS(CJS_App,app) |
120 | 120 |
121 app::app(CJS_Object * pJSObject) : CJS_EmbedObj(pJSObject) , | 121 app::app(CJS_Object * pJSObject) : CJS_EmbedObj(pJSObject) , |
122 m_bCalculate(true), | 122 m_bCalculate(true), |
123 m_pRuntime(NULL), | |
124 m_bRuntimeHighLight(false) | 123 m_bRuntimeHighLight(false) |
125 // m_pMenuHead(NULL) | 124 // m_pMenuHead(NULL) |
126 { | 125 { |
127 } | 126 } |
128 | 127 |
129 app::~app(void) | 128 app::~app(void) |
130 { | 129 { |
131 for (int i=0,sz=m_aTimer.GetSize(); i<sz; i++) | 130 for (int i=0,sz=m_aTimer.GetSize(); i<sz; i++) |
132 delete m_aTimer[i]; | 131 delete m_aTimer[i]; |
133 | 132 |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1124 FX_BOOL app::media(OBJ_PROP_PARAMS) | 1123 FX_BOOL app::media(OBJ_PROP_PARAMS) |
1125 { | 1124 { |
1126 return FALSE; | 1125 return FALSE; |
1127 } | 1126 } |
1128 | 1127 |
1129 FX_BOOL app::execDialog(OBJ_METHOD_PARAMS) | 1128 FX_BOOL app::execDialog(OBJ_METHOD_PARAMS) |
1130 { | 1129 { |
1131 return TRUE; | 1130 return TRUE; |
1132 } | 1131 } |
1133 | 1132 |
OLD | NEW |