Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
| 10 | 10 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 232 TestInterfaceImplementationV8Internal::testEnumAttributeAttributeGetter(info ); | 232 TestInterfaceImplementationV8Internal::testEnumAttributeAttributeGetter(info ); |
| 233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 234 } | 234 } |
| 235 | 235 |
| 236 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 236 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 237 { | 237 { |
| 238 v8::Local<v8::Object> holder = info.Holder(); | 238 v8::Local<v8::Object> holder = info.Holder(); |
| 239 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 239 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 240 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 240 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
| 241 String string = cppValue; | 241 String string = cppValue; |
| 242 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) | 242 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) { |
| 243 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, ErrorMessageLevel, "The provided value '" + string + "' is not a valid value of type 'TestEnum'.")); | |
|
pfeldman
2015/03/02 16:07:38
WarningMessageLevel
| |
| 243 return; | 244 return; |
| 245 } | |
| 244 impl->setTestEnumAttribute(cppValue); | 246 impl->setTestEnumAttribute(cppValue); |
| 245 } | 247 } |
| 246 | 248 |
| 247 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 249 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 248 { | 250 { |
| 249 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 251 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 250 TestInterfaceImplementationV8Internal::testEnumAttributeAttributeSetter(v8Va lue, info); | 252 TestInterfaceImplementationV8Internal::testEnumAttributeAttributeSetter(v8Va lue, info); |
| 251 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 253 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 252 } | 254 } |
| 253 | 255 |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 819 } | 821 } |
| 820 #endif // ENABLE(PARTIAL_CONDITION) | 822 #endif // ENABLE(PARTIAL_CONDITION) |
| 821 | 823 |
| 822 #if ENABLE(PARTIAL_CONDITION) | 824 #if ENABLE(PARTIAL_CONDITION) |
| 823 static void partialPartialEnumTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 825 static void partialPartialEnumTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 824 { | 826 { |
| 825 v8::Local<v8::Object> holder = info.Holder(); | 827 v8::Local<v8::Object> holder = info.Holder(); |
| 826 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 828 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 827 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 829 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
| 828 String string = cppValue; | 830 String string = cppValue; |
| 829 if (!(string == "foo" || string == "bar")) | 831 if (!(string == "foo" || string == "bar")) { |
| 832 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, ErrorMessageLevel, "The provided value '" + string + "' is not a valid value of type 'PartialEnumType'.")); | |
|
pfeldman
2015/03/02 16:07:38
WarningMessageLevel
| |
| 830 return; | 833 return; |
| 834 } | |
| 831 TestPartialInterface::setPartialPartialEnumTypeAttribute(*impl, cppValue); | 835 TestPartialInterface::setPartialPartialEnumTypeAttribute(*impl, cppValue); |
| 832 } | 836 } |
| 833 #endif // ENABLE(PARTIAL_CONDITION) | 837 #endif // ENABLE(PARTIAL_CONDITION) |
| 834 | 838 |
| 835 #if ENABLE(PARTIAL_CONDITION) | 839 #if ENABLE(PARTIAL_CONDITION) |
| 836 static void partialPartialEnumTypeAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) | 840 static void partialPartialEnumTypeAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) |
| 837 { | 841 { |
| 838 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 842 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 839 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttrib uteSetter(v8Value, info); | 843 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttrib uteSetter(v8Value, info); |
| 840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 844 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2374 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2378 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2375 { | 2379 { |
| 2376 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; | 2380 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; |
| 2377 } | 2381 } |
| 2378 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2382 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2379 { | 2383 { |
| 2380 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; | 2384 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; |
| 2381 } | 2385 } |
| 2382 } // namespace blink | 2386 } // namespace blink |
| 2383 #endif // ENABLE(CONDITION) | 2387 #endif // ENABLE(CONDITION) |
| OLD | NEW |