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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 JS_STATIC_PROP_ENTRY(language) | 86 JS_STATIC_PROP_ENTRY(language) |
87 JS_STATIC_PROP_ENTRY(media) | 87 JS_STATIC_PROP_ENTRY(media) |
88 JS_STATIC_PROP_ENTRY(platform) | 88 JS_STATIC_PROP_ENTRY(platform) |
89 JS_STATIC_PROP_ENTRY(runtimeHighlight) | 89 JS_STATIC_PROP_ENTRY(runtimeHighlight) |
90 JS_STATIC_PROP_ENTRY(viewerType) | 90 JS_STATIC_PROP_ENTRY(viewerType) |
91 JS_STATIC_PROP_ENTRY(viewerVariation) | 91 JS_STATIC_PROP_ENTRY(viewerVariation) |
92 JS_STATIC_PROP_ENTRY(viewerVersion) | 92 JS_STATIC_PROP_ENTRY(viewerVersion) |
93 END_JS_STATIC_PROP() | 93 END_JS_STATIC_PROP() |
94 | 94 |
95 BEGIN_JS_STATIC_METHOD(CJS_App) | 95 BEGIN_JS_STATIC_METHOD(CJS_App) |
96 » JS_STATIC_METHOD_ENTRY(alert, 6) | 96 » JS_STATIC_METHOD_ENTRY(alert) |
97 » JS_STATIC_METHOD_ENTRY(beep, 1) | 97 » JS_STATIC_METHOD_ENTRY(beep) |
98 » JS_STATIC_METHOD_ENTRY(browseForDoc, 0) | 98 » JS_STATIC_METHOD_ENTRY(browseForDoc) |
99 » JS_STATIC_METHOD_ENTRY(clearInterval, 1) | 99 » JS_STATIC_METHOD_ENTRY(clearInterval) |
100 » JS_STATIC_METHOD_ENTRY(clearTimeOut, 1) | 100 » JS_STATIC_METHOD_ENTRY(clearTimeOut) |
101 » JS_STATIC_METHOD_ENTRY(execDialog, 3) | 101 » JS_STATIC_METHOD_ENTRY(execDialog) |
102 » JS_STATIC_METHOD_ENTRY(execMenuItem, 1) | 102 » JS_STATIC_METHOD_ENTRY(execMenuItem) |
103 » JS_STATIC_METHOD_ENTRY(findComponent, 1) | 103 » JS_STATIC_METHOD_ENTRY(findComponent) |
104 » JS_STATIC_METHOD_ENTRY(goBack, 0) | 104 » JS_STATIC_METHOD_ENTRY(goBack) |
105 » JS_STATIC_METHOD_ENTRY(goForward, 0) | 105 » JS_STATIC_METHOD_ENTRY(goForward) |
106 » JS_STATIC_METHOD_ENTRY(launchURL, 0) | 106 » JS_STATIC_METHOD_ENTRY(launchURL) |
107 » JS_STATIC_METHOD_ENTRY(mailMsg, 0) | 107 » JS_STATIC_METHOD_ENTRY(mailMsg) |
108 » JS_STATIC_METHOD_ENTRY(newFDF, 0) | 108 » JS_STATIC_METHOD_ENTRY(newFDF) |
109 » JS_STATIC_METHOD_ENTRY(newDoc, 0) | 109 » JS_STATIC_METHOD_ENTRY(newDoc) |
110 » JS_STATIC_METHOD_ENTRY(openDoc, 0) | 110 » JS_STATIC_METHOD_ENTRY(openDoc) |
111 » JS_STATIC_METHOD_ENTRY(openFDF, 5) | 111 » JS_STATIC_METHOD_ENTRY(openFDF) |
112 » JS_STATIC_METHOD_ENTRY(popUpMenuEx, 0) | 112 » JS_STATIC_METHOD_ENTRY(popUpMenuEx) |
113 » JS_STATIC_METHOD_ENTRY(popUpMenu, 0) | 113 » JS_STATIC_METHOD_ENTRY(popUpMenu) |
114 » JS_STATIC_METHOD_ENTRY(response, 0) | 114 » JS_STATIC_METHOD_ENTRY(response) |
115 » JS_STATIC_METHOD_ENTRY(setInterval, 2) | 115 » JS_STATIC_METHOD_ENTRY(setInterval) |
116 » JS_STATIC_METHOD_ENTRY(setTimeOut, 2) | 116 » JS_STATIC_METHOD_ENTRY(setTimeOut) |
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_bRuntimeHighLight(false) | 123 m_bRuntimeHighLight(false) |
124 // m_pMenuHead(NULL) | 124 // m_pMenuHead(NULL) |
125 { | 125 { |
126 } | 126 } |
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 | 920 |
921 FX_BOOL app::media(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) | 921 FX_BOOL app::media(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) |
922 { | 922 { |
923 return FALSE; | 923 return FALSE; |
924 } | 924 } |
925 | 925 |
926 FX_BOOL app::execDialog(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Val
ue& vRet, CFX_WideString& sError) | 926 FX_BOOL app::execDialog(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Val
ue& vRet, CFX_WideString& sError) |
927 { | 927 { |
928 return TRUE; | 928 return TRUE; |
929 } | 929 } |
OLD | NEW |