| 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 "fpdfsdk/javascript/console.h" | 7 #include "fpdfsdk/javascript/console.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "fpdfsdk/include/javascript/IJavaScript.h" | |
| 12 #include "fpdfsdk/javascript/JS_Context.h" | |
| 13 #include "fpdfsdk/javascript/JS_Define.h" | 11 #include "fpdfsdk/javascript/JS_Define.h" |
| 14 #include "fpdfsdk/javascript/JS_EventHandler.h" | 12 #include "fpdfsdk/javascript/JS_EventHandler.h" |
| 15 #include "fpdfsdk/javascript/JS_Object.h" | 13 #include "fpdfsdk/javascript/JS_Object.h" |
| 16 #include "fpdfsdk/javascript/JS_Value.h" | 14 #include "fpdfsdk/javascript/JS_Value.h" |
| 17 | 15 #include "fpdfsdk/javascript/cjs_context.h" |
| 18 /* ------------------------ console ------------------------ */ | |
| 19 | 16 |
| 20 BEGIN_JS_STATIC_CONST(CJS_Console) | 17 BEGIN_JS_STATIC_CONST(CJS_Console) |
| 21 END_JS_STATIC_CONST() | 18 END_JS_STATIC_CONST() |
| 22 | 19 |
| 23 BEGIN_JS_STATIC_PROP(CJS_Console) | 20 BEGIN_JS_STATIC_PROP(CJS_Console) |
| 24 END_JS_STATIC_PROP() | 21 END_JS_STATIC_PROP() |
| 25 | 22 |
| 26 BEGIN_JS_STATIC_METHOD(CJS_Console) | 23 BEGIN_JS_STATIC_METHOD(CJS_Console) |
| 27 JS_STATIC_METHOD_ENTRY(clear) | 24 JS_STATIC_METHOD_ENTRY(clear) |
| 28 JS_STATIC_METHOD_ENTRY(hide) | 25 JS_STATIC_METHOD_ENTRY(hide) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 59 } | 56 } |
| 60 return TRUE; | 57 return TRUE; |
| 61 } | 58 } |
| 62 | 59 |
| 63 FX_BOOL console::show(IJS_Context* cc, | 60 FX_BOOL console::show(IJS_Context* cc, |
| 64 const std::vector<CJS_Value>& params, | 61 const std::vector<CJS_Value>& params, |
| 65 CJS_Value& vRet, | 62 CJS_Value& vRet, |
| 66 CFX_WideString& sError) { | 63 CFX_WideString& sError) { |
| 67 return TRUE; | 64 return TRUE; |
| 68 } | 65 } |
| OLD | NEW |