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

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

Issue 2453683011: Remove FX_BOOL from fpdfsdk. (Closed)
Patch Set: Regenerate patch after rebase. Created 4 years, 1 month 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/javascript/console.h ('k') | fpdfsdk/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 "fpdfsdk/javascript/console.h" 7 #include "fpdfsdk/javascript/console.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 JS_STATIC_METHOD_ENTRY(println) 26 JS_STATIC_METHOD_ENTRY(println)
27 JS_STATIC_METHOD_ENTRY(show) 27 JS_STATIC_METHOD_ENTRY(show)
28 END_JS_STATIC_METHOD() 28 END_JS_STATIC_METHOD()
29 29
30 IMPLEMENT_JS_CLASS(CJS_Console, console) 30 IMPLEMENT_JS_CLASS(CJS_Console, console)
31 31
32 console::console(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {} 32 console::console(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {}
33 33
34 console::~console() {} 34 console::~console() {}
35 35
36 FX_BOOL console::clear(IJS_Context* cc, 36 bool console::clear(IJS_Context* cc,
37 const std::vector<CJS_Value>& params, 37 const std::vector<CJS_Value>& params,
38 CJS_Value& vRet, 38 CJS_Value& vRet,
39 CFX_WideString& sError) { 39 CFX_WideString& sError) {
40 return TRUE; 40 return true;
41 } 41 }
42 42
43 FX_BOOL console::hide(IJS_Context* cc, 43 bool console::hide(IJS_Context* cc,
44 const std::vector<CJS_Value>& params,
45 CJS_Value& vRet,
46 CFX_WideString& sError) {
47 return true;
48 }
49
50 bool console::println(IJS_Context* cc,
44 const std::vector<CJS_Value>& params, 51 const std::vector<CJS_Value>& params,
45 CJS_Value& vRet, 52 CJS_Value& vRet,
46 CFX_WideString& sError) { 53 CFX_WideString& sError) {
47 return TRUE; 54 if (params.size() < 1) {
55 return false;
56 }
57 return true;
48 } 58 }
49 59
50 FX_BOOL console::println(IJS_Context* cc, 60 bool console::show(IJS_Context* cc,
51 const std::vector<CJS_Value>& params, 61 const std::vector<CJS_Value>& params,
52 CJS_Value& vRet, 62 CJS_Value& vRet,
53 CFX_WideString& sError) { 63 CFX_WideString& sError) {
54 if (params.size() < 1) { 64 return true;
55 return FALSE;
56 }
57 return TRUE;
58 } 65 }
59
60 FX_BOOL console::show(IJS_Context* cc,
61 const std::vector<CJS_Value>& params,
62 CJS_Value& vRet,
63 CFX_WideString& sError) {
64 return TRUE;
65 }
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/console.h ('k') | fpdfsdk/javascript/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698