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

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

Issue 1935793002: Fix lint bugs. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: override Created 4 years, 7 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 | xfa/fwl/basewidget/fxmath_barcodeimp.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 #ifndef FPDFSDK_JAVASCRIPT_JS_DEFINE_H_ 7 #ifndef FPDFSDK_JAVASCRIPT_JS_DEFINE_H_
8 #define FPDFSDK_JAVASCRIPT_JS_DEFINE_H_ 8 #define FPDFSDK_JAVASCRIPT_JS_DEFINE_H_
9 9
10 #include <string>
Tom Sepez 2016/04/29 22:29:25 Shouldn't be necessary, as there isn't any std::st
Lei Zhang 2016/04/30 01:22:49 Done.
10 #include <vector> 11 #include <vector>
11 12
12 #include "fpdfsdk/javascript/JS_Object.h" 13 #include "fpdfsdk/javascript/JS_Object.h"
13 #include "fpdfsdk/javascript/JS_Value.h" 14 #include "fpdfsdk/javascript/JS_Value.h"
14 #include "fpdfsdk/javascript/resource.h" 15 #include "fpdfsdk/javascript/resource.h"
15 #include "fpdfsdk/jsapi/include/fxjs_v8.h" 16 #include "fpdfsdk/jsapi/include/fxjs_v8.h"
16 17
17 struct JSConstSpec { 18 struct JSConstSpec {
18 const wchar_t* pName; 19 const wchar_t* pName;
19 double number; 20 double number;
(...skipping 23 matching lines...) Expand all
43 { const_name, 0, pValue, 1 } \ 44 { const_name, 0, pValue, 1 } \
44 , 45 ,
45 46
46 #define END_JS_STATIC_CONST() \ 47 #define END_JS_STATIC_CONST() \
47 { 0, 0, 0, 0 } \ 48 { 0, 0, 0, 0 } \
48 } \ 49 } \
49 ; // NOLINT 50 ; // NOLINT
50 51
51 #define BEGIN_JS_STATIC_PROP(js_class_name) \ 52 #define BEGIN_JS_STATIC_PROP(js_class_name) \
52 JSPropertySpec js_class_name::JS_Class_Properties[] = { 53 JSPropertySpec js_class_name::JS_Class_Properties[] = {
53 #define JS_STATIC_PROP_ENTRY(prop_name) \ 54 #define JS_STATIC_PROP_ENTRY(prop_name) \
54 { \ 55 {JS_WIDESTRING(prop_name), get_##prop_name##_static, \
55 JS_WIDESTRING(prop_name), get_##prop_name##_static, \ 56 set_##prop_name##_static}, // NOLINT
56 set_##prop_name##_static \
57 } \
58 ,
59 57
60 #define END_JS_STATIC_PROP() \ 58 #define END_JS_STATIC_PROP() \
61 { 0, 0, 0 } \ 59 { 0, 0, 0 } \
62 } \ 60 } \
63 ; // NOLINT 61 ; // NOLINT
64 62
65 #define BEGIN_JS_STATIC_METHOD(js_class_name) \ 63 #define BEGIN_JS_STATIC_METHOD(js_class_name) \
66 JSMethodSpec js_class_name::JS_Class_Methods[] = { 64 JSMethodSpec js_class_name::JS_Class_Methods[] = {
67 #define JS_STATIC_METHOD_ENTRY(method_name) \ 65 #define JS_STATIC_METHOD_ENTRY(method_name) \
68 { JS_WIDESTRING(method_name), method_name##_static } \ 66 { JS_WIDESTRING(method_name), method_name##_static } \
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 for (size_t i = 0; i < FX_ArraySize(global_methods) - 1; ++i) { \ 482 for (size_t i = 0; i < FX_ArraySize(global_methods) - 1; ++i) { \
485 FXJS_DefineGlobalMethod(pIsolate, \ 483 FXJS_DefineGlobalMethod(pIsolate, \
486 js_class_name::global_methods[i].pName, \ 484 js_class_name::global_methods[i].pName, \
487 js_class_name::global_methods[i].pMethodCall); \ 485 js_class_name::global_methods[i].pMethodCall); \
488 } \ 486 } \
489 } 487 }
490 488
491 CJS_Value::Type GET_VALUE_TYPE(v8::Local<v8::Value> p); 489 CJS_Value::Type GET_VALUE_TYPE(v8::Local<v8::Value> p);
492 490
493 #endif // FPDFSDK_JAVASCRIPT_JS_DEFINE_H_ 491 #endif // FPDFSDK_JAVASCRIPT_JS_DEFINE_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fwl/basewidget/fxmath_barcodeimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698