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

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

Issue 1349783003: Fix build broken at 506df426d5d6. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 3 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/JS_Value.cpp ('k') | fpdfsdk/src/jsapi/fxjs_v8.cpp » ('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 "../../../core/include/fxcrt/fx_ext.h" 7 #include "../../../core/include/fxcrt/fx_ext.h"
8 #include "../../include/javascript/IJavaScript.h" 8 #include "../../include/javascript/IJavaScript.h"
9 #include "../../include/javascript/JS_Context.h" 9 #include "../../include/javascript/JS_Context.h"
10 #include "../../include/javascript/JS_Define.h" 10 #include "../../include/javascript/JS_Define.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } g_hashVerify; 64 } g_hashVerify;
65 65
66 HashVerify::HashVerify() { 66 HashVerify::HashVerify() {
67 ASSERT(JSCONST_nStringHash == JS_CalcHash(kFXJSValueNameString)); 67 ASSERT(JSCONST_nStringHash == JS_CalcHash(kFXJSValueNameString));
68 ASSERT(JSCONST_nNumberHash == JS_CalcHash(kFXJSValueNameNumber)); 68 ASSERT(JSCONST_nNumberHash == JS_CalcHash(kFXJSValueNameNumber));
69 ASSERT(JSCONST_nBoolHash == JS_CalcHash(kFXJSValueNameBoolean)); 69 ASSERT(JSCONST_nBoolHash == JS_CalcHash(kFXJSValueNameBoolean));
70 ASSERT(JSCONST_nDateHash == JS_CalcHash(kFXJSValueNameDate)); 70 ASSERT(JSCONST_nDateHash == JS_CalcHash(kFXJSValueNameDate));
71 ASSERT(JSCONST_nObjectHash == JS_CalcHash(kFXJSValueNameObject)); 71 ASSERT(JSCONST_nObjectHash == JS_CalcHash(kFXJSValueNameObject));
72 ASSERT(JSCONST_nFXobjHash == JS_CalcHash(kFXJSValueNameFxobj)); 72 ASSERT(JSCONST_nFXobjHash == JS_CalcHash(kFXJSValueNameFxobj));
73 ASSERT(JSCONST_nNullHash == JS_CalcHash(kFXJSValueNameNull)); 73 ASSERT(JSCONST_nNullHash == JS_CalcHash(kFXJSValueNameNull));
74 ASSERT(JSCONST_nUndefHash == JS_CalcHash(kFXJSValueNameUndefined); 74 ASSERT(JSCONST_nUndefHash == JS_CalcHash(kFXJSValueNameUndefined));
75 } 75 }
76 #endif 76 #endif
77 77
78 BEGIN_JS_STATIC_CONST(CJS_Global) 78 BEGIN_JS_STATIC_CONST(CJS_Global)
79 END_JS_STATIC_CONST() 79 END_JS_STATIC_CONST()
80 80
81 BEGIN_JS_STATIC_PROP(CJS_Global) 81 BEGIN_JS_STATIC_PROP(CJS_Global)
82 END_JS_STATIC_PROP() 82 END_JS_STATIC_PROP()
83 83
84 BEGIN_JS_STATIC_METHOD(CJS_Global) 84 BEGIN_JS_STATIC_METHOD(CJS_Global)
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 return CJS_Value::VT_boolean; 532 return CJS_Value::VT_boolean;
533 if (nHash == JSCONST_nDateHash) 533 if (nHash == JSCONST_nDateHash)
534 return CJS_Value::VT_date; 534 return CJS_Value::VT_date;
535 if (nHash == JSCONST_nObjectHash) 535 if (nHash == JSCONST_nObjectHash)
536 return CJS_Value::VT_object; 536 return CJS_Value::VT_object;
537 if (nHash == JSCONST_nFXobjHash) 537 if (nHash == JSCONST_nFXobjHash)
538 return CJS_Value::VT_fxobject; 538 return CJS_Value::VT_fxobject;
539 539
540 return CJS_Value::VT_unknown; 540 return CJS_Value::VT_unknown;
541 } 541 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/JS_Value.cpp ('k') | fpdfsdk/src/jsapi/fxjs_v8.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698