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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.cpp

Issue 23068032: Add constants and primitive type readonly attributes to Python IDL compiler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix spacing Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 {"supplementalMethod1", TestInterfaceV8Internal::supplementalMethod1MethodCa llback, 0, 0}, 1071 {"supplementalMethod1", TestInterfaceV8Internal::supplementalMethod1MethodCa llback, 0, 0},
1072 #endif // ENABLE(Condition11) || ENABLE(Condition12) 1072 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1073 #if ENABLE(Condition11) || ENABLE(Condition12) 1073 #if ENABLE(Condition11) || ENABLE(Condition12)
1074 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa llback, 0, 0}, 1074 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa llback, 0, 0},
1075 #endif // ENABLE(Condition11) || ENABLE(Condition12) 1075 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1076 }; 1076 };
1077 1077
1078 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[ ] = { 1078 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[ ] = {
1079 #if ENABLE(Condition22) || ENABLE(Condition23) 1079 #if ENABLE(Condition22) || ENABLE(Condition23)
1080 {"IMPLEMENTSCONSTANT1", 1}, 1080 {"IMPLEMENTSCONSTANT1", 1},
1081 #endif 1081 #endif // ENABLE(Condition22) || ENABLE(Condition23)
1082 #if ENABLE(Condition22) || ENABLE(Condition23) 1082 #if ENABLE(Condition22) || ENABLE(Condition23)
1083 {"IMPLEMENTSCONSTANT2", 2}, 1083 {"IMPLEMENTSCONSTANT2", 2},
1084 #endif 1084 #endif // ENABLE(Condition22) || ENABLE(Condition23)
1085 #if ENABLE(Condition11) || ENABLE(Condition12) 1085 #if ENABLE(Condition11) || ENABLE(Condition12)
1086 {"SUPPLEMENTALCONSTANT1", 1}, 1086 {"SUPPLEMENTALCONSTANT1", 1},
1087 #endif 1087 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1088 #if ENABLE(Condition11) || ENABLE(Condition12) 1088 #if ENABLE(Condition11) || ENABLE(Condition12)
1089 {"SUPPLEMENTALCONSTANT2", 2}, 1089 {"SUPPLEMENTALCONSTANT2", 2},
1090 #endif 1090 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1091 }; 1091 };
1092 1092
1093 #if ENABLE(Condition22) || ENABLE(Condition23) 1093 #if ENABLE(Condition22) || ENABLE(Condition23)
1094 COMPILE_ASSERT(1 == TestImplements::IMPLEMENTSCONSTANT1, TestInterfaceEnumIMPLEM ENTSCONSTANT1IsWrongUseDoNotCheckConstants); 1094 COMPILE_ASSERT(1 == TestImplements::IMPLEMENTSCONSTANT1, TestInterfaceEnumIMPLEM ENTSCONSTANT1IsWrongUseDoNotCheckConstants);
1095 #endif 1095 #endif // ENABLE(Condition22) || ENABLE(Condition23)
1096 #if ENABLE(Condition22) || ENABLE(Condition23) 1096 #if ENABLE(Condition22) || ENABLE(Condition23)
1097 COMPILE_ASSERT(2 == TestImplements::CONST_IMPL, TestInterfaceEnumCONST_IMPLIsWro ngUseDoNotCheckConstants); 1097 COMPILE_ASSERT(2 == TestImplements::CONST_IMPL, TestInterfaceEnumCONST_IMPLIsWro ngUseDoNotCheckConstants);
1098 #endif 1098 #endif // ENABLE(Condition22) || ENABLE(Condition23)
1099 #if ENABLE(Condition11) || ENABLE(Condition12) 1099 #if ENABLE(Condition11) || ENABLE(Condition12)
1100 COMPILE_ASSERT(1 == TestPartialInterface::SUPPLEMENTALCONSTANT1, TestInterfaceEn umSUPPLEMENTALCONSTANT1IsWrongUseDoNotCheckConstants); 1100 COMPILE_ASSERT(1 == TestPartialInterface::SUPPLEMENTALCONSTANT1, TestInterfaceEn umSUPPLEMENTALCONSTANT1IsWrongUseDoNotCheckConstants);
1101 #endif 1101 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1102 #if ENABLE(Condition11) || ENABLE(Condition12) 1102 #if ENABLE(Condition11) || ENABLE(Condition12)
1103 COMPILE_ASSERT(2 == TestPartialInterface::CONST_IMPL, TestInterfaceEnumCONST_IMP LIsWrongUseDoNotCheckConstants); 1103 COMPILE_ASSERT(2 == TestPartialInterface::CONST_IMPL, TestInterfaceEnumCONST_IMP LIsWrongUseDoNotCheckConstants);
1104 #endif 1104 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1105 1105
1106 void V8TestInterface::constructorCallback(const v8::FunctionCallbackInfo<v8::Val ue>& args) 1106 void V8TestInterface::constructorCallback(const v8::FunctionCallbackInfo<v8::Val ue>& args)
1107 { 1107 {
1108 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); 1108 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor");
1109 if (!args.IsConstructCall()) { 1109 if (!args.IsConstructCall()) {
1110 throwTypeError("DOM object constructor cannot be called as a function.", args.GetIsolate()); 1110 throwTypeError("DOM object constructor cannot be called as a function.", args.GetIsolate());
1111 return; 1111 return;
1112 } 1112 }
1113 1113
1114 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { 1114 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 } 1272 }
1273 1273
1274 void V8TestInterface::derefObject(void* object) 1274 void V8TestInterface::derefObject(void* object)
1275 { 1275 {
1276 fromInternalPointer(object)->deref(); 1276 fromInternalPointer(object)->deref();
1277 } 1277 }
1278 1278
1279 } // namespace WebCore 1279 } // namespace WebCore
1280 1280
1281 #endif // ENABLE(Condition1) || ENABLE(Condition2) 1281 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698