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

Side by Side Diff: fpdfsdk/include/javascript/JS_Define.h

Issue 1256283005: Remove stringify macro (#) from JS_STATIC_CONST_ENTRY_*. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | fpdfsdk/src/javascript/Consts.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 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_ 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_ 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_
9 9
10 #include "../jsapi/fxjs_v8.h" 10 #include "../jsapi/fxjs_v8.h"
(...skipping 19 matching lines...) Expand all
30 v8::FunctionCallback pMethodCall; 30 v8::FunctionCallback pMethodCall;
31 }; 31 };
32 32
33 /* ====================================== PUBLIC DEFINE SPEC 33 /* ====================================== PUBLIC DEFINE SPEC
34 * ============================================== */ 34 * ============================================== */
35 #define JS_WIDESTRING(widestring) L## #widestring 35 #define JS_WIDESTRING(widestring) L## #widestring
36 36
37 #define BEGIN_JS_STATIC_CONST(js_class_name) \ 37 #define BEGIN_JS_STATIC_CONST(js_class_name) \
38 JSConstSpec js_class_name::JS_Class_Consts[] = { 38 JSConstSpec js_class_name::JS_Class_Consts[] = {
39 #define JS_STATIC_CONST_ENTRY_NUMBER(const_name, pValue) \ 39 #define JS_STATIC_CONST_ENTRY_NUMBER(const_name, pValue) \
40 { JS_WIDESTRING(const_name), pValue, L"", 0 } \ 40 { const_name, pValue, L"", 0 } \
41 , 41 ,
42 #define JS_STATIC_CONST_ENTRY_STRING(const_name, pValue) \ 42 #define JS_STATIC_CONST_ENTRY_STRING(const_name, pValue) \
43 { JS_WIDESTRING(const_name), 0, JS_WIDESTRING(pValue), 1 } \ 43 { const_name, 0, pValue, 1 } \
44 , 44 ,
45 #define END_JS_STATIC_CONST() \ 45 #define END_JS_STATIC_CONST() \
46 { 0, 0, 0, 0 } \ 46 { 0, 0, 0, 0 } \
47 } \ 47 } \
48 ; 48 ;
49 49
50 #define BEGIN_JS_STATIC_PROP(js_class_name) \ 50 #define BEGIN_JS_STATIC_PROP(js_class_name) \
51 JSPropertySpec js_class_name::JS_Class_Properties[] = { 51 JSPropertySpec js_class_name::JS_Class_Properties[] = {
52 #define JS_STATIC_PROP_ENTRY(prop_name) \ 52 #define JS_STATIC_PROP_ENTRY(prop_name) \
53 { \ 53 { \
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 #define VALUE_NAME_BOOLEAN L"boolean" 557 #define VALUE_NAME_BOOLEAN L"boolean"
558 #define VALUE_NAME_DATE L"date" 558 #define VALUE_NAME_DATE L"date"
559 #define VALUE_NAME_OBJECT L"object" 559 #define VALUE_NAME_OBJECT L"object"
560 #define VALUE_NAME_FXOBJ L"fxobj" 560 #define VALUE_NAME_FXOBJ L"fxobj"
561 #define VALUE_NAME_NULL L"null" 561 #define VALUE_NAME_NULL L"null"
562 #define VALUE_NAME_UNDEFINED L"undefined" 562 #define VALUE_NAME_UNDEFINED L"undefined"
563 563
564 FXJSVALUETYPE GET_VALUE_TYPE(v8::Local<v8::Value> p); 564 FXJSVALUETYPE GET_VALUE_TYPE(v8::Local<v8::Value> p);
565 565
566 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_ 566 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/javascript/Consts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698