| 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 "V8TestInterfaceNamedConstructor.h" | 8 #include "V8TestInterfaceNamedConstructor.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 ASSERT(data->IsExternal()); | 36 ASSERT(data->IsExternal()); |
| 37 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); | 37 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
| 38 if (!perContextData) | 38 if (!perContextData) |
| 39 return; | 39 return; |
| 40 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); | 40 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
| 41 } | 41 } |
| 42 | 42 |
| 43 static void TestInterfaceNamedConstructorForceSetAttributeOnThis(v8::Local<v8::S
tring> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 43 static void TestInterfaceNamedConstructorForceSetAttributeOnThis(v8::Local<v8::S
tring> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
| 44 { | 44 { |
| 45 if (info.This()->IsObject()) | 45 if (info.This()->IsObject()) |
| 46 v8::Handle<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); | 46 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); |
| 47 } | 47 } |
| 48 | 48 |
| 49 static void TestInterfaceNamedConstructorForceSetAttributeOnThisCallback(v8::Loc
al<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) | 49 static void TestInterfaceNamedConstructorForceSetAttributeOnThisCallback(v8::Loc
al<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) |
| 50 { | 50 { |
| 51 TestInterfaceNamedConstructorV8Internal::TestInterfaceNamedConstructorForceS
etAttributeOnThis(name, v8Value, info); | 51 TestInterfaceNamedConstructorV8Internal::TestInterfaceNamedConstructorForceS
etAttributeOnThis(name, v8Value, info); |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace TestInterfaceNamedConstructorV8Internal | 54 } // namespace TestInterfaceNamedConstructorV8Internal |
| 55 | 55 |
| 56 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons
tructorAttributes[] = { | 56 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons
tructorAttributes[] = { |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 { | 182 { |
| 183 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); | 183 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); |
| 184 } | 184 } |
| 185 | 185 |
| 186 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab
le) | 186 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab
le) |
| 187 { | 187 { |
| 188 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); | 188 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } // namespace blink | 191 } // namespace blink |
| OLD | NEW |