| 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 #include "V8SVGTestInterface.h" | 8 #include "V8SVGTestInterface.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 { | 42 { |
| 43 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 43 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 44 SVGTestInterfaceV8Internal::typeAttributeGetter(info); | 44 SVGTestInterfaceV8Internal::typeAttributeGetter(info); |
| 45 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 45 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 46 } | 46 } |
| 47 | 47 |
| 48 static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 48 static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) |
| 49 { | 49 { |
| 50 v8::Local<v8::Object> holder = info.Holder(); | 50 v8::Local<v8::Object> holder = info.Holder(); |
| 51 SVGTestInterface* impl = V8SVGTestInterface::toImpl(holder); | 51 SVGTestInterface* impl = V8SVGTestInterface::toImpl(holder); |
| 52 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 52 V8StringResource<> cppValue = v8Value; |
| 53 if (!cppValue.prepare()) |
| 54 return; |
| 53 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 55 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 54 impl->setAttribute(SVGNames::typeAttr, cppValue); | 56 impl->setAttribute(SVGNames::typeAttr, cppValue); |
| 55 } | 57 } |
| 56 | 58 |
| 57 static void typeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 59 static void typeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 58 { | 60 { |
| 59 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 61 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 60 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 62 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 61 SVGTestInterfaceV8Internal::typeAttributeSetter(v8Value, info); | 63 SVGTestInterfaceV8Internal::typeAttributeSetter(v8Value, info); |
| 62 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 64 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 { | 112 { |
| 111 scriptWrappable->toImpl<SVGTestInterface>()->ref(); | 113 scriptWrappable->toImpl<SVGTestInterface>()->ref(); |
| 112 } | 114 } |
| 113 | 115 |
| 114 void V8SVGTestInterface::derefObject(ScriptWrappable* scriptWrappable) | 116 void V8SVGTestInterface::derefObject(ScriptWrappable* scriptWrappable) |
| 115 { | 117 { |
| 116 scriptWrappable->toImpl<SVGTestInterface>()->deref(); | 118 scriptWrappable->toImpl<SVGTestInterface>()->deref(); |
| 117 } | 119 } |
| 118 | 120 |
| 119 } // namespace blink | 121 } // namespace blink |
| OLD | NEW |