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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 JS_STATIC_PROP_ENTRY(language) | 87 JS_STATIC_PROP_ENTRY(language) |
88 JS_STATIC_PROP_ENTRY(media) | 88 JS_STATIC_PROP_ENTRY(media) |
89 JS_STATIC_PROP_ENTRY(platform) | 89 JS_STATIC_PROP_ENTRY(platform) |
90 JS_STATIC_PROP_ENTRY(runtimeHighlight) | 90 JS_STATIC_PROP_ENTRY(runtimeHighlight) |
91 JS_STATIC_PROP_ENTRY(viewerType) | 91 JS_STATIC_PROP_ENTRY(viewerType) |
92 JS_STATIC_PROP_ENTRY(viewerVariation) | 92 JS_STATIC_PROP_ENTRY(viewerVariation) |
93 JS_STATIC_PROP_ENTRY(viewerVersion) | 93 JS_STATIC_PROP_ENTRY(viewerVersion) |
94 END_JS_STATIC_PROP() | 94 END_JS_STATIC_PROP() |
95 | 95 |
96 BEGIN_JS_STATIC_METHOD(CJS_App) | 96 BEGIN_JS_STATIC_METHOD(CJS_App) |
97 » JS_STATIC_METHOD_ENTRY(alert, 6) | 97 » JS_STATIC_METHOD_ENTRY(alert) |
98 » JS_STATIC_METHOD_ENTRY(beep, 1) | 98 » JS_STATIC_METHOD_ENTRY(beep) |
99 » JS_STATIC_METHOD_ENTRY(browseForDoc, 0) | 99 » JS_STATIC_METHOD_ENTRY(browseForDoc) |
100 » JS_STATIC_METHOD_ENTRY(clearInterval, 1) | 100 » JS_STATIC_METHOD_ENTRY(clearInterval) |
101 » JS_STATIC_METHOD_ENTRY(clearTimeOut, 1) | 101 » JS_STATIC_METHOD_ENTRY(clearTimeOut) |
102 » JS_STATIC_METHOD_ENTRY(execDialog, 3) | 102 » JS_STATIC_METHOD_ENTRY(execDialog) |
103 » JS_STATIC_METHOD_ENTRY(execMenuItem, 1) | 103 » JS_STATIC_METHOD_ENTRY(execMenuItem) |
104 » JS_STATIC_METHOD_ENTRY(findComponent, 1) | 104 » JS_STATIC_METHOD_ENTRY(findComponent) |
105 » JS_STATIC_METHOD_ENTRY(goBack, 0) | 105 » JS_STATIC_METHOD_ENTRY(goBack) |
106 » JS_STATIC_METHOD_ENTRY(goForward, 0) | 106 » JS_STATIC_METHOD_ENTRY(goForward) |
107 » JS_STATIC_METHOD_ENTRY(launchURL, 0) | 107 » JS_STATIC_METHOD_ENTRY(launchURL) |
108 » JS_STATIC_METHOD_ENTRY(mailMsg, 0) | 108 » JS_STATIC_METHOD_ENTRY(mailMsg) |
109 » JS_STATIC_METHOD_ENTRY(newFDF, 0) | 109 » JS_STATIC_METHOD_ENTRY(newFDF) |
110 » JS_STATIC_METHOD_ENTRY(newDoc, 0) | 110 » JS_STATIC_METHOD_ENTRY(newDoc) |
111 » JS_STATIC_METHOD_ENTRY(openDoc, 0) | 111 » JS_STATIC_METHOD_ENTRY(openDoc) |
112 » JS_STATIC_METHOD_ENTRY(openFDF, 5) | 112 » JS_STATIC_METHOD_ENTRY(openFDF) |
113 » JS_STATIC_METHOD_ENTRY(popUpMenuEx, 0) | 113 » JS_STATIC_METHOD_ENTRY(popUpMenuEx) |
114 » JS_STATIC_METHOD_ENTRY(popUpMenu, 0) | 114 » JS_STATIC_METHOD_ENTRY(popUpMenu) |
115 » JS_STATIC_METHOD_ENTRY(response, 0) | 115 » JS_STATIC_METHOD_ENTRY(response) |
116 » JS_STATIC_METHOD_ENTRY(setInterval, 2) | 116 » JS_STATIC_METHOD_ENTRY(setInterval) |
117 » JS_STATIC_METHOD_ENTRY(setTimeOut, 2) | 117 » JS_STATIC_METHOD_ENTRY(setTimeOut) |
118 END_JS_STATIC_METHOD() | 118 END_JS_STATIC_METHOD() |
119 | 119 |
120 IMPLEMENT_JS_CLASS(CJS_App,app) | 120 IMPLEMENT_JS_CLASS(CJS_App,app) |
121 | 121 |
122 app::app(CJS_Object * pJSObject) : CJS_EmbedObj(pJSObject) , | 122 app::app(CJS_Object * pJSObject) : CJS_EmbedObj(pJSObject) , |
123 m_bCalculate(true), | 123 m_bCalculate(true), |
124 m_bRuntimeHighLight(false) | 124 m_bRuntimeHighLight(false) |
125 // m_pMenuHead(NULL) | 125 // m_pMenuHead(NULL) |
126 { | 126 { |
127 } | 127 } |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 | 933 |
934 FX_BOOL app::media(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) | 934 FX_BOOL app::media(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) |
935 { | 935 { |
936 return FALSE; | 936 return FALSE; |
937 } | 937 } |
938 | 938 |
939 FX_BOOL app::execDialog(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Val
ue& vRet, CFX_WideString& sError) | 939 FX_BOOL app::execDialog(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Val
ue& vRet, CFX_WideString& sError) |
940 { | 940 { |
941 return TRUE; | 941 return TRUE; |
942 } | 942 } |
OLD | NEW |