Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: fpdfsdk/src/javascript/console.cpp

Issue 1395713002: Merge to XFA: Rename IFXJS_Runtime and IFXJS_Context to IJS_. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/javascript/console.h ('k') | fpdfsdk/src/javascript/event.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "console.h" 7 #include "console.h"
8 8
9 #include "../../include/javascript/IJavaScript.h" 9 #include "../../include/javascript/IJavaScript.h"
10 #include "JS_Define.h" 10 #include "JS_Define.h"
(...skipping 16 matching lines...) Expand all
27 JS_STATIC_METHOD_ENTRY(println) 27 JS_STATIC_METHOD_ENTRY(println)
28 JS_STATIC_METHOD_ENTRY(show) 28 JS_STATIC_METHOD_ENTRY(show)
29 END_JS_STATIC_METHOD() 29 END_JS_STATIC_METHOD()
30 30
31 IMPLEMENT_JS_CLASS(CJS_Console, console) 31 IMPLEMENT_JS_CLASS(CJS_Console, console)
32 32
33 console::console(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {} 33 console::console(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {}
34 34
35 console::~console() {} 35 console::~console() {}
36 36
37 FX_BOOL console::clear(IFXJS_Context* cc, 37 FX_BOOL console::clear(IJS_Context* cc,
38 const CJS_Parameters& params, 38 const CJS_Parameters& params,
39 CJS_Value& vRet, 39 CJS_Value& vRet,
40 CFX_WideString& sError) { 40 CFX_WideString& sError) {
41 return TRUE; 41 return TRUE;
42 } 42 }
43 43
44 FX_BOOL console::hide(IFXJS_Context* cc, 44 FX_BOOL console::hide(IJS_Context* cc,
45 const CJS_Parameters& params, 45 const CJS_Parameters& params,
46 CJS_Value& vRet, 46 CJS_Value& vRet,
47 CFX_WideString& sError) { 47 CFX_WideString& sError) {
48 return TRUE; 48 return TRUE;
49 } 49 }
50 50
51 FX_BOOL console::println(IFXJS_Context* cc, 51 FX_BOOL console::println(IJS_Context* cc,
52 const CJS_Parameters& params, 52 const CJS_Parameters& params,
53 CJS_Value& vRet, 53 CJS_Value& vRet,
54 CFX_WideString& sError) { 54 CFX_WideString& sError) {
55 if (params.size() < 1) { 55 if (params.size() < 1) {
56 return FALSE; 56 return FALSE;
57 } 57 }
58 return TRUE; 58 return TRUE;
59 } 59 }
60 60
61 FX_BOOL console::show(IFXJS_Context* cc, 61 FX_BOOL console::show(IJS_Context* cc,
62 const CJS_Parameters& params, 62 const CJS_Parameters& params,
63 CJS_Value& vRet, 63 CJS_Value& vRet,
64 CFX_WideString& sError) { 64 CFX_WideString& sError) {
65 return TRUE; 65 return TRUE;
66 } 66 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/console.h ('k') | fpdfsdk/src/javascript/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698