| 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 "V8TestTypedefs.h" | 8 #include "V8TestTypedefs.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 ASSERT(data->IsExternal()); | 70 ASSERT(data->IsExternal()); |
| 71 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); | 71 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
| 72 if (!perContextData) | 72 if (!perContextData) |
| 73 return; | 73 return; |
| 74 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); | 74 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
| 75 } | 75 } |
| 76 | 76 |
| 77 static void TestTypedefsForceSetAttributeOnThis(v8::Local<v8::String> name, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 77 static void TestTypedefsForceSetAttributeOnThis(v8::Local<v8::String> name, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 78 { | 78 { |
| 79 if (info.This()->IsObject()) | 79 if (info.This()->IsObject()) |
| 80 v8::Handle<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); | 80 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); |
| 81 } | 81 } |
| 82 | 82 |
| 83 static void TestTypedefsForceSetAttributeOnThisCallback(v8::Local<v8::String> na
me, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 83 static void TestTypedefsForceSetAttributeOnThisCallback(v8::Local<v8::String> na
me, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 84 { | 84 { |
| 85 TestTypedefsV8Internal::TestTypedefsForceSetAttributeOnThis(name, v8Value, i
nfo); | 85 TestTypedefsV8Internal::TestTypedefsForceSetAttributeOnThis(name, v8Value, i
nfo); |
| 86 } | 86 } |
| 87 | 87 |
| 88 static void voidMethodArrayOfLongsArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 88 static void voidMethodArrayOfLongsArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 89 { | 89 { |
| 90 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayOfLongsArg", "TestTypedefs", info.Holder(), info.GetIsolate()); | 90 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayOfLongsArg", "TestTypedefs", info.Holder(), info.GetIsolate()); |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 { | 350 { |
| 351 scriptWrappable->toImpl<TestTypedefs>()->ref(); | 351 scriptWrappable->toImpl<TestTypedefs>()->ref(); |
| 352 } | 352 } |
| 353 | 353 |
| 354 void V8TestTypedefs::derefObject(ScriptWrappable* scriptWrappable) | 354 void V8TestTypedefs::derefObject(ScriptWrappable* scriptWrappable) |
| 355 { | 355 { |
| 356 scriptWrappable->toImpl<TestTypedefs>()->deref(); | 356 scriptWrappable->toImpl<TestTypedefs>()->deref(); |
| 357 } | 357 } |
| 358 | 358 |
| 359 } // namespace blink | 359 } // namespace blink |
| OLD | NEW |