| 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 24 matching lines...) Expand all Loading... |
| 35 #define MAXCONSOLECONTENTS 10000 | 35 #define MAXCONSOLECONTENTS 10000 |
| 36 | 36 |
| 37 console::console(CJS_Object* pJSObject): CJS_EmbedObj(pJSObject) | 37 console::console(CJS_Object* pJSObject): CJS_EmbedObj(pJSObject) |
| 38 { | 38 { |
| 39 } | 39 } |
| 40 | 40 |
| 41 console::~console() | 41 console::~console() |
| 42 { | 42 { |
| 43 } | 43 } |
| 44 | 44 |
| 45 FX_BOOL console::clear(OBJ_METHOD_PARAMS) | 45 FX_BOOL console::clear(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Valu
e& vRet, JS_ErrorString& sError) |
| 46 { | 46 { |
| 47 | 47 |
| 48 | 48 |
| 49 | 49 |
| 50 return TRUE; | 50 return TRUE; |
| 51 } | 51 } |
| 52 | 52 |
| 53 FX_BOOL console::hide(OBJ_METHOD_PARAMS) | 53 FX_BOOL console::hide(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value
& vRet, JS_ErrorString& sError) |
| 54 { | 54 { |
| 55 | 55 |
| 56 | 56 |
| 57 | 57 |
| 58 | 58 |
| 59 return TRUE; | 59 return TRUE; |
| 60 } | 60 } |
| 61 | 61 |
| 62 FX_BOOL console::println(OBJ_METHOD_PARAMS) | 62 FX_BOOL console::println(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Va
lue& vRet, JS_ErrorString& sError) |
| 63 { | 63 { |
| 64 if (params.size() < 1) | 64 if (params.size() < 1) |
| 65 { | 65 { |
| 66 return FALSE; | 66 return FALSE; |
| 67 } | 67 } |
| 68 | 68 |
| 69 return TRUE; | 69 return TRUE; |
| 70 } | 70 } |
| 71 | 71 |
| 72 FX_BOOL console::show(OBJ_METHOD_PARAMS) | 72 FX_BOOL console::show(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value
& vRet, JS_ErrorString& sError) |
| 73 { | 73 { |
| 74 return TRUE; | 74 return TRUE; |
| 75 } | 75 } |
| 76 | 76 |
| 77 | 77 |
| 78 | 78 |
| OLD | NEW |